ossez-doc-resources/ci
Brian Clozel 5483385f4a Fix Stage and Promote release process
This commit contains a few fixes for the CI release process.

The base CI image now installs the `jq` binary as it's
required by the promotion process.

The staging script is fixed to use the correct `sed` syntax
for this Linux container, and only consider Gradle as a build
system. This also changes the staging script to correctly
choose the release version depending on the release type.
This commit also adds a `RELEASE_TYPE` parameter to the state
task.

The project build version is moved to a `gradle.properties`
to align with the stage+promote script.

The promote release script is now executable.
2018-12-10 20:58:15 +01:00
..
images/spring-doc-resources-ci-image Fix Stage and Promote release process 2018-12-10 20:58:15 +01:00
scripts Fix Stage and Promote release process 2018-12-10 20:58:15 +01:00
tasks Fix Stage and Promote release process 2018-12-10 20:58:15 +01:00
.gitignore Add CI infrastructure with Concourse 2018-12-04 23:04:10 +01:00
README.adoc Add CI infrastructure with Concourse 2018-12-04 23:04:10 +01:00
parameters.yml Add CI infrastructure with Concourse 2018-12-04 23:04:10 +01:00
pipeline.yml Add CI infrastructure with Concourse 2018-12-04 23:04:10 +01:00

README.adoc

== Concourse pipeline

The pipeline can be deployed using the following command:

[source]
----
$ fly -t spring set-pipeline -p spring-doc-resources -c ci/pipeline.yml -l ci/parameters.yml
----

NOTE: This assumes that you have credhub integration configured with the appropriate
secrets.

=== Release

To release a milestone:

[source]
----
$ fly -t spring trigger-job -j spring-doc-resources/stage-milestone
$ fly -t spring trigger-job -j spring-doc-resources/promote-milestone
----

To release an RC:

[source]
----
$ fly -t spring trigger-job -j spring-doc-resources/stage-rc
$ fly -t spring trigger-job -j spring-doc-resources/promote-rc
----

To release a GA:

[source]
----
$ fly -t spring trigger-job -j spring-doc-resources/stage-release
$ fly -t spring trigger-job -j spring-doc-resources/promote-release
----