Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4468

Create REST API endpoint to trigger Studio releases

    XMLWordPrintable

    Details

      Description

      Goal

      • Devs need a way to automate a Studio release creation

      NOTE:
      Technical decisions are to be made on how parameters should be passed. This description just explains the expected options and behavior.

      TODO
      REST API Endpoint

      • Create an endpoint that triggers a Studio release on a given project
      • Endpoint should take following parameters:
        • project id
        • branch name
        • released version number

      Release can only be done on master branch or on a feature branch, not a wip branch.
      Release is always performed on HEAD of the branch.
      When release is performed a commit is done and pushed automatically for released version

      All parameters are mandatory.

      Response should contain:

      • bundle symbolic name
      • version released
      • Maven GAV

      When trying to release an already existing release version, an error should be returned with:
      "This version already exists in this project."

      CI Integration
      TODO
      In Maven repo
      Artifact for branches should be the branch name, stripped from the moving parts and implementation detail parts

      • Artifact names should not contain a version number anymore
      • Artifact names should not contain a mention of wip or feature as these are implementation details
      • Artifact names should not contain the user's specific hash if possible to make things simpler / cleaner

      "Given I access my studio maven repo
      When Looking at the maven gav for a given branch
      Then The maven artifact for my branch uses the following convention

      [branch name minus feature/] for shared commits
      [branch name minus wip/]-[username] for wip

        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 - 3 weeks, 3 days
                  3w 3d