Skip to content

Instantly share code, notes, and snippets.

@tnolet
Created August 21, 2017 09:54
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/6e52e97c1ffde1a05d98010d56b3617c to your computer and use it in GitHub Desktop.
Save tnolet/6e52e97c1ffde1a05d98010d56b3617c to your computer and use it in GitHub Desktop.
#!groovy
stage('Deploy to Vamp') {
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/simpleservice -H 'Content-Type: application/x-yaml'"
sh "curl -X PUT --data-binary @gateway.yml ${vampHost}/api/v1/gateways/simpleservice/simpleservice/web -H 'Content-Type: application/x-yaml'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment