Skip to content

Instantly share code, notes, and snippets.

@david-bc
Created September 18, 2017 20:35
Show Gist options
  • Save david-bc/f39f9f578ccf0a6873ebde66876f3eb3 to your computer and use it in GitHub Desktop.
Save david-bc/f39f9f578ccf0a6873ebde66876f3eb3 to your computer and use it in GitHub Desktop.
Deployment Pipelines - Manual Steps
node {
stage('Build & Unit Test') {
gradle.run 'clean build'
}
stage('Code Quality') {
withSonarQubeEnv('SonarQube') {
gradle.run 'sonarqube --info'
}
}
stage('Docker Image Push') {
gradle.run 'dockerPushForIntegration'
}
stage('Marathon Restart & Health Check') {
gradle.run 'marathonRestart marathonHealthCheck -Denvironment=testing'
}
stage('Automate Acceptance Test Gate') {
gradle.run "acceptanceTest -Denvironment=testing -Dsuite=${suiteName}"
}
stage('Manual Testing Gate') {
timeout(time: 2, unit: 'DAYS') {
input 'Push image to Staging?'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment