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

Commit

Permalink
fix(release): checkout branch and avoid being in a detached HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
rawlingsj authored and joshuawilson committed Oct 5, 2017
1 parent 4879b25 commit 04690ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ def org = 'fabric8-ui'
def repo = 'ngx-base'
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 remote set-url origin [email protected]:${org}/${repo}.git"

def branch
container('ui'){
branch = utils.getBranch()
Expand Down

0 comments on commit 04690ab

Please sign in to comment.