stage ("My Stage") {
environment {
cloudcerts_iamConfig_preprod = credentials('${cloudcerts_iamConfig_preprod}')
}
steps {
// Setup packages and run tests
sh '''
npm install
npm test
'''
}
}
parameters {
string(defaultValue: 'master', description: 'Git Branch', name: 'gitBranch')
}
...
myProperty = "${params.gitBranch}"
Hi Robert,
In case if I use Jenkinsfile in multibranch and simple pipeline
jobs, and for simple pipeline jobs I would like to configure job's
parameters manually and for multibranch jobs from Jenkinsfile. How
can I do this?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2b08c388-ccf5-43dd-a9a6-980eed34546f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- WBD, Viacheslav Dubrovskyi