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

Credentials parameters are not passed to jobs stored in pipeline parallel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • pipeline
    • Jenkins 2.19.3
      Centos7
      Oracle Java 1.8.0_60

      parallel (
      "stream1": {
      build job: "job1", parameters: [[$class: 'CredentialsParameterValue', description: 'credentials for git storage', name: 'GIT_CREDENTIALS', value: "${GIT_CREDENTIALS}"]]
      }
      "stream2": {
      build job: "job2", parameters: [[$class: 'CredentialsParameterValue', description: 'credentials for git storage', name: 'GIT_CREDENTIALS', value: "${GIT_CREDENTIALS}"]]
      }
      )

      This is the script example. Both job1 and job2 have GIT_CREDENTIALS parameter with Credentials type. job1 gets right GIT_CREDENTIALS from pipeline. job2 have a message in the parameter field " Not available to current user "

            Unassigned Unassigned
            slavik334 Viachaslau Kabak
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: