jenkins-build-trigger
v1.0.1
Published
Allows to trigger builds via the Jenkins api
Downloads
1
Maintainers
Readme
jenkins-build-trigger
Allows to trigger builds via the api
Installation
npm i --save-dev jenkins-build-trigger
Usage
It is recommended to path the credentials using dotenv:
const deploy = require('jenkins-build-trigger');
deploy({
buildUrl: deployJobUrl,
username: process.env.JENKINS_USERNAME,
token: process.env.JENKINS_TOKEN
}, (err) => {
// do whatever after the deploy
});