[JIRA] (JENKINS-61662) Create credential of type StringCredentials, bound to a folder, via JobDSL plugin

5 views
Skip to first unread message

krystian@krystianmarek.com (JIRA)

unread,
Mar 24, 2020, 9:10:02 AM3/24/20
to jenkinsc...@googlegroups.com
Krystian Marek created an issue
 
Jenkins / Bug JENKINS-61662
Create credential of type StringCredentials, bound to a folder, via JobDSL plugin
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin, plain-credentials-plugin
Created: 2020-03-24 13:09
Priority: Minor Minor
Reporter: Krystian Marek

https://stackoverflow.com/questions/60830533/create-credential-of-type-stringcredentials-bound-to-a-folder-via-jobdsl-plugi

I'm running Jenkins 2.204.5
With plugins:

  • job-dsl v1.77
  • credentials 1.7

I'm trying to create a secret of type 'Secret Text' or 'StringCredentialsImpl' bound to a folder, using the JobDSL plugin/code. https://github.com/jenkinsci/plain-credentials-plugin/blob/master/src/main/java/org/jenkinsci/plugins/plaincredentials/impl/StringCredentialsImpl.java

But despite the fact that it is mentioned as supported in https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/parameter/CredentialsParameterContext.groovy#L23

I cant see it in my dynamic viewer JENKINS_URL/plugin/job-dsl/api-viewer/index.html All I see is:

{{ credentials {
basicSSHUserPrivateKey {}
certificateCredentialsImpl {}
fileSystemServiceAccountCredential {}
// OpenShift do use a dedicated authorization layer on top of Kubernetes and does not allow to access Kubernetes API using plain username/password credentials.
openShiftBearerTokenCredentialImpl {}
usernamePasswordCredentialsImpl {}
}}}

This looks like a bug, because the plain-credentials-plugin has the
DataBoundConstructor

Please take a look.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

krystian@krystianmarek.com (JIRA)

unread,
Mar 24, 2020, 9:13:03 AM3/24/20
to jenkinsc...@googlegroups.com

krystian@krystianmarek.com (JIRA)

unread,
Mar 24, 2020, 9:13:04 AM3/24/20
to jenkinsc...@googlegroups.com
Krystian Marek closed an issue as Duplicate
 
Change By: Krystian Marek
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages