apache / incubator-kie-kogito-images

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

[10.0.x] NO-ISSUE: isolate pr checks between branches #1784

Closed jstastny-cz closed 4 months ago

jstastny-cz commented 4 months ago

A hotfix for kogito-images PR checks not to be executed across branches.

If we keep .ci/jenkins/Jenkinsfile after branching, the pr checks from main would pick them up and execute, which is not desirable.

Given that kogito-images has no GHA PR checks, this is hopefully a quick solution to isolate:

  1. when running setup-branch job, and not on main - rename Jenkinsfile to Jenkinsfile.pr.${branch}
  2. enable PR checks job generation for non-main branches, but differentiate based on Jenkinsfile name between main (Jenkinsfile) and other branches (Jenkinsfile.pr.${branch}).

Since this is against 10.0.x I went ahead and renamed the file not to have to run setup-branch afterwards.

Note: Changes 1 and 2 need to be forward-ported to main.