Skip to content

Commit

Permalink
prevent repeated checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Nov 10, 2023
1 parent a47e553 commit fee2383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci/jenkins/Jenkinsfile.build-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pipeline {
steps {
script {
dir(getRepoName()) {
githubscm.prepareCommitStatusInformationForPullRequest(getRepoName(), getChangeAuthor(), getChangeBranch(), 'apache', getGitAuthorCredentialsId())
parallelStages = [:]
for(String image : getImages()){
parallelStages[image] = createBuildAndTestStageClosure(image)
Expand Down Expand Up @@ -73,10 +74,9 @@ Closure createBuildAndTestStageClosure(String image) {
buildParams.add(string(name: 'SOURCE_BRANCH', value: getChangeBranch()))
buildParams.add(string(name: 'TARGET_BRANCH', value: getChangeTarget()))
buildParams.add(string(name: 'BUILD_KOGITO_APPS_REF', value: getChangeTarget()))

githubscm.prepareCommitStatusInformationForPullRequest(getRepoName(), getChangeAuthor(), getChangeBranch(), 'apache', getGitAuthorCredentialsId())

githubscm.updateGithubCommitStatus(image, 'PENDING', 'Queued', getRepoName())

// Keep executing so we can cancel all if needed
def job = build(job: 'kogito-images.build-image', wait: true, parameters: buildParams, propagate: false)
if (job.result != 'SUCCESS') {
Expand Down

0 comments on commit fee2383

Please sign in to comment.