apache / incubator-kie-kogito-images

Images for Kogito
http://kogito.kie.org
Apache License 2.0
21 stars 78 forks source link

incubator-kie-kogito-images#1729: PR checks forks with different naming #1776

Closed jstastny-cz closed 3 weeks ago

jstastny-cz commented 4 weeks ago

Addressing:

Problems were caused by the githubscm.prepareCommitStatusInformation* methods that don't resolve the fork name.

To overcome this limitation, using propagation of the env variables from the PR check plugin into the jenkinsfiles of Jenkinsfile.build-and-test and Jenkinsfile.build-image .

By setting sensible defaults for the job parameters the changes should be covering both PR check and nightly build use cases.

The githubscm.checkoutIfExists method does the merging into target branch out of the box - that's why the execution differs for PR check vs nightly. In theory, we know which repo to resolve, so could be unified, but we'd need to handle the merging differently (which might be less convenient afterall).

kie-ci3 commented 4 weeks ago

PR job #10 was: FAILURE Possible explanation: Pipeline failure or project build failure

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/10/display/redirect See console log:

Console Logs SOURCE_REPOSITORY=kogito-images
DISPLAY_NAME=PR #1776: https://github.com/apache/incubator-kie-kogito-images/pull/1776
MAVEN_OPTS=
NODE_LABELS=ubuntu builds35
STAGE_NAME=Initialization
SOURCE_AUTHOR=jstastny-cz
DEVELOCITY_CCUD_PLUGIN_VERSION=2.0
WORKSPACE_TMP=/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-images.build-and-test@tmp
BUILD_TIMESTAMP=2024-06-28 08:14:36 UTC
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/golang/go/bin:/home/nonrootuser/go/bin
CI=true
RUN_ARTIFACTS_DISPLAY_URL=https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/10/display/redirect?page=artifacts
GRADLE_ENTERPRISE_ACCESS_KEY=ge.apache.org=etlwjhwel56ybdijfxymbj5bb6fwydcy3sj2oe6rlwjzotgalrea
MAVEN_ARTIFACTS_REPOSITORY=
JOB_ENVIRONMENT=
JENKINSGRADLEPLUGIN_MAVEN_PLUGIN_CONFIG_EXT_CLASSPATH=
JENKINSGRADLEPLUGIN_GRADLE_ENTERPRISE_ENFORCE_URL=true
DEPLOY_IMAGE=false
DEBUG=false
BUILD_ID=10
GOPATH=/home/nonrootuser/go
TESTS_KOGITO_EXAMPLES_URI=
[Pipeline] dir
Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-images.build-and-test/incubator-kie-kogito-images
[Pipeline] {
[Pipeline] deleteDir
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Validate CeKit Image and Modules descriptors)
Stage "Validate CeKit Image and Modules descriptors" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build & Test Images)
Stage "Build & Test Images" skipped due to earlier failure(s)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/10/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
kie-ci3 commented 4 weeks ago

PR job #11 was: FAILURE Possible explanation: Pipeline failure or project build failure

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/11/display/redirect See console log:

Console Logs [Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-base-builder
Build KIE » kogito » main » pullrequest » kogito-images.build-image #15 completed: FAILURE
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-jobs-service-allinone
Build KIE » kogito » main » pullrequest » kogito-images.build-image #21 completed: FAILURE
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-jobs-service-postgresql
Build KIE » kogito » main » pullrequest » kogito-images.build-image #16 completed: FAILURE
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-data-index-ephemeral
Build KIE » kogito » main » pullrequest » kogito-images.build-image #20 completed: FAILURE
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-jobs-service-ephemeral
Build KIE » kogito » main » pullrequest » kogito-images.build-image #17 completed: FAILURE
[Pipeline] error
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch kogito-jit-runner
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/11/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
jstastny-cz commented 4 weeks ago

The jenkins failure is due to changes in this PR relying on DSL job generation, so should click together after merge and seed job execution.