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

Job-B ${WORKSPACE} has value of Job-A WORKSPACE

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 1.502, fstrigger 0.35, envinject 1.83

      If Jenkins job "A" has a configured fstrigger-trigger, then some other Jenkins jobs "B" (not all) will inherit the job "A" value for their ${WORKSPACE} env-variable. Keeping job "A", but removing the fstrigger and restarting Jenkins, will solve the issue. Adding an explicit WORKSPACE to all "B"-jobs will solve the issue. Job "A" does not directly use the envinject plugin, but "B" jobs do.

          [JENKINS-16882] Job-B ${WORKSPACE} has value of Job-A WORKSPACE

          I see the same issue if job A uses scripttrigger plugin.

          Natalia Naumova added a comment - I see the same issue if job A uses scripttrigger plugin.

          Seems the problem can be reproduced only after the second run (but i'm not sure)
          The biggest problem is, the workspace of each job triggered by the fsp will be overwritten permanently. Example:

          Job A (fstrigger) -> Job B -> Job C
          Job 1 (normal time trigger) -> Job 2 -> Job C

          It doesnt matter if Job C is triggered by Job A or 1 - the WORKSPACE variable is set to "workspace\Job A" everytime.

          Sven Appenrodt added a comment - Seems the problem can be reproduced only after the second run (but i'm not sure) The biggest problem is, the workspace of each job triggered by the fsp will be overwritten permanently. Example: Job A (fstrigger) -> Job B -> Job C Job 1 (normal time trigger) -> Job 2 -> Job C It doesnt matter if Job C is triggered by Job A or 1 - the WORKSPACE variable is set to "workspace\Job A" everytime.

          Marc Brugger added a comment -

          I have the same Problem, The WORKSPACE variable of other Jobs gets overwritten as long the fstrigger is active on in other build.

          Marc Brugger added a comment - I have the same Problem, The WORKSPACE variable of other Jobs gets overwritten as long the fstrigger is active on in other build.

            gbois Gregory Boissinot
            riccardo_gorza Riccardo Gorza
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: