Skip to content

Commit 757298a

Browse files
committed
chore(ci): new script replacing "Drop snapshot" function has been added. The script automatically corrects any inappropriate -SNAPSHOT suffix in the version number within gradle.properties file.
1 parent 944ce89 commit 757298a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.teamcity/builds/apiReferences/kotlinx/io/KotlinxIOBuildApiReference.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,23 @@ object KotlinxIOBuildApiReference : BuildType({
2929
}
3030

3131
steps {
32-
scriptDropSnapshot {}
32+
scriptDropSnapshot {
33+
enabled = false
34+
}
3335
scriptDokkaVersionSync {
3436
enabled = false // TODO readme, and disable this step for other libs too
3537
}
3638
buildDokkaHTML {
3739
enabled = false // TODO add useGradlewWrapper = true
3840
}
41+
script {
42+
name = "Drop snapshot"
43+
scriptContent = """
44+
#!/bin/bash
45+
set -e -u
46+
sed -i -E "s/^(version=.+)-SNAPSHOT${'$'}/\1/gI" ./gradle.properties
47+
""".trimIndent()
48+
}
3949
script {
4050
name = "build api reference"
4151
scriptContent = """

0 commit comments

Comments
 (0)