Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1992

extract che/crw version mappings from groovy scripts into global configuration files

XMLWordPrintable

    • False
    • False
    • Undefined

      As a continuation of CRW-1621, we should move global variables hardcoded in the CRW_CI *.groovy jobs into https://gitlab.cee.redhat.com/codeready-workspaces/crw-jenkins/-/blob/master/src/com/redhat/codeready/cci/GlobalConstants.groovy

      So that we can then use them like this:

      libraries { lib('TestUtil') }
      
      import com.redhat.codeready.cci.GlobalConstants
      GlobalConstants.Crwctl.LATEST_QUAY_URL
      GlobalConstants.Crw.LATEST_CRW_MAJOR_VERSION
      

      This will make the .groovy scripts even more generic, and provide a way to see the mappings between:

      • 2.10 -> 7.32.x, 0.6.x, v3.4.x, main
      • 2.11 -> 7.34.x, 0.8.x, v3.4.x, main
      • ...

      See also https://www.jenkins.io/doc/book/pipeline/shared-libraries/#directory-structure

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

              Created:
              Updated:
              Resolved: