From ac2232a8cb37b7767ef1cf60a6ac66edf46a80fb Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Fri, 28 May 2021 01:39:29 +0200 Subject: [PATCH] Document Wercker --- docs/modules/continuous-integration/nav.adoc | 1 + .../continuous-integration/pages/index.adoc | 3 +- .../continuous-integration/pages/wercker.adoc | 49 +++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 docs/modules/continuous-integration/pages/wercker.adoc diff --git a/docs/modules/continuous-integration/nav.adoc b/docs/modules/continuous-integration/nav.adoc index 22b4051..66657d1 100644 --- a/docs/modules/continuous-integration/nav.adoc +++ b/docs/modules/continuous-integration/nav.adoc @@ -11,3 +11,4 @@ ** xref:jenkins.adoc[] ** xref:teamcity.adoc[] ** xref:travis-ci.adoc[] +** xref:wercker.adoc[] diff --git a/docs/modules/continuous-integration/pages/index.adoc b/docs/modules/continuous-integration/pages/index.adoc index a865ddb..bad1008 100644 --- a/docs/modules/continuous-integration/pages/index.adoc +++ b/docs/modules/continuous-integration/pages/index.adoc @@ -14,4 +14,5 @@ in the future: * xref:gitlab-ci.adoc[] * xref:jenkins.adoc[] * xref:teamcity.adoc[] -* xref:travis-ci.adoc[] \ No newline at end of file +* xref:travis-ci.adoc[] +* xref:wercker.adoc[] \ No newline at end of file diff --git a/docs/modules/continuous-integration/pages/wercker.adoc b/docs/modules/continuous-integration/pages/wercker.adoc new file mode 100644 index 0000000..d85a52c --- /dev/null +++ b/docs/modules/continuous-integration/pages/wercker.adoc @@ -0,0 +1,49 @@ += Wercker + +JReleaser can be configured with link:https://app.wercker.com[Wercker]. + +NOTE: If you're already building with either Maven or Gradle then you might use the +xref:tools:jreleaser-maven.adoc[] or the xref:tools:jreleaser-gradle.adoc[] instead. + +[source,yaml] +.wercker.yml +---- +box: azul/zulu-openjdk:11 + +build: + steps: + - install-packages: + packages: curl + + - wercker/maven: + goals: verify + cache_repo: true + version: 3.6.1 + +deploy: + steps: + - install-packages: + packages: curl + + - script: + name: JReleaser + code: | + # Get the jreleaser downloader + curl -sL https://git.io/get-jreleaser > get_jreleaser.java + # Download JReleaser with version = + # Change to a tagged JReleaser release + # or leave it out to pull `latest`. + java get_jreleaser.java + # Let's check we've got the right version + java -jar jreleaser-cli.jar --version + # Execute a JReleaser command such as 'full-release' + java -jar jreleaser-cli.jar full-release + +---- + +TIP: You may use `latest` to pull the latest stable release or `early-access` to pull the latest snapshot. + +IMPORTANT: The deploy step must run with Java 11. + +NOTE: You must configure environment variables such as `JRELEASER_GITHUB_TOKEN` and any other secrets required by the +build at either the _Workflows_ or _Environment_ tab.