[JIRA] (JENKINS-61999) If scm fails, credentials are not populated in post-build steps

3 views
Skip to first unread message

ovianao@gmail.com (JIRA)

unread,
Apr 21, 2020, 3:27:03 PM4/21/20
to jenkinsc...@googlegroups.com
o viana created an issue
 
Jenkins / Bug JENKINS-61999
If scm fails, credentials are not populated in post-build steps
Issue Type: Bug Bug
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2020-04-21 19:26
Environment: Jenkins ver. 2.176.3 & Jenkins ver. 2.222.1
Priority: Major Major
Reporter: o viana

Searched high-and-low for this, but couldn't find anything.

 

How to reproduce:

1. Create a freestyle project.
2. Set the project to check out from a bogus github repo that you can never reach.
3. Add a credentials binding for the job (in my case, Separated Username and Password).
4. Add a simple post-build step via the PostBuildScript Plugin to use the credentials defined in #3 (such as echo-ing the credentials).
5. Execute the job.
6. Set the project to check out from a legitimate github repo that you can access.
7. Re-execute the job.

Actual:

5. Post-build step can't use the credentials as they're empty.
7. Post-build step can use the credentials as they're not empty.

Expected:

Post-build step should still have access to the credentials, even if the scm step fails.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages