Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28572

Fix platform pipeline trying to launch JSF pipeline on a PR not targeting master

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: CI/CD

      Description

      When a PR has a base branch that is not master, the platform pipeline fails when trying to launch the JSF pipeline.

      This is because it simply calls the /nuxeo/nuxeo-jsf-ui-status/${BASE_BRANCH} job, which doesn't exist if ${BASE_BRANCH} is different from master.

      This happened with a job running on a PR from

      improvement-NXP-28254-conversation-participants-missing-notifications

      to

      fix-NXP-28252-wrong-target-in-comment-notification

      It failed with:

      ----------------------------------------
      Build JSF pipeline
      ----------------------------------------
      Parameters:
        NUXEO_BRANCH: improvement-NXP-28254-conversation-participants-missing-notifications
        NUXEO_COMMIT_SHA: 0873d7ace8050a98edbebb4a9a4387fab67e1e45
        NUXEO_VERSION: PR-3663-11.1-SNAPSHOT
      ...
      ERROR: No item named /nuxeo/nuxeo-jsf-ui-status/fix-NXP-28252-wrong-target-in-comment-notification found
      

       
      Let's only trigger the JSF pipeline if the PR's base branch is master or a maintenance branch.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m