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

Replace groovy(bash(sed)) nested string replacements with native groovy code

XMLWordPrintable

      In many of the sync jobs, string replacements transform upstream into downstream or midstream into downstream.

      But instead of ugly sed code, wrapped by bash commands, inside groovy, we could simply use groovy directly.

      Here's an example of nested regex:

      https://github.com/redhat-developer/codeready-workspaces-operator/blob/master/operator-metadata.Jenkinsfile#L127-L130

      and a cleaner example of just using groovy directly:

      https://github.com/redhat-developer/codeready-workspaces-operator/blob/master/operator.Jenkinsfile#L135-L153

      Where possible, we should move to this cleaner and less slash-escaped-to-death code.

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

                Created:
                Updated:
                Resolved: