forked from o2oa/o2oa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile_release
42 lines (42 loc) · 1 KB
/
Jenkinsfile_release
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
pipeline {
agent {label 'release'}
stages {
stage('Stop Server') {
steps {
catchError(buildResult: 'SUCCESS') {
bat 'target/o2server/stop_windows.sh'
}
}
}
stage('init') {
steps {
bat 'npm install'
bat 'npm run clear_deploy'
}
}
stage('dependency') {
steps {
bat 'npm run preperation:win'
}
}
stage('build') {
parallel {
stage('build server') {
steps {
bat 'npm run build_server'
}
}
stage('build web') {
steps {
bat 'npm run build_web'
}
}
}
}
stage('deploy') {
steps {
bat 'npm run deploy:win'
}
}
}
}