forked from fabric8-services/fabric8-dependency-wait-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
36 lines (34 loc) · 970 Bytes
/
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
#!/usr/bin/groovy
@Library('github.com/fabric8io/fabric8-pipeline-library@master')
//@Library('github.com/rawlingsj/fabric8-pipeline-library@master')
def dummy
goTemplate{
dockerNode{
if (env.BRANCH_NAME.startsWith('PR-')) {
goCI{
githubOrganisation = 'fabric8-services'
dockerOrganisation = 'fabric8'
project = 'fabric8-dependency-wait-service'
makeTarget = 'clean test cross'
}
} else if (env.BRANCH_NAME.equals('master')) {
def v = goRelease{
githubOrganisation = 'fabric8-services'
dockerOrganisation = 'fabric8'
project = 'fabric8-dependency-wait-service'
}
stage ('Update downstream dependencies') {
updateDownstreamDependencies(v)
}
}
}
}
def updateDownstreamDependencies(v) {
pushPomPropertyChangePR {
propertyName = 'dependency-wait-service.version'
projects = [
'fabric8io/fabric8-platform',
]
version = v
}
}