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

WORKSPACE variable for concurrent builds are not defined properly.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core, envinject-plugin
    • Labels:
      None
    • Environment:
      redhat (master/slave)
      jenkins ver=1.448

      Description

      I have master/slave setup, and my project has the ability to execute builds in parallel, i.e. I have 'Execute concurrent builds if necessary' option turned on.

      But when I'm trying to inject any environment variables into my job ( 'Inject environment variables to the build process' option ), then the $WORKSPACE variable is NOT defined properly for parallel builds.

      They should be

      ${JENKINS_HOME/workspace/$

      {JOB_NAME}
      ${JENKINS_HOME/workspace/${JOB_NAME}

      @2
      ${JENKINS_HOME/workspace/$

      {JOB_NAME}@3
      ...
      But $WORKSPACE always points to


      ${JENKINS_HOME/workspace/${JOB_NAME}

      for all job runs.

        Activity

        nnau Natalia Naumova created issue -
        gbois Gregory Boissinot made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Kohsuke Kawaguchi [ kohsuke ] gbois [ gbois ]
        Resolution Fixed [ 1 ]
        ircbot IRCbot Run by Kohsuke made changes -
        Component/s core [ 15593 ]
        Component/s concurrent-build [ 15628 ]

          People

          • Assignee:
            gbois Gregory Boissinot
            Reporter:
            nnau Natalia Naumova
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: