diff --git a/docs/modules/continuous-integration/nav.adoc b/docs/modules/continuous-integration/nav.adoc index 7670cf0..07f0e04 100644 --- a/docs/modules/continuous-integration/nav.adoc +++ b/docs/modules/continuous-integration/nav.adoc @@ -7,3 +7,4 @@ ** xref:cirrus-ci.adoc[] ** xref:drone.adoc[] ** xref:buildkite.adoc[] +** xref:teamcity.adoc[] diff --git a/docs/modules/continuous-integration/pages/index.adoc b/docs/modules/continuous-integration/pages/index.adoc index 69f3f5e..1739624 100644 --- a/docs/modules/continuous-integration/pages/index.adoc +++ b/docs/modules/continuous-integration/pages/index.adoc @@ -10,4 +10,5 @@ in the future: * xref:gitlab-ci.adoc[] * xref:cirrus-ci.adoc[] * xref:drone.adoc[] -* xref:buildkite.adoc[] \ No newline at end of file +* xref:buildkite.adoc[] +* xref:teamcity.adoc[] \ No newline at end of file diff --git a/docs/modules/continuous-integration/pages/teamcity.adoc b/docs/modules/continuous-integration/pages/teamcity.adoc new file mode 100644 index 0000000..689843b --- /dev/null +++ b/docs/modules/continuous-integration/pages/teamcity.adoc @@ -0,0 +1,35 @@ += TeamCity + +JReleaser can be run as a step inside link:https://www.jetbrains.com/teamcity/[TeamCity]. + +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. + +For a Linux agent add the following step: + +[source,kotlin] +---- +steps { + script { + scriptContent = """ + // 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 + """.trimIndent() + } +} +---- + +TIP: You may use `latest` to pull the latest stable release or `early-access` to pull the latest snapshot. + +IMPORTANT: The agent must have Java 11 or greater configured otherwise the download will fail. + +NOTE: You must use link:https://www.jetbrains.com/help/teamcity/configuring-build-parameters.html[Build parameters] to +configure environment variables such as `JRELEASER_GITHUB_TOKEN` and any other secrets required by the build.