[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
Natalia Naumova created JENKINS-12704:
-----------------------------------------

             Summary: WORKSPACE variable for concurrent builds are not defined properly.
                 Key: JENKINS-12704
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
             Project: Jenkins
          Issue Type: Bug
          Components: concurrent-build, envinject
         Environment: redhat (master/slave)
jenkins ver=1.448
            Reporter: Natalia Naumova
            Assignee: Kohsuke Kawaguchi


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159312#comment-159312 ]

SCM/JIRA link daemon commented on JENKINS-12704:
------------------------------------------------

Code changed in jenkins
User: Gregory Boissinot
Path:
 src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java
http://jenkins-ci.org/commit/envinject-plugin/15363ba6de7e9593ff6bd9822da843ad335e8069
Log:
  Fix JENKINS-12704





               

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: Kohsuke Kawaguchi
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

gbois resolved JENKINS-12704.
-----------------------------

      Assignee: gbois  (was: Kohsuke Kawaguchi)
    Resolution: Fixed
   

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: gbois
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159336#comment-159336 ]

mwebber commented on JENKINS-12704:
-----------------------------------

The "fix" for this problem appears to have introduced another: JENKINS-12841
               

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: gbois
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159402#comment-159402 ]

SCM/JIRA link daemon commented on JENKINS-12704:
------------------------------------------------

Code changed in jenkins
User: Gregory Boissinot
Path:
 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
 src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java
http://jenkins-ci.org/commit/envinject-plugin/b2c132e077b2bb052df175660a8906533d681d37
Log:
  Fix JENKINS-12704 and JENKINS-12841


Compare: https://github.com/jenkinsci/envinject-plugin/compare/6ff47b2...b2c132e


               

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: gbois
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160942#comment-160942 ]

Sergey Smirnov commented on JENKINS-12704:
------------------------------------------

I have this bug on Jenkins ver. 1.450
Which version of jenkins bug is fixed?
               

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: gbois
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-12704) WORKSPACE variable for concurrent builds are not defined properly.

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

    [ https://issues.jenkins-ci.org/browse/JENKINS-12704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160954#comment-160954 ]

Sergey Smirnov commented on JENKINS-12704:
------------------------------------------

Jenkins ver. 1.457
Environment Injector Plugin 1.44
WORKSPACE works correct with concurent builds
               

> WORKSPACE variable for concurrent builds are not defined properly.
> ------------------------------------------------------------------
>
>                 Key: JENKINS-12704
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12704
>             Project: Jenkins
>          Issue Type: Bug
>          Components: concurrent-build, envinject
>         Environment: redhat (master/slave)
> jenkins ver=1.448
>            Reporter: Natalia Naumova
>            Assignee: gbois
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Loading...