Reputation: 628
I am using jenkins for building my project periodically. While creating the jenkins parameterised job i am passing few paramenters like credentials and other things. Now I want values of these parameters in my project so that I could run it. How can I achieve this?
Here is the screenshot of the jenkins
So basically i want to access the values of buildEnv and buildModule in my codes. The project is an express js application.
Upvotes: 1
Views: 4449
Reputation: 5881
They're passed in as environment variables so they're accessed like any other: Read environment variables in Node.js
Upvotes: 1