Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61319

Missing "secret text" (string) credential?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      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?>
                     ....
      

            daspilker Daniel Spilker
            brendanh Brendan Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: