Skip to content

Commit fe68016

Browse files
committed
fix: use yarn and add deliver
1 parent bf740d7 commit fe68016

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

Jenkinsfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
pipeline {
22
agent {
33
docker {
4-
image 'node:6-alpine'
5-
args '-p 3000:3000'
4+
image 'node:6-alpine'
5+
args '-p 3000:3000'
66
}
77
}
8-
9-
environment {
8+
environment {
109
CI = 'true'
1110
}
12-
1311
stages {
14-
stage('Build') {
12+
stage('Build') {
1513
steps {
16-
sh 'npm install'
14+
sh 'yarn'
1715
}
1816
}
19-
20-
stage('Test') {
17+
stage('Test') {
2118
steps {
22-
sh './jenkins/scripts/test.sh'
19+
sh './jenkins/scripts/test.sh'
20+
}
21+
}
22+
stage('Deliver') {
23+
steps {
24+
sh './jenkins/scripts/deliver.sh'
25+
input message: 'Finished using the web site? (Click "Proceed" to continue)'
26+
sh './jenkins/scripts/kill.sh'
2327
}
2428
}
2529
}

0 commit comments

Comments
 (0)