Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins job stuck Loading node environment variables

Tags:

jenkins

Some of the jenkins jobs are stuck with the following message "[EnvInject] - Loading node environment variables".

I tried restarting the slave and that fixed the problem and every thing was working fine for few builds but then it stopped working again.

Any help would be appreciated.

like image 296
Ashish Musale Avatar asked Dec 22 '14 10:12

Ashish Musale


People also ask

How do I set environment variables in Jenkins?

Environment variables may also be set by Jenkins plugins. Refer to the documentation of the specific plugins for environment variable names and descriptions for those plugins. Another common use for environment variables is to set or override "dummy" credentials in build or test scripts.

What can be added to job parameters in Jenkins?

Addition of job parameters available only at runtime, but not at design time. Boolean values set in environment variables help certain toggle stages in a pipeline via a parameter that describes a specific subset of tests you want to run. Providing IDs of credentials defined in Jenkins.

How to print Jenkins Pipeline environment variables in logs?

The steps to do the same are : Create a new pipeline in Jenkins, named ‘ envvars ’. In the Pipeline Script, type the following groovy script. The windows batch command used here is “ set ”. This command lists all the Jenkins pipeline environment variables in logs. sh ‘printenv’ .

How do I install envinject in Jenkins?

Click Manage Jenkins on the left-hand side of the dashboard. 2. In the System Configuration section, click the Manage Plugins button. 3. Under the Available tab, search for envinject.


1 Answers

Try renaming the project.

I don't know why this works - I just read that this had worked for someone else, and it worked for me!

like image 199
RobinGower Avatar answered Sep 22 '22 22:09

RobinGower