-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: credentials-binding-plugin
-
None
-
Environment:Jenkins ver. 2.138.2
credentials-binding: 1.17
when using multiple blocks such as:
Â
withCredentials([file(credentialsId: 'KEYFILE', variable: 'KEYFILE')]) { Â sh 'ls -lh ${KEYFILE}' }
Â
across multiple stages within the same Jenkinsfile/pipeline - it will only work the first time. After the first credentials-binding block, the keyfile gets deleted but not re-created.
Â
Expectations: either have the keyfile re-created each time, or have the keyfile only deleted after the build (documented behaviour)
Â