Skip to content

Instantly share code, notes, and snippets.

@mateusfreira
Created March 29, 2016 01:08
Show Gist options
  • Save mateusfreira/ded0a84d77761b65b55a to your computer and use it in GitHub Desktop.
Save mateusfreira/ded0a84d77761b65b55a to your computer and use it in GitHub Desktop.
//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