Hi, I have jenkins installed in the cloud and I would like to install newman ( nodejs) via jenkins so I can use it later to execute postman collection using the URL.
I donāt want to access the box to install nodejs therefore use jenkins to install nodejs , is it possible ?
or is there a short cut where I can create a script to call newman without installing it in the box ?
questions:
- I installed āintegration npm pluginā in jenkins
created the
config manage user file with URL = http://npmjs.org
the pipeline code is below
pipeline{ agent any stages { stage(ānpm-buildā) {
steps {
echo āBranch is ${env.BRANCH_NAME}ā¦ā
withNPM(npmrcConfig:'8e75a5ce-5a4b-4a0a-971d-f56a81') {
echo "Performing npm build..."
sh 'npm install'
}
and this gave me an ERROR: script returned exit code 127 Finished: FAILURE
could you please help ? any idea ?