commit | 45adcd8076d9cab47101542a3fa750a30eb2e18b | [log] [tgz] |
---|---|---|
author | Radu Cotescu <radu@apache.org> | Mon Mar 25 18:33:29 2019 +0100 |
committer | Robert Munteanu <robert.munteanu@gmail.com> | Thu Mar 28 18:01:13 2019 +0100 |
tree | c746593c057d09f8282ab134aa2da3953dfcf554 | |
parent | e8e5d79917e041ae173b261c5193d99948f531ac [diff] |
SLING-8311 - Investigate creating a Sling CLI tool for development task automation * added support for querying Sling's project members * improved TallyVotesCommand to list binding and non-binding votes
This module is part of the Apache Sling project.
This module provides a command-line tool which automates various Sling development tasks. The tool is packaged as a docker image.
To make various credentials and configurations available to the docker image it is recommended to use a docker env file. A sample file is stored at docker-env.sample
. Copy this file to docker-env
and fill in your own information.
The image is built using mvn package
. Afterwards it may be run with
docker run --env-file=./docker-env apache/sling-cli
This invocation produces a list of available subcommands.
Listing active releases
docker run --env-file=./docker-env apache/sling-cli release list
Generating a release vote email
docker run --env-file=./docker-env apache/sling-cli release prepare-email $STAGING_REPOSITORY_ID
Generating a release vote result email
docker run --env-file=./docker-env apache/sling-cli release tally-votes $STAGING_REPOSITORY_ID
Generating the website update (only diff for now)
docker run --env-file=docker-env apache/sling-cli release update-local-site $STAGING_REPOSITORY_ID
This tool assumes that the name of the staging repository matches the one of the version in Jira. For instance, the staging repositories are usually named Apache Sling Foo 1.2.0. It is then expected that the Jira version is named Foo 1.2.0. Otherwise the link between the staging repository and the Jira release can not be found.
It is allowed for staging repository names to have an RC suffix, which may include a number, so that RC, RC1, RC25 are all valid suffixes.