Created
March 29, 2016 01:08
-
-
Save mateusfreira/ded0a84d77761b65b55a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Import jenkinsHelper | |
const jenkinsDeployerManager = require("deploy-blue-green-helper-jenkins"); | |
//Create your jenkinsOptions configuration | |
const jenkinsOptions = { | |
debug: false, | |
jenkinsUrl: "http://192.168.99.100:8081/" | |
}; | |
//Create your blueOptions configuration | |
const blueOptions = { | |
jobName: "jobBlue", | |
url: "http://192.168.99.100:9091/" | |
}; | |
//Create your greenOptions configuration | |
const greenOptions = { | |
jobName: "jobGreen", | |
url: "http://192.168.99.100:9090/" | |
}; | |
jenkinsDeployerManager | |
.create(jenkinsOptions, blueOptions, greenOptions) | |
.deploy() | |
.then(function () { | |
console.log("It works pretty well!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment