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

pipeline parallel builds creating workspace for same job with @1 @2 ... in single build host

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • workflow-job-plugin
    • pipeline 2.5

      I am using parallelization for my builds. Let's say if I write my code like this and my job name is "newjob"

      parallel ( "stream 1" : { node("node1") { unstash "binary" sh "sleep 20s" sh "echo hstream1" } }, "stream 2" : { node("node1") { unstash "binary" sh "echo hello2" sh "hashtag fail" } } )

       

      what it will do is it creates a workspace on node->node 1 for stream1 as /var/tmp/build/newjob and for the stream2 as /var/tmp/build/newjob@2 or stream1 as /var/tmp/build/newjob@2 and for stream 1 as /var/tmp/build/newjob

      for a code base like mine @ symbol will create an issue and it fails my build 

      I haven't seen this issue in freestyle upstream-downstream parallel jobs but in workflow, I am seeing this do let me know if you need more information

       

            Unassigned Unassigned
            karthik546 karthik paidi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: