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

Credentials Binding Plugin binds to partial string matches

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Same as JENKINS-43032, except the value I bound to a username in withCredentials is being bound to a string not related to the binding.  

      ex.

      CHART_NAME=ingestion-tracking

      value of DATASOURCE_USERNAME = ingestion

      withCredentials([usernamePassword(credentialsId: "${DATASOURCE_CREDS}", passwordVariable: 'DATASOURCE_PASSWORD', usernameVariable: 'DATASOURCE_USERNAME')
      ]) {
        sh "echo ${DATASOURCE_USERNAME}"

        sh "echo ${CHART_NAME}"
      }

      will yield:
      ****
      ****-tracking

       

      I expect:
      ****

      ingestion-tracking

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            timmerkt_perspecta Tim Merkt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: