To install this plugin, execute:
npm install --save-dev @krux/condition-jenkins
To use Jenkins for the CI, make the following changes:
- In the Jenkins build configuration, check 'Inject environment variables to the build process' and set
CI=true
in 'Properties Content' - In the Jenkins build configuration, check 'Inject passwords to the build as environment variables' and set
GH_TOKEN
appropriately - Configure
release
in yourpackage.json
as follows (showingmaster
as the branch, but you can change that):
"release": {
"branch": "master",
"verifyConditions": {
"path": "./node_modules/@krux/condition-jenkins"
}
}