Skip to content

Commit e086f50

Browse files
committed
enable building of navigation index in Space
1 parent 98df92d commit e086f50

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.space.kts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)