-
Sub-task
-
Resolution: Done
-
Critical
-
2.8.0.GA
-
None
-
False
-
False
-
Undefined
-
New problem - the 2.x jobs need to know to trigger other 2.x jobs, not the CRW_VERSION-versioned jobs (2.8):
currentBuild.result = null [Pipeline] echo CRW_VERSION = '2.8' [Pipeline] build [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: No item named get-sources-rhpkg-container-build_2.8 found Finished: FAILURE
– https://main-jenkins-csb-crwqe.apps.ocp4.prod.psi.redhat.com/job/CRW_CI/job/crw-server_2.x/4/console
perhaps we need a method to compute the JOB_BRANCH if not set (2.y => 2.y; 2 or 2.x => 2.x) so we can use that instead of CRW_VERSION when triggering downstream jobs?
- https://github.com/redhat-developer/codeready-workspaces/pull/449
Need to also change these things:
- JOB_BRANCH is always a 2.n value, eg., 2.7, 2.8, 2.x, never just "2"
* MIDSTM_BRANCH = "crw-" + JOB_BRANCH.replaceAll(".x","") + "-rhel-8" (never with 2.x)
- rename all _2.jenkinsfiles to _2.x.jenkinsfiles so that all refs to the /job/ or the .jenkinsfiles match the same value
- replace all references to job: 'get-sources-rhpkg-container-build_' + CRW_VERSION with job: 'get-sources-rhpkg-container-build_' + JOB_BRANCH
https://gitlab.cee.redhat.com/codeready-workspaces/crw-jenkins/-/merge_requests/348/diffs WIP