-
Notifications
You must be signed in to change notification settings - Fork 20
/
Jenkinsfile.integration
35 lines (30 loc) · 1.02 KB
/
Jenkinsfile.integration
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
#!groovy
// base jenkins slave
def jenkins_slave_base='storage-compute'
def get_ceph_salt_git_branch(change_id) {
if (!change_id || change_id.isEmpty()) {
return "master"
} else {
return "origin/pr-merged/" + String.valueOf(change_id)
}
}
pipeline {
agent none
options { parallelsAlwaysFailFast() }
stages
{
stage ('Invoke sesdev pipeline') {
agent {
label "${jenkins_slave_base}"
}
steps {
build job: 'sesdev-integration/master', parameters: [
// Note: the origin/pr-merged/XXX syntax is possible due to https://github.com/SUSE/sesdev/pull/198
string(name: 'CEPH_SALT_GIT_BRANCH', value: get_ceph_salt_git_branch(env.CHANGE_ID)),
string(name: 'CUSTOM_JOB_NAME', value: "ceph-salt PR-" + String.valueOf(env.CHANGE_ID)),
string(name: 'CUSTOM_JOB_DESC', value: String.valueOf(env.CHANGE_URL))
]
}
}
}
}