Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .teamcity/BuildParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ object BuildParams {
const val KOTLIN_RELEASE_LABEL = "2.1.20"

const val CORE_API_BUILD_ID = "Kotlin_KotlinRelease_230_LibraryReferenceLatestDocs"
const val CORE_API_CURRENT_VERSION = "2.3.0" // used for redirect KTL-2981.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we, commonly use 2.3, core api doesn't re-deployed with patch version

Image

const val CORE_API_TITLE = "Core API"

const val KOTLINX_METADATA_ID = "kotlinx-metadata-jvm"
Expand Down
13 changes: 13 additions & 0 deletions .teamcity/references/builds/stdlib/BuildStdlibApiReference.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package references.builds.stdlib

import BuildParams.CORE_API_BUILD_ID
import BuildParams.CORE_API_CURRENT_VERSION
import common.extensions.scriptGenerateSitemap
import jetbrains.buildServer.configs.kotlin.AbsoluteId
import jetbrains.buildServer.configs.kotlin.BuildType
Expand All @@ -22,9 +23,21 @@ object BuildStdlibApiReference : BuildType({
artifactRules = """
+:$PAGES_ROOT/** => pages.zip
+:pages.json => ./
+:latest_version.json => ./
""".trimIndent()

steps {
script {
name = "Write latest_version.json"
// language=bash
scriptContent = """
cat > latest_version.json <<'JSON'
{
"version": "${CORE_API_CURRENT_VERSION}"
}
JSON
""".trimIndent()
}
script {
name = "Drop unnecessary files"
// language=bash
Expand Down