Created
September 30, 2016 15:10
-
-
Save Brunty/fd77224689a015a4e559bddf710a98a2 to your computer and use it in GitHub Desktop.
UAT deployments
This file contains hidden or 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
stage("Deploy to UAT" ) { | |
node { | |
def gitCommit = gitCommit() | |
ansiblePlaybook extraVars: [release_version: "$gitCommit"], | |
inventory: 'ansible/inventories/uat', | |
playbook: 'ansible/deploy-uat.yml' | |
} | |
} | |
def gitCommit() { | |
sh(returnStdout: true, script: 'git rev-parse HEAD').trim() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment