| Hi William Brode, I have tested this here on P4-Plugin1.10.0 and can see that my workspace contains the correct files for each job but the reporting shows both changes-lists. For example: First job...  Second job...  I'm assuming this is the behavior you saw. If not please let me know. Reproduction Steps: 1 - Create a Jenkinsfile containing a 60 second sleep:
pipeline {
agent { label 'master' }
stages {
stage("Repro") {
steps {
script {
echo "Starting job."
echo "This shows that the slave contains the correct files with an implicit sync."
sh 'ls -l' echo "Sleep for 60 seconds to allow overlap"
sleep 60
}
}
}
}
}
2 - Add Jenkinsfile and test.txt file to the depot 3 - Create a pipeline job that uses the jenkinsfile. 4 - Run build once to create baseline. 5 - Edit and submit test.txt 6 - Run build. 7 - Wait 10 seconds then quickly edit and submit test.txt. For example:
p4 edit test.txt && echo test >> test.txtx && p4 submit -d "Edited test.txt"
8 - Manually run build again (must be within 40 seconds of the build started in step 6). Outcome : Build 2 will report changelist 2. Build 3 will report changelist 2 and 3. Expected: Build 2 will report changelist 2. Build 3 will report changelist 3. Note - This is not the same as poll per change. If two edits had been made Build 3 should report changelists 3 and 4. |