Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 authored Sep 28, 2017
1 parent bdda202 commit 52a8a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ node {
withEnv(["GOROOT=$goRoot","GOPATH=${cliWorkspace}","PATH+GOROOT=${goRoot}/bin", "JFROG_CLI_OFFER_CONFIG=false"]) {

stage 'Go get'
sh 'go get -f -u github.com/jfrogdev/jfrog-cli-go/jfrog'
sh 'go get -f -u github.com/jfrogdev/jfrog-cli-go/jfrog-cli/jfrog'
if (BRANCH?.trim()) {
dir("src/github.com/jfrogdev/jfrog-cli-go/jfrog") {
dir("src/github.com/jfrogdev/jfrog-cli-go/jfrog-cli/jfrog") {
sh "git checkout $BRANCH"
sh 'go install'
}
Expand All @@ -43,7 +43,7 @@ def uploadToBintray(pkg, fileExtension) {
}

def buildAndUpload(goos, goarch, pkg, fileExtension) {
sh "env GOOS=$goos GOARCH=$goarch go build github.com/jfrogdev/jfrog-cli-go/jfrog"
sh "env GOOS=$goos GOARCH=$goarch go build github.com/jfrogdev/jfrog-cli-go/jfrog-cli/jfrog"
def extension = fileExtension == null ? '' : fileExtension
uploadToBintray(pkg, extension)
sh "rm jfrog$extension"
Expand Down

0 comments on commit 52a8a7b

Please sign in to comment.