Put Jenkinsfile milestones before the prompts

This commit is contained in:
bandesz
2017-01-31 12:18:10 +00:00
parent e2e5cb6866
commit e2a466932a

4
Jenkinsfile vendored
View File

@@ -175,8 +175,8 @@ try {
stage('Staging') { stage('Staging') {
if (deployToStaging == "true") { if (deployToStaging == "true") {
input 'Approve?'
milestone 40 milestone 40
input 'Approve?'
node { node {
unstash 'source' unstash 'source'
deployDatabaseMigrations 'staging' deployDatabaseMigrations 'staging'
@@ -199,8 +199,8 @@ try {
stage('Prod') { stage('Prod') {
if (deployToProduction == "true") { if (deployToProduction == "true") {
input 'Approve?'
milestone 50 milestone 50
input 'Approve?'
node { node {
unstash 'source' unstash 'source'
deployDatabaseMigrations 'production' deployDatabaseMigrations 'production'