[JIRA] (JENKINS-57716) Path set by withEnv overwritten

2019-12-26 Thread atomsmail...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tomas Salazar started work on  JENKINS-57716  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Tomas Salazar  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199658.1559051425000.295.1577379061644%40Atlassian.JIRA.


[JIRA] (JENKINS-57716) Path set by withEnv overwritten

2019-05-29 Thread fredrik.bro...@netent.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Fredrik Broman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57716  
 
 
  Path set by withEnv overwritten   
 

  
 
 
 
 

 
Change By: 
 Fredrik Broman  
 
 
Environment: 
 Jenkins ver. 2.164.2nvm-wrapper-plugin 0.1.7  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199658.1559051425000.14788.1559113980456%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57716) Path set by withEnv overwritten

2019-05-28 Thread fredrik.bro...@netent.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Fredrik Broman created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57716  
 
 
  Path set by withEnv overwritten   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Tomas Salazar  
 
 
Components: 
 nvm-wrapper-plugin  
 
 
Created: 
 2019-05-28 13:50  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Fredrik Broman  
 

  
 
 
 
 

 
 Hi, Maybe this is intended behaviour (or maybe I'm doing something wrong) but if i have this test pipeline: 

 

pipeline {    
agent none    
stages {       
  stage("nvm") {           
  agent {label 'npm'}           
  steps {            
 withEnv(["PATH+foo=/tmp"]) {            
nvm('8.10.0') {                       
   sh 'env'                   
   }               
   }          
   }      
    }  
  }
}
 

 /tmp is not on PATH: PATH=/var/opt/jenkins-slave/.nvm/versions/node/v8.10.0/bin:/var/opt/jenkins-slave/.nvm/versions/node/v8.10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rh/git19/root/bin However if I just switch wtihEnv and nvm around: 

 

 steps {  
   nvm('8.10.0') {   
   withEnv(["PATH+foo=/tmp"]) {           
   sh 'env'      
  }  
   }
}
 

 /tmp is now on the PATH:  PATH=/tmp:/var/opt/jenkins-slave/.nvm/versions/node/v8.10.0/bin:/var/opt/jenkins-slave/.nvm/versions/node/v8.10.0/bin:/goss:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/rh/git19/root/bin