forked from TritonDataCenter/illumos-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
63 lines (57 loc) · 2.01 KB
/
Jenkinsfile
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
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright 2020 Joyent, Inc.
*/
@Library('[email protected]') _
pipeline {
agent {
label 'platform:true && image_ver:18.4.0 && pkgsrc_arch:x86_64 && ' +
'dram:8gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:2'
}
options {
buildDiscarder(logRotator(numToKeepStr: '30'))
timestamps()
parallelsAlwaysFailFast()
}
stages {
stage('trigger smartos-live') {
when {
anyOf {
branch 'master'
triggeredBy cause: 'UserIdCause'
}
// Release builds should only be done on smartos-live.git
// so that our build(..) statement below does not trigger
// the 'master' branch of smartos-live.
not {
branch pattern: 'release-\\d+', comparator: 'REGEXP'
}
}
steps {
build(job:'joyent-org/smartos-live/master',
wait: false,
parameters: [
text(name: 'CONFIGURE_PROJECTS',
value:
"illumos-extra: $BRANCH_NAME: origin\n" +
'illumos: master: origin\n' +
'local/kbmd: master: origin\n' +
'local/kvm-cmd: master: origin\n' +
'local/kvm: master: origin\n' +
'local/mdata-client: master: origin\n' +
'local/ur-agent: master: origin'),
booleanParam(name: 'BUILD_STRAP_CACHE', value: true)
])
}
}
}
post {
always {
joyMattermostNotification(channel: 'jenkins')
}
}
}