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

Fixes nuxeo build pipeline when PR's target branch is not 202x

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.12
    • Component/s: CI/CD
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #112
    • Story Points:
      1

      Description

      The nuxeo build pipeline fails on PR that have a different target branch than 202x.

      The failure occurred during the HF protection step, because we try to clone a repository on the CHANGE_TARGET branch, which in such case doesn't exist:

      nxGit.cloneRepository(name: 'nuxeo-hf-protection', branch: env.CHANGE_TARGET, relativePath: 'nuxeo-patches')
      

      In the desired case, the CHANGE_TARGET branch has an open draft PR that targets 2023.
      One possible fix could be to use gh cli to retrieve this PR base branch.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: