Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34014

p4unshelve task uses the wrong Perforce workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None
    • 1.3.8-SNAPSHOT (private-3c567c28-jenkins)

      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:

      node(linux) {
      p4sync stream: '//buildtools/jenkins_review_workflow'
      pipeline = load 'workflows/linux-p4-review-build.groovy'
      pipeline.run_workflow()
      }

      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.

            p4paul Paul Allen
            mrose Michael Rose
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: