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

Commit

Permalink
fix(release): make sure we are not on a detached branch else semantic…
Browse files Browse the repository at this point in the history
… release has issues (#159)
  • Loading branch information
rawlingsj authored Oct 5, 2017
1 parent 1120fc1 commit 3f55f5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ def org = 'fabric8-ui'
def repo = 'ngx-fabric8-wit'
fabric8UINode{
ws {
git "https://github.com/${org}/${repo}.git"
checkout scm
readTrusted 'release.groovy'
sh "git remote set-url origin [email protected]:${org}/${repo}.git"
def pipeline = load 'release.groovy'

if (utils.isCI()){
container('ui'){
pipeline.ci()
}
} else if (utils.isCD()){
sh "git checkout master"
sh "git pull"
sh "git remote set-url origin [email protected]:${org}/${repo}.git"
def branch
container('ui'){
branch = utils.getBranch()
Expand Down

0 comments on commit 3f55f5e

Please sign in to comment.