This is an automated email from the ASF dual-hosted git repository. ricardozanini pushed a commit to branch radtriste-fix-pipelines in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git
commit cb9ccb5defd0a78b3271afabeb0710e3f78cd701 Author: jstastny-cz <[email protected]> AuthorDate: Fri Nov 10 12:57:39 2023 +0100 prevent repeated checkout --- .ci/jenkins/Jenkinsfile.build-and-test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.build-and-test b/.ci/jenkins/Jenkinsfile.build-and-test index 914762b5..a0e2fcea 100644 --- a/.ci/jenkins/Jenkinsfile.build-and-test +++ b/.ci/jenkins/Jenkinsfile.build-and-test @@ -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) @@ -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') { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
