Uploaded image for project: 'Build'
  1. Build
  2. BUILD-549

Automatically update SNAPSHOTs to their staged final versions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • None
    • None

    Description

      5.7.12's release has us realize that the following doesn't work:

      // look for potential staged dependencies
      sh "mvn versions:use-releases -DgenerateBackupPoms=false -Pstaging"
      

      It doesn't pick up on staged repositories, and it also updates other, unwanted dependencies.

      This is critical in order to automate a release because if the SNAPHOTs stay, the release will fail. Also, we do not want a developer manually updating the pom.xml at every step of the way.

      It should be possible to resolve a list of staged repositories using the following endpoint, though: https://nexus.magnolia-cms.com/service/local/staging/profile_repositories (see sample XML file)

      Maybe using Nexus 3 or Artifactory and its neat CLI would be other solutions.

      Or by using a GAV search.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mmichel Maxime Michel
              mmichel Maxime Michel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: