-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
36 lines (28 loc) · 795 Bytes
/
Jenkinsfile
File metadata and controls
36 lines (28 loc) · 795 Bytes
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')
def utils = new io.fabric8.Utils()
releaseNode {
try {
checkout scm
readTrusted 'release.groovy'
if (utils.isCI()) {
mavenCI{}
} else if (utils.isCD()) {
sh "git remote set-url origin git@github.com:fabric8-apps/nexus-app.git"
def pipeline = load 'release.groovy'
def stagedProject
stage('Stage') {
stagedProject = pipeline.stage()
}
stage('Promote') {
pipeline.release(stagedProject)
}
stage ('Update downstream dependencies'){
pipeline.updateDownstreamDependencies(stagedProject)
}
}
} catch (err) {
hubot room: 'release', message: "${env.JOB_NAME} failed: ${err}"
error "${err}"
}
}