forked from ded/R2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
44 lines (42 loc) · 896 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
32
33
34
35
36
37
38
39
40
41
42
43
44
@Library(['pureconnect-builds', 'devops-buildtools']) _
Map config = [ emails: '[email protected]' ];
pipeline {
agent {
label 'linux && node10'
}
stages {
stage('Bootstrap') {
steps {
sh 'npm ci'
}
}
stage('Build') {
steps {
sh 'npm run build'
}
}
stage('Test') {
steps {
sh 'npm run test'
}
}
stage('Publish') {
steps {
echo 'Publish to artifactory'
publishNpmPackage()
}
}
}
post {
success {
script {
postBuild.success(config)
}
}
failure {
script {
postBuild.failure(config)
}
}
}
}