Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1556 set up jobs for 2.7 and 2.future (upstream main)
  3. CRW-1644

2.x jobs need to know to look for other _2.x suffixed jobs, rather than using CRW_VERSION value (2.8)

XMLWordPrintable

    • 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?

      • 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

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: