Skip to content

Commit f2dcf1a

Browse files
committed
Use system parameters for passing space auth
1 parent 6b04d25 commit f2dcf1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.teamcity/settings.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ fun Project.deploy() = build("Deploy") {
7373
buildNumberPattern = "$publishVersion-dev-%build.counter%"
7474
params {
7575
param(versionParameter, "%build.number%")
76-
param("space-user", "ilya.gorbunov")
77-
password("space-token", "credentialsJSON:413fcda1-dd8f-47ed-a6c2-12c1bc2ea0f0")
76+
param("system.space.user", "ilya.gorbunov")
77+
password("system.space.token", "credentialsJSON:413fcda1-dd8f-47ed-a6c2-12c1bc2ea0f0")
7878
}
7979

8080
vcs {
@@ -87,7 +87,7 @@ fun Project.deploy() = build("Deploy") {
8787
jdkHome = "%env.JDK_18_x64%"
8888
jvmArgs = "-Xmx1g"
8989
tasks = "clean build publish"
90-
gradleParams = "--info --stacktrace -P$versionParameter=%$versionParameter% -PspaceUser=%space-user% -PspaceToken=%space-token%"
90+
gradleParams = "--info --stacktrace -P$versionParameter=%$versionParameter%"
9191
buildFile = ""
9292
gradleWrapperPath = ""
9393
}

publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ publishing {
1515
name = 'space'
1616
url "https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/maven"
1717
credentials {
18-
username = project.findProperty("spaceUser")
19-
password = project.findProperty("spaceToken")
18+
username = project.findProperty("space.user")
19+
password = project.findProperty("space.token")
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)