Skip to content

Commit 4f11bac

Browse files
author
Xinfeng Liu
committed
add test inJenkinsfile
1 parent b63a3ae commit 4f11bac

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Jenkinsfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ pipeline {
55
args '-p 3000:3000'
66
}
77
}
8+
environment {
9+
CI = 'true'
10+
}
811
stages {
9-
stage('Build') {
12+
stage('Build') {
13+
steps {
14+
sh 'npm install'
15+
}
16+
}
17+
stage('Test') {
1018
steps {
11-
sh 'npm install'
19+
sh './jenkins/scripts/test.sh'
1220
}
1321
}
1422
}
15-
}

0 commit comments

Comments
 (0)