I have a pipeline project configured that is tied in to Swarm. Earlier today my review build succeeded, but after I submitted my changelist the committed build failed. When I looked at the console output I found that the p4unshelve task was attempting to unshelve the review into the wrong workspace.
My pipeline script looks something like this:
p4sync stream: '//buildtools/jenkins_review_workflow'
pipeline = load 'workflows/linux-p4-review-build.groovy'
Within pipeline.run_workflow, there is another checkout call and an unshelve that occurs. The 2nd sync is where the actually source code is downloaded and that should be the workspace where the unshelve is performed as well, however the unshelve is actually being perforrmed against the workspace where the original p4sync was called.