Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(release): tidy up pipeline code and avoid semantic-release assumi…
Browse files Browse the repository at this point in the history
…ng a CD pipeline is debug
  • Loading branch information
rawlingsj authored and joshuawilson committed Mar 24, 2017
1 parent f31df4c commit d992e7d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
52 changes: 25 additions & 27 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,34 @@ def utils = new io.fabric8.Utils()
def org = 'fabric8-ui'
def repo = 'ngx-login-client'
fabric8UITemplate{
clientsNode{
ws {
git "https://github.com/${org}/${repo}.git"
readTrusted 'release.groovy'
sh "git remote set-url origin git@github.com:${org}/${repo}.git"
def pipeline = load 'release.groovy'
ws {
git "https://github.com/${org}/${repo}.git"
readTrusted 'release.groovy'
sh "git remote set-url origin git@github.com:${org}/${repo}.git"
def pipeline = load 'release.groovy'

if (utils.isCI()){
container('ui'){
pipeline.ci()
}
} else if (utils.isCD()){
def branch
container('clients'){
branch = utils.getBranch()
}
def published
container('ui'){
published = pipeline.cd(branch)
}
if (utils.isCI()){
container('ui'){
pipeline.ci()
}
} else if (utils.isCD()){
def branch
container('ui'){
branch = utils.getBranch()
}

def published
container('ui'){
published = pipeline.cd(branch)
}

def releaseVersion
container('clients'){
releaseVersion = utils.getLatestVersionFromTag()
}
def releaseVersion
container('ui'){
releaseVersion = utils.getLatestVersionFromTag()
}

if (published){
pipeline.updateDownstreamProjects(releaseVersion)
}
if (published){
pipeline.updateDownstreamProjects(releaseVersion)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
},
"release": {
"branch": "master",
"debug": false,
"verifyConditions": {
"path": "./node_modules/@krux/condition-jenkins"
}
Expand Down

0 comments on commit d992e7d

Please sign in to comment.