Re: Jenkins 1.607 - Environment Variables Stuck
Hello Everyone, I'm installing new jenkins slave on Windows Server 2008 R2 and have exactly the same issue. Previously we were using Windows 7 as windows slaves (master is on linux) and I never had such issue. And I cannot find old path in windows registry, slave hdd and master directory. Have you found a reason/solution? Igor -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/81b2b9c8-a400-4cf3-8c1a-1579fd7e7d45%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Deleting slave on master and recreating it helped, so environment stored somewhere on master - and not just path - all environment variables. Master is 1.611 On Thursday, 28 May 2015 18:25:29 UTC+1, Igor Kostenko wrote: Hello Everyone, I'm installing new jenkins slave on Windows Server 2008 R2 and have exactly the same issue. Previously we were using Windows 7 as windows slaves (master is on linux) and I never had such issue. And I cannot find old path in windows registry, slave hdd and master directory. Have you found a reason/solution? Igor -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cb5b2878-12b5-420a-8487-6cacc191fd61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Hi Henk, Setting the variable within the Jenkins job works properly (both SET and SETX), but the problem is that when we modify the windows variables (a la button clicking on Windows), restart the slave, the master (restarting the Jenkins client/master and/or rebooting), the environment variables modified on the Jenkins Slave (Windows) are not updated within Jenkins. It's like Jenkins, on first run, snapshots the environment variables and never loads them from the OS again.\ Thanks, VJ On Wednesday, April 29, 2015 at 4:28:36 AM UTC-7, Henk van Voorthuijsen wrote: Varun, Have you tried setting the variable with SETX instead of SET ? Henk -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b3c6acec-ca58-49ff-869b-150aadec9b61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Varun, Have you tried setting the variable with SETX instead of SET ? Henk -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b25dc8ce-7f06-4012-8d18-18de5cd645b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Jenkins 1.607 - Environment Variables Stuck
Hi VJ, thanks for the update. Yesterday, I also wrote Simon that my experience is probably not the best to help you, because my system is entirely local. Thus, as I realised yesterday, I’m not actually able to make out a difference between the master host’s env and that of the slaves. Duh! My bad. So I hope that other people in the mailing list can pick up the problem and offer some help. Best, Jennifer From: Varun Jain [mailto:vjain8...@gmail.com] Sent: Dienstag, 28. April 2015 19:18 To: jenkinsci-users@googlegroups.com Cc: Jennifer Hofmeister Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi Jennifer, I'll test out the restarting master node in on Thursday and post the results... but I feel that Simon and I are having the same issue here. Thanks for the quick replies! VJ On Tuesday, April 28, 2015 at 2:56:23 AM UTC-7, Jennifer Hofmeister wrote: Hi VJ, Hi Simon, Just to sum it up… whatever process runs as a service will only load new env values when restarted. The JNLP and JNLP command line options are spawned from the Jenkins master service, so you’ll want to restart that one after changing your envs so it can pick up new values and pass them on. It’s all about to which Windows service your node goes back to. (ok, you said you already tried this… but just to double-check.) For me (Windows master and slaves), this was always a safe way to fix env problems, but if you’re concrete sure it’s no service configuration thing and still have troubles, maybe try out the “Environment variables” tickbox in the node configuration. You can have global values overwritten by whatever you specify, and these variables are then passed on to every process in the build. Best, Jennifer -Original Message- From: jenkins...@googlegroups.comjavascript: [mailto:jenkins...@googlegroups.comjavascript:] On Behalf Of Simon Richter Sent: Montag, 27. April 2015 22:44 To: jenkins...@googlegroups.comjavascript: Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi, On 27.04.2015 14:57, Jennifer Hofmeister wrote: Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. I have the same issue, I can even reboot the slave and the environment stays the same (all variables, not just PATH). It appears that new variables are taken over once when the slave starts, but then remain at their first value when changed later on. Simon -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.comjavascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/553E9F81.7010603%40hogyros.de. For more options, visit https://groups.google.com/d/optout. From: Varun Jain [mailto:vjai...@gmail.comjavascript:] Sent: Montag, 27. April 2015 20:17 To: jenkins...@googlegroups.comjavascript: Cc: Jennifer Hofmeister Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi Jennifer, I've tried it as the service, the JNLP, and the java command line. All of which yielded the same results. I also did try restarting the service. Thanks, VJ On Monday, April 27, 2015 at 5:57:23 AM UTC-7, Jennifer Hofmeister wrote: Hi Varun, Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. Best, Jennifer From: jenkins...@googlegroups.commailto:jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Varun Jain Sent: Samstag, 25. April 2015 00:41 To: jenkins...@googlegroups.commailto:jenkins...@googlegroups.com Subject: Jenkins 1.607 - Environment Variables Stuck Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.commailto:jenkinsci-use...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users
Re: Jenkins 1.607 - Environment Variables Stuck
Hi Jennifer, I'll test out the restarting master node in on Thursday and post the results... but I feel that Simon and I are having the same issue here. Thanks for the quick replies! VJ On Tuesday, April 28, 2015 at 2:56:23 AM UTC-7, Jennifer Hofmeister wrote: Hi VJ, Hi Simon, Just to sum it up… whatever process runs as a service will only load new env values when restarted. The JNLP and JNLP command line options are spawned from the Jenkins master service, so you’ll want to restart that one after changing your envs so it can pick up new values and pass them on. It’s all about to which Windows service your node goes back to. (ok, you said you already tried this… but just to double-check.) For me (Windows master and slaves), this was always a safe way to fix env problems, but if you’re concrete sure it’s no service configuration thing and still have troubles, maybe try out the “Environment variables” tickbox in the node configuration. You can have global values overwritten by whatever you specify, and these variables are then passed on to every process in the build. Best, Jennifer -Original Message- From: jenkins...@googlegroups.com javascript: [mailto: jenkins...@googlegroups.com javascript:] On Behalf Of Simon Richter Sent: Montag, 27. April 2015 22:44 To: jenkins...@googlegroups.com javascript: Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi, On 27.04.2015 14:57, Jennifer Hofmeister wrote: Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. I have the same issue, I can even reboot the slave and the environment stays the same (all variables, not just PATH). It appears that new variables are taken over once when the slave starts, but then remain at their first value when changed later on. Simon -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/553E9F81.7010603%40hogyros.de. For more options, visit https://groups.google.com/d/optout. From: Varun Jain [mailto:vjai...@gmail.com javascript:] Sent: Montag, 27. April 2015 20:17 To: jenkins...@googlegroups.com javascript: Cc: Jennifer Hofmeister Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi Jennifer, I've tried it as the service, the JNLP, and the java command line. All of which yielded the same results. I also did try restarting the service. Thanks, VJ On Monday, April 27, 2015 at 5:57:23 AM UTC-7, Jennifer Hofmeister wrote: Hi Varun, Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. Best, Jennifer From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Varun Jain Sent: Samstag, 25. April 2015 00:41 To: jenkins...@googlegroups.com Subject: Jenkins 1.607 - Environment Variables Stuck Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/52130dfb-3257-4029-9592-84e5e9b754a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: Jenkins 1.607 - Environment Variables Stuck
Hi VJ, Hi Simon, Just to sum it up… whatever process runs as a service will only load new env values when restarted. The JNLP and JNLP command line options are spawned from the Jenkins master service, so you’ll want to restart that one after changing your envs so it can pick up new values and pass them on. It’s all about to which Windows service your node goes back to. (ok, you said you already tried this… but just to double-check.) For me (Windows master and slaves), this was always a safe way to fix env problems, but if you’re concrete sure it’s no service configuration thing and still have troubles, maybe try out the “Environment variables” tickbox in the node configuration. You can have global values overwritten by whatever you specify, and these variables are then passed on to every process in the build. Best, Jennifer -Original Message- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Simon Richter Sent: Montag, 27. April 2015 22:44 To: jenkinsci-users@googlegroups.com Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi, On 27.04.2015 14:57, Jennifer Hofmeister wrote: Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. I have the same issue, I can even reboot the slave and the environment stays the same (all variables, not just PATH). It appears that new variables are taken over once when the slave starts, but then remain at their first value when changed later on. Simon -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/553E9F81.7010603%40hogyros.de. For more options, visit https://groups.google.com/d/optout. From: Varun Jain [mailto:vjain8...@gmail.com] Sent: Montag, 27. April 2015 20:17 To: jenkinsci-users@googlegroups.com Cc: Jennifer Hofmeister Subject: Re: Jenkins 1.607 - Environment Variables Stuck Hi Jennifer, I've tried it as the service, the JNLP, and the java command line. All of which yielded the same results. I also did try restarting the service. Thanks, VJ On Monday, April 27, 2015 at 5:57:23 AM UTC-7, Jennifer Hofmeister wrote: Hi Varun, Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. Best, Jennifer From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Varun Jain Sent: Samstag, 25. April 2015 00:41 To: jenkins...@googlegroups.com Subject: Jenkins 1.607 - Environment Variables Stuck Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA587D532C45541B62417404F1D22030E81ED58%40you-exch1.younicos.local. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Hi Jennifer, Just to sum it up… whatever process runs as a service will only load new env values when restarted. That is expected behaviour, yes. The JNLP and JNLP command line options are spawned from the Jenkins master service, so you’ll want to restart that one after changing your envs so it can pick up new values and pass them on. So if the default environment on the slave changes, I need to restart the slave first for it to pick it up (expected), and then subsequently restart the master to make it re-fetch the environment from the slave, which is then written back during execution? I've had success getting new environment variables accepted by deleting the node from the master config an recreating them with the same settings. When the slave then reconnects, the new environment is accepted (but also sticky). I think I have also restarted the master at one point and didn't get an updated environment. I use a Linux master and Windows slaves BTW. Simon -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/553FA3CE.9030609%40hogyros.de. For more options, visit https://groups.google.com/d/optout. signature.asc Description: OpenPGP digital signature
Re: Jenkins 1.607 - Environment Variables Stuck
Hi, On 27.04.2015 14:57, Jennifer Hofmeister wrote: Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. I have the same issue, I can even reboot the slave and the environment stays the same (all variables, not just PATH). It appears that new variables are taken over once when the slave starts, but then remain at their first value when changed later on. Simon -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/553E9F81.7010603%40hogyros.de. For more options, visit https://groups.google.com/d/optout. signature.asc Description: OpenPGP digital signature
RE: Jenkins 1.607 - Environment Variables Stuck
Hi Varun, Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. Best, Jennifer From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Varun Jain Sent: Samstag, 25. April 2015 00:41 To: jenkinsci-users@googlegroups.com Subject: Jenkins 1.607 - Environment Variables Stuck Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com?utm_medium=emailutm_source=footer. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA587D532C45541B62417404F1D22030E81EB3E%40you-exch1.younicos.local. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Hi Jennifer, I've tried it as the service, the JNLP, and the java command line. All of which yielded the same results. I also did try restarting the service. Thanks, VJ On Monday, April 27, 2015 at 5:57:23 AM UTC-7, Jennifer Hofmeister wrote: Hi Varun, Does the slave run as a service? If not, it will probably just read the Jenkins service’s old PATH in case that one was not restarted after manipulation. Best, Jennifer *From:* jenkins...@googlegroups.com javascript: [mailto: jenkins...@googlegroups.com javascript:] *On Behalf Of *Varun Jain *Sent:* Samstag, 25. April 2015 00:41 *To:* jenkins...@googlegroups.com javascript: *Subject:* Jenkins 1.607 - Environment Variables Stuck Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c1c996d1-4b83-4f1a-8967-7083bda91042%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkins 1.607 - Environment Variables Stuck
Hey everyone. I'm facing an issue where the environment variables seem stuck and un-updating when running tasks via Jenkins on Windows Slaves. Here are the steps I do to reproduce, and resolve the problem 1. Create new Node and set JUST the home directory 2. Run job with just echo %PATH% 3. Modify PATH, restart Jenkins Slave 4. Echo PATH via command line, outputs as the correct NEW Path 5. Run job with jenkins. OLD path is output Resolution: Delete and recreate slave Thanks, VJ -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3153e714-ee64-490c-b65e-c31812e76864%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.