forked from openstack-k8s-operators/osp-director-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pull_request_pipeline
45 lines (41 loc) · 1.51 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
40
41
42
43
44
45
pipeline {
agent none
stages {
stage('Pull request proposed jobs') {
when {
branch 'PR-*'
}
parallel {
stage('DFG-ospk8s-osp-director-operator-distgit-pr') {
steps {
build job: 'DFG-ospk8s-osp-director-operator-distgit-pr',
parameters: [
string(name: 'GITHUB_PULL_REQUEST_ID', value: String.valueOf(CHANGE_ID)),
string(name: 'GIT_OPERATOR_BRANCH', value: 'master')
]
}
}
stage('DFG-ospk8s-osp-director-operator-buildah') {
steps {
build job: 'DFG-ospk8s-osp-director-operator-buildah',
parameters: [
string(name: 'GITHUB_PULL_REQUEST_ID', value: String.valueOf(CHANGE_ID)),
string(name: 'GIT_OPERATOR_BRANCH', value: 'master')
]
}
}
}
}
stage('Pull request merged jobs') {
when {
allOf {
environment name: 'CHANGE_ID', value: ''
branch 'master'
}
}
steps {
build job: 'DFG-ospk8s-osp-director-operator-merge'
}
}
}
}