Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3700

Implement a better version of findText Jenkins step

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #81
    • Story Points:
      1

      Description

      We use the Jenkins step findText in our pipeline in order to look for ERROR messages in the server logs.

      One drawback of this step is that it does mark the build in FAILURE but it doesn't stop the pipeline. This requires us to have an extra post / unsuccessful block to stop the pipeline.

      We would like to create a method in our Platform Shared Library which calls findText, then check if it has found something matching the given regexp, and then fail the step if so.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: