Add space warmup job for gateway and fleet

#KTI-776
This commit is contained in:
Vyacheslav Gerasimov
2022-01-17 23:07:10 +03:00
parent c7a165e6f7
commit 87d813d780
2 changed files with 39 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* 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) {
job("Kotlin project warmup for ${ide.name}") {
startOn {
schedule { cron("0 5 * * *") }
}
warmup(ide = ide) {
scriptLocation = "./dev-env-warmup.sh"
}
git {
// fetch the entire commit history
depth = UNLIMITED_DEPTH
// fetch all branches
refSpec = "refs/*:refs/*"
}
}
}
warmupJob(Ide.Idea)
warmupJob(Ide.Fleet)
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
# Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
#
mkdir -p ~/.gradle
echo "kotlin.build.scan.url=https://ge.jetbrains.com/" >> ~/.gradle/gradle.properties
echo "kotlin.build.cache.url=https://ge.jetbrains.com/cache/" >> ~/.gradle/gradle.properties
./gradlew classes testClasses -Dscan.uploadInBackground=false