test Jenkinsfile

This commit is contained in:
medcl 2020-03-03 11:16:52 +08:00
parent c39f779e35
commit d0061734f3
1 changed files with 22 additions and 3 deletions

25
Jenkinsfile vendored
View File

@ -1,11 +1,30 @@
pipeline {
agent any
agent {
docker {
image 'node:6-alpine'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
}
stages {
stage('Do nothing') {
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh '/bin/true'
}
}
stage('Deliver') {
steps {
sh './jenkins/scripts/deliver.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
sh './jenkins/scripts/kill.sh'
}
}
}
}