[JIRA] (JENKINS-61319) Missing "secret text" (string) credential?

7 views
Skip to first unread message

me@brendanh.com (JIRA)

unread,
Mar 4, 2020, 3:42:02 AM3/4/20
to jenkinsc...@googlegroups.com
Brendan Holmes created an issue
 
Jenkins / Bug JENKINS-61319
Missing "secret text" (string) credential?
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2020-03-04 08:41
Priority: Minor Minor
Reporter: Brendan Holmes

Trying to create a "secret text" (string) credential in a folder using job-dsl. But according to the job-dsl api-viewer, our Jenkins only has the following credential types:

_basicSSHUserPrivateKey {}
certificateCredentialsImpl {}
fileSystemServiceAccountCredential {}
openShiftBearerTokenCredentialImpl {}
usernamePasswordCredentialsImpl {}_

We can create a string credential manually in the webui. Has "secret text" not been implmemented in job-dsl? I'm expecting a type should exist with properties: scope, id, description, and secret.

Our folder definition starts:

  folder("test_folder") {
    displayName("Test Folder")
    description("Our test folder")
    properties {
      folderCredentialsProperty {
        domainCredentials {
          domainCredentials {
            domain {
              name("main")
              description("")
            }
            credentials {
              <WHERE'S THE STRING TYPE?>
               ....
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

me@brendanh.com (JIRA)

unread,
Mar 4, 2020, 3:42:03 AM3/4/20
to jenkinsc...@googlegroups.com
Brendan Holmes updated an issue
Change By: Brendan Holmes
Trying to create a "secret text" (string) credential in a folder using job-dsl. But according to the job-dsl api-viewer, our Jenkins only has the following credential types:

_basicSSHUserPrivateKey basicSSHUserPrivateKey {}
certificateCredentialsImpl {}
fileSystemServiceAccountCredential {}
openShiftBearerTokenCredentialImpl {}
usernamePasswordCredentialsImpl {}
_

We can create a string credential manually in the webui. Has "secret text" not been implmemented in job-dsl? I'm expecting a type should exist with properties: scope, id, description, and secret.

Our folder definition starts:

{code:java}

  folder("test_folder") {
    displayName("Test Folder")
    description("Our test folder")
    properties {
      folderCredentialsProperty {
        domainCredentials {
          domainCredentials {
            domain {
              name("main")
              description("")
            }
            credentials {
              <WHERE'S THE STRING TYPE?>
               ....
{code}

me@brendanh.com (JIRA)

unread,
Mar 4, 2020, 5:38:02 AM3/4/20
to jenkinsc...@googlegroups.com
Brendan Holmes commented on Bug JENKINS-61319
 
Re: Missing "secret text" (string) credential?

This is becuase job-dsl does not support the plain-credentials plugin. Issue #59971 is already open for this: so closing this duplicate.

me@brendanh.com (JIRA)

unread,
Mar 4, 2020, 5:40:03 AM3/4/20
to jenkinsc...@googlegroups.com
Brendan Holmes closed an issue as Duplicate
 

Duplicate of https://issues.jenkins-ci.org/browse/JENKINS-59971

Change By: Brendan Holmes
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages