Skip to content

Commit

Permalink
Add example Jenkinsfile generated by Blue Ocean.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesgas committed Nov 14, 2017
1 parent 9d370bf commit 682e702
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000'
}

}
stages {
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Test') {
environment {
CI = 'true'
}
steps {
sh './jenkins/scripts/test.sh'
}
}
stage('Deliver') {
steps {
sh './jenkins/scripts/deliver.sh'
input 'Finished using the web site? (Click "Proceed" to continue)'
sh './jenkins/scripts/kill.sh'
}
}
}
}

0 comments on commit 682e702

Please sign in to comment.