We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98df92d commit e086f50Copy full SHA for e086f50
.space.kts
@@ -0,0 +1,20 @@
1
+import java.nio.file.Files
2
+import java.nio.file.Paths
3
+
4
+job("Polaris Artifact") {
5
+ container("registry.jetbrains.team/p/sa/public/qodana-jvm:polaris") {
6
+ kotlinScript { api ->
7
+ val spaceProjectKey = System.getenv("JB_SPACE_PROJECT_KEY")
8
+ val repoName = System.getenv("JB_SPACE_GIT_REPOSITORY_NAME")
9
+ val initialPath = System.getenv("JB_SPACE_FILE_SHARE_PATH")
10
+ val tid: String = api.space().projects.getProject(ProjectIdentifier.Key(spaceProjectKey)) {
11
+ repos {
12
+ id()
13
+ name()
14
+ }
15
+ }.repos.first { it.name == repoName }.id!!
16
+ Files.write(Paths.get("$initialPath/tid"), tid.encodeToByteArray())
17
18
19
+ container("registry.jetbrains.team/p/sa/public/qodana-jvm:polaris")
20
+}
0 commit comments