Hey,
I have a Jenkins job that described by jenkinsfile. (that run .js file inside via the command node script.js)
I want to trigger the jenkins job from my backend and pass params (metadata) via curl, like this:
https://my-jenkins.com/job/MY_JOB_NAME/buildWithParameters…
Now my question is if i can pass any params that i want (and use it in the node script via process.env)? or just the params that describe in the jenkinsfile under parameters object?
Currently i can get the parameters that i send via the CURL in the node process.env object.