Skip to content

Commit 9f4e990

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Specify release version in TeamCity plugin deploy build
1 parent 8b61b6e commit 9f4e990

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.teamcity/additionalConfiguration.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,22 @@ fun Project.deployPlugin() = BuildType {
5151
type = BuildTypeSettings.Type.DEPLOYMENT
5252
enablePersonalBuilds = false
5353
maxRunningBuilds = 1
54+
params {
55+
text(
56+
name = releaseVersionParameter,
57+
value = "",
58+
label = "Release Version",
59+
display = ParameterDisplay.PROMPT,
60+
allowEmpty = false
61+
)
62+
}
5463

5564
steps {
5665
gradle {
5766
name = "Publish Plugin"
5867
jdkHome = "%env.$jdk%"
5968
jvmArgs = "-Xmx1g"
60-
gradleParams = "--info --stacktrace -P$gradlePublishKey=%$gradlePublishKey% -P$gradlePublishSecret=%$gradlePublishSecret%"
69+
gradleParams = "--info --stacktrace -P$releaseVersionParameter=%$releaseVersionParameter% -P$gradlePublishKey=%$gradlePublishKey% -P$gradlePublishSecret=%$gradlePublishSecret%"
6170
tasks = "clean :plugin:publishPlugins"
6271
buildFile = ""
6372
gradleWrapperPath = ""

0 commit comments

Comments
 (0)