Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit fa95444

Browse files
aramasekkmsft
authored andcommitted
add branch checkout for jenkins (#482)
1 parent 67530f5 commit fa95444

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ pipeline {
3232

3333
stage("checkout source") {
3434
steps {
35-
git changelog: false, credentialsId: env.GIT_REPO_CREDENTIALS, poll: false, url: env.GIT_REPO, branch: env.GIT_BRANCH
35+
git changelog: false, credentialsId: env.GIT_REPO_CREDENTIALS, poll: false, url: env.GIT_REPO
36+
sh "git checkout -b '${GIT_BRANCH}'"
3637
sh "git checkout -f '${GIT_COMMIT}'"
3738
}
3839
}

0 commit comments

Comments
 (0)