Skip to content

ReleaseDeployment

Oleg Kalnichevski edited this page Feb 6, 2021 · 4 revisions

Release promotion and deployment

Promote release candidate to an official release

  1. Run promoteRC release task and review the official release tag.

    release-tools$ ./gradlew promoteRC

    Creating tag for HttpCore 4.4.7 release
    4.4.7 tag created
    
  2. Change to the local project directory.

  3. Push the release tag to the remote project repository (assumed to be origin) and make sure the operation is successful and there are no rejections.

    httpcore$ git push origin rel/v4.4.7

  4. Delete the release branch from the remote project repository (assumed to be origin) and make sure the operation is successful.

    git push origin --delete release-4.4.7

    To https://gitbox.apache.org/repos/asf/httpcomponents-core.git
     - [deleted]             release-4.4.7
    

Promote release artifacts

  1. Login to the ASF Nexus repository manager (https://repository.apache.org/)

    • Log in with your ASF username
    • Select 'Staging Repositories'
    • Release the upload directory and put the full release name including the release version such as HttpCore 4.4.7 GA as a description. This will cause the artifacts to be moved to the official ASF release repository and eventually to get copied over to the Central Maven repo.

Promote release dist packages

  1. Run promoteDist release task to commit dist files to the release location.

    release-tools$ ./gradlew promoteDist

    Promoting HttpCore 4.4.7 dist
    Committed as r21584
    
  2. Alternatively if some customization of the process is required use svnmucc release task to generate an input file for svnmucc utility.

    release-tools$ ./gradlew svnmucc

    ----------------8<-------------[ cut here ]------------------
    rm
    release/httpcomponents/httpcore/RELEASE_NOTES-4.4.x.txt
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.tar.gz.asc
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.tar.gz.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.tar.gz
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.tar.gz
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.zip
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.zip
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.zip.md5
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.zip.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.zip
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.zip
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.tar.gz.sha512
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.tar.gz.sha512
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.zip.asc
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.zip.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.tar.gz.sha512
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.tar.gz.sha512
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.tar.gz
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.tar.gz
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.zip.sha512
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.zip.sha512
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/RELEASE_NOTES-4.4.x.txt
    release/httpcomponents/httpcore/RELEASE_NOTES-4.4.x.txt
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.zip.asc
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.zip.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.tar.gz.asc
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.tar.gz.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.tar.gz
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.tar.gz
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.zip.sha512
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.zip.sha512
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.tar.gz.md5
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.tar.gz.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.tar.gz.md5
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.tar.gz.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.zip.sha512
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.zip.sha512
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.zip.md5
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.zip.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.tar.gz.asc
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.tar.gz.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.zip.asc
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.zip.asc
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.zip.md5
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.zip.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-src.tar.gz.md5
    release/httpcomponents/httpcore/source/httpcomponents-core-4.4.7-src.tar.gz.md5
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-osgi-bin.zip
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-osgi-bin.zip
    
    mv
    dev/httpcomponents/httpcore-4.4.7-RC1/httpcomponents-core-4.4.7-bin.tar.gz.sha512
    release/httpcomponents/httpcore/binary/httpcomponents-core-4.4.7-bin.tar.gz.sha512
    
    rm
    dev/httpcomponents/httpcore-4.4.7-RC1
    ----------------8<-------------[ cut here ]------------------
    

Upgrade project to the next development version

  1. Change to the local project directory

  2. Switch back to the development branch.

    httpcore$ git git checkout 4.4.x

    Switched to branch '4.4.x'
    
  3. Change to the release tools directory

  4. Run nextSnapshot release task and review the commit.

    release-tools$ ./gradlew nextSnapshot

    Upgrading HttpCore from 4.4.7 to 4.4.8-SNAPSHOT
    Committing changes for snapshot HttpCore 4.4.8-SNAPSHOT
    
  5. Change to the local project directory.

  6. Push the commit to the remote project repository (assumed to be origin) and make sure the operation is successful and there are no rejections.

    httpcore$ git push origin

  7. Update project website