Skip to content

Commit

Permalink
walk before you run
Browse files Browse the repository at this point in the history
  • Loading branch information
egossaye committed Mar 29, 2018
1 parent 6fcfae7 commit c981387
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
pipeline {
agent none
agent {
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2 -p 3030:3030 -u root:root'
}
}
stages {
stage('Build') {
agent {
docker {
image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2 -p 3030:3030'
}
}
steps {
sh 'mvn -DskipTests clean install'
sh './scripts/run.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
sh './scripts/stop.sh'
}
}
stage('Deliver') {
steps {
// sh './scripts/run.sh'
// input message: 'Finished using the web site? (Click "Proceed" to continue)'
// sh './scripts/stop.sh'
sh 'ls -al ./scripts'
}
}
}
}

0 comments on commit c981387

Please sign in to comment.