Change 21207

paul_allen (Paul Allen)
Paul Allen committed this change into //guest/perforce_software/p4jenkins/main/src
Request Review
Download .zip
Multi client support in Pipeline.

If two or more `p4sync` operations are called in one Pipeline script, they MUST have different client names.  During a build, multiple entries are added to the build history; on subsequent builds they are used in the three following situations:
 - Polling: largest change number across all the checkouts is used.
 - Change Summary: last change with the same client name is used.
 - Environment: last change recorded (regardless of client).

Added two test cases to cover basic multi sync build/poll situations.

JENKINS-38401
JENKINS-37462
JENKINS-39652
  • Files 6
  • Comments 0
6 edited 0 added 0 deleted
main/java/org/jenkinsci/plugins/p4/PerforceScm.java#89
Loading...
main/java/org/jenkinsci/plugins/p4/build/P4EnvironmentContributor.java#2
Loading...
main/java/org/jenkinsci/plugins/p4/credentials/P4BaseCredentials.java#7
Loading...
main/java/org/jenkinsci/plugins/p4/tagging/TagAction.java#21
Loading...
main/java/org/jenkinsci/plugins/p4/tasks/AbstractTask.java#18
Loading...
test/java/org/jenkinsci/plugins/p4/client/JenkinsfileTest.java#2
Loading...
Tip: Use n and p to cycle through the changes.