Siddharth Sinha
Siddharth Sinha

Reputation: 628

How do I get the parameters in my code passed in jenkins parameterised job

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 enter image description here

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

Answers (1)

chedabob
chedabob

Reputation: 5881

They're passed in as environment variables so they're accessed like any other: Read environment variables in Node.js

Upvotes: 1

Related Questions