try out other ways..

This commit is contained in:
Karl Palsson 2020-09-06 22:30:42 +00:00
parent 3416f55ee9
commit 04dd4c6fc8
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ pipeline {
steps {
sh "echo karl we are building $pr_from_sha"
step([$class: 'GitHubSetCommitStatusBuilder'])
checkout([$class: 'GitSCM', branches: [[name: $pr_from_sha]], userRemoteConfigs: [[url: $pr_from_git_url]]])
//checkout([$class: 'GitSCM', branches: [[name: $pr_from_sha]], userRemoteConfigs: [[url: $pr_from_git_url]]])
git branch: "$pr_from_sha", url: "$pr_from_url"
}
}
stage('build') {