-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
31 lines (31 loc) · 870 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-p 4200:4200'
}
}
stages {
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Test') {
steps {
sh 'npm run lint'
sh 'npm install -g phantomjs-prebuilt'
sh 'echo $PHANTOMJS_BIN'
sh 'export PHANTOMJS_BIN=/usr/local/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs'
sh 'npm run test -- --single-run --no-progress'
}
}
stage('Deploy') {
steps {
sh './jenkins/scripts/deploy.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
sh './jenkins/scripts/kill.sh'
}
}
}
}