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:
when running setup-branch job, and not on main - rename Jenkinsfile to Jenkinsfile.pr.${branch}
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.
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:
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.