-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pull_request_pipeline
39 lines (39 loc) · 1.32 KB
/
.pull_request_pipeline
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
pipeline {
agent none
stages {
stage('Pull request proposed jobs') {
when {
branch 'PR-*'
}
parallel {
stage('DFG-converged-openstack-k8s-heat-operator-distgit-pr') {
steps {
build job: 'DFG-converged-openstack-k8s-heat-operator-distgit-pr',
parameters: [
string(name: 'GITHUB_PULL_REQUEST_ID', value: String.valueOf(CHANGE_ID))
]
}
}
stage('DFG-converged-openstack-k8s-heat-operator-buildah') {
steps {
build job: 'DFG-converged-openstack-k8s-heat-operator-buildah',
parameters: [
string(name: 'GITHUB_PULL_REQUEST_ID', value: String.valueOf(CHANGE_ID))
]
}
}
}
}
stage('Pull request merged jobs') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'master'
}
}
steps {
build job: 'DFG-converged-openstack-k8s-heat-operator-merge'
}
}
}
}