Skip to content

Commit

Permalink
[TC] Set up job with release type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Jul 27, 2023
1 parent c98768d commit d55f5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .teamcity/_Self/buildTypes/ReleaseMinor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object ReleaseMinor : IdeaVimBuildType({
label = "Slack Token"
)
password("env.ORG_GRADLE_PROJECT_youtrackToken", "credentialsJSON:3cd3e867-282c-451f-b958-bc95d56a8450", display = ParameterDisplay.HIDDEN)
// param("env.ORG_GRADLE_PROJECT_releaseType", "")
param("env.ORG_GRADLE_PROJECT_releaseType", "minor")
}

vcs {
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/main/kotlin/scripts/calculateNewVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun main(args: Array<String>) {
"major" -> TODO()
"minor" -> lastVersion.nextMinor()
"patch" -> TODO()
else -> error("Only major, minor, and patch versions are supported")
else -> error("Only major, minor, and patch versions are supported. Got '$releaseType'")
}
println("Next $releaseType version: $nextVersion")
println("##teamcity[setParameter name='env.ORG_GRADLE_PROJECT_version' value='$nextVersion']")
Expand Down

0 comments on commit d55f5b1

Please sign in to comment.