Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for p4 environment variables being wrong in parallel pipeline syncs #104

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

williambrode
Copy link

https://issues.jenkins-ci.org/browse/JENKINS-52806 - Store the tagAction created by this perforce scm and use it for creating environment variables. This prevents this perforce scm from setting the environment variables based on another perforce scm's tag action.

…ion created by this perforce scm and use it for creating environment variables. This prevents perforce scm from setting the environment variables based on another perforce scm's tag action.
@williambrode
Copy link
Author

I'd like to add a test to verify the issue is indeed fixed. Will try to get some time to do that. Though I think the code makes more sense this way regardless.

@p4paul
Copy link
Contributor

p4paul commented Aug 1, 2019

Parallel and concurrent execution are hard areas to test especially if timing is involved. Not sure if this helps, but some build calls are blocking e.g. job.scheduleBuild2(0).get(); There are other calls like jenkins.waitUntilNoActivity(); that can catch you out as they may return early if the build is still queued and not started.
Do let me know if you need any help with the test.

@p4paul p4paul merged commit 276f557 into jenkinsci:master Oct 14, 2019
@p4paul
Copy link
Contributor

p4paul commented Oct 14, 2019

Thank you for the fix - I have merged you changes and added a test case in commit 787682f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants