forked from Kotlin/dataframe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.space.kts
20 lines (19 loc) · 825 Bytes
/
.space.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.nio.file.Files
import java.nio.file.Paths
job("Polaris Artifact") {
container("registry.jetbrains.team/p/sa/public/qodana-jvm:polaris") {
kotlinScript { api ->
val spaceProjectKey = System.getenv("JB_SPACE_PROJECT_KEY")
val repoName = System.getenv("JB_SPACE_GIT_REPOSITORY_NAME")
val initialPath = System.getenv("JB_SPACE_FILE_SHARE_PATH")
val tid: String = api.space().projects.getProject(ProjectIdentifier.Key(spaceProjectKey)) {
repos {
id()
name()
}
}.repos.first { it.name == repoName }.id!!
Files.write(Paths.get("$initialPath/tid"), tid.encodeToByteArray())
}
}
container("registry.jetbrains.team/p/sa/public/qodana-jvm:polaris")
}