Skip to content

Instantly share code, notes, and snippets.

@tnolet
Last active August 16, 2017 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnolet/8795f5e3ce86c1a3fb4275259650a96b to your computer and use it in GitHub Desktop.
Save tnolet/8795f5e3ce86c1a3fb4275259650a96b to your computer and use it in GitHub Desktop.
def vampDeploymentName = 'simpleservice'
def vampHost = 'http://10.0.1.134:3232'
stage('Deploy') {
sh "curl -X POST --data-binary @vamp_blueprint.yml ${vampHost}/api/v1/blueprints -H 'Content-Type: application/x-yaml'"
sh "curl -X PUT --data-binary @vamp_blueprint.yml ${vampHost}/api/v1/deployments/${vampDeploymentName} -H 'Content-Type: application/x-yaml'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment