Missing "secret text" (string) credential?

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

            Assignee:
            Daniel Spilker
            Reporter:
            Brendan Holmes
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: