This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile.trigger.test
66 lines (64 loc) · 1.89 KB
/
Jenkinsfile.trigger.test
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
library identifier: "multiarch-openshift-ci@master",
retriever: modernSCM([$class: 'GitSCMSource', remote: "https://github.com/CentOS-PaaS-SIG/multiarch-openshift-ci"])
node("paas-sig-ci-slave01") {
ansiColor('xterm') {
timestamps {
stage('init') {
checkout(
changelog: true,
poll: true,
scm: [
$class: 'GitSCM',
branches: [
[name: 'origin/master']
],
doGenerateSubmoduleConfigurations: false,
browser: [
$class: 'GithubWeb',
repoUrl: 'https://github.com/openshift/origin'
],
extensions: [
[$class: 'CleanBeforeCheckout'],
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'origin']
],
gitTool: 'Default',
submoduleCfg: [],
userRemoteConfigs: [
[
name: 'origin',
refspec: '+refs/heads/master:refs/remotes/origin/master',
url: 'https://github.com/openshift/origin.git'
],
[
name: 'detiber',
refspec: '+refs/heads/multiarch:refs/remotes/detiber/multiarch',
url: 'https://github.com/detiber/origin.git'
]
]
]
)
sh('''#!/usr/bin/bash -xeu
pushd origin
git merge detiber/multiarch
popd
''')
}
def arches=['x86_64', 'ppc64le']
arch_tasks=[:]
for (arch in arches) {
def arch_name = arch
arch_tasks[arch] = {
stage(arch_name){
build_result = build(
job: 'paas-multiarch-test2',
parameters: [
string(name: 'ARCH', value: arch_name)
]
)
}
}
}
parallel arch_tasks
}
}
}