Nikolay Krasko
2022-07-01 19:12:13 +02:00
parent 445c0deb61
commit 2bdd45f659
5 changed files with 24 additions and 7 deletions
-1
View File
@@ -1 +0,0 @@
FROM registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
-1
View File
@@ -1 +0,0 @@
FROM registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
+4 -5
View File
@@ -3,9 +3,7 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
import circlet.pipelines.config.dsl.api.Ide
fun warmupJob(ide: Ide) {
fun warmupJob(ide: Ide, devfilePath: String) {
job("Kotlin project warmup for ${ide.name}") {
startOn {
schedule { cron("0 2 * * *") } // 5 am GMT +3
@@ -13,6 +11,7 @@ fun warmupJob(ide: Ide) {
warmup(ide = ide) {
scriptLocation = "./dev-env-warmup.sh"
devfile = devfilePath
}
git {
@@ -24,5 +23,5 @@ fun warmupJob(ide: Ide) {
}
}
warmupJob(Ide.Idea)
warmupJob(Ide.Fleet)
warmupJob(Ide.Idea, ".space/idea.yaml")
warmupJob(Ide.Fleet, ".space/fleet.yaml")
+10
View File
@@ -0,0 +1,10 @@
schemaVersion: 2.2.0
attributes:
space:
instanceType: regular
editor:
type: Fleet
components:
- name: kotlin-build-env
container:
image: registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1
+10
View File
@@ -0,0 +1,10 @@
schemaVersion: 2.2.0
attributes:
space:
instanceType: regular
editor:
type: Idea
components:
- name: kotlin-build-env
container:
image: registry.jetbrains.team/p/kt/containers/kotlin-build-env:v1