-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_Jenkinsfile
More file actions
115 lines (100 loc) · 2.56 KB
/
_Jenkinsfile
File metadata and controls
115 lines (100 loc) · 2.56 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
pipeline {
agent {
label 'dory'
}
options {
disableConcurrentBuilds()
}
triggers {
pollSCM('* * * * *')
cron('@weekly')
}
parameters {
string(name: 'GPF_BRANCH', defaultValue: "master", description: 'gpf git branch to package')
string(name: 'GPFJS_BRANCH', defaultValue: "master", description: 'gpfjs git branch to package')
}
environment {
GPF_BRANCH="$params.GPF_BRANCH"
GPFJS_BRANCH="$params.GPFJS_BRANCH"
}
stages {
stage ('Start') {
steps {
zulipSend(
message: "Started build #${env.BUILD_NUMBER} of project ${env.JOB_NAME} (${env.BUILD_URL})",
topic: "${env.JOB_NAME}")
}
}
// rm -rf gpf
// rm -rf gpfjs
stage('clean') {
steps {
sh '''
rm -rf builds/*
'''
}
}
stage('gpf & gpfjs source') {
steps {
sh '''
echo "GPF_BRANCH=${GPF_BRANCH}"
echo "GPFJS_BRANCH=${GPF_BRANCH}"
./jenkins_source.sh
'''
}
}
stage('gpfjs build') {
steps {
sh '''
./jenkins_build_gpfjs.sh
'''
}
}
stage('django gpfjs build') {
steps {
sh '''
./jenkins_django_gpfjs.sh
'''
}
}
stage('package gpf') {
steps {
sh '''
./jenkins_gpf_package.sh
'''
}
}
stage('build gpf development docker image') {
steps {
sh '''
./jenkins_docker_build_image.sh
'''
}
}
stage('tag repos') {
steps {
sh '''
./jenkins_tag.sh
'''
}
}
stage('publish docker image') {
steps {
sh '''
docker push seqpipe/gpf_dev:${BUILD_NUMBER}
docker push seqpipe/gpf_dev:latest
'''
}
}
}
post {
always {
zulipNotification(
topic: "${env.JOB_NAME}"
)
}
success {
archiveArtifacts artifacts: 'builds/*.tar.gz'
}
}
}