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 "