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 (#79)
  • Loading branch information
rawlingsj committed Oct 5, 2017
1 parent f845ad0 commit bb91d7a
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-login-client'
fabric8UINode{
ws {
git "https://github.com/${org}/${repo}.git"
checkout scm
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()){
sh "git checkout master"
sh "git pull"
sh "git remote set-url origin git@github.com:${org}/${repo}.git"
def branch
container('ui'){
branch = utils.getBranch()
Expand Down

0 comments on commit bb91d7a

Please sign in to comment.