Warmup jobs

This commit is contained in:
Maxim Kolmakov 2021-11-24 15:32:25 +00:00 committed by Space
parent 2ddb93c7d9
commit 3a6d6053bc
1 changed files with 55 additions and 0 deletions

55
.space.kts Normal file
View File

@ -0,0 +1,55 @@
/**
* JetBrains Space Automation
* This Kotlin-script file lets you automate build activities
* For more info, see https://www.jetbrains.com/help/space/automation.html
*/
job("Fleet project warmup data") {
startOn {
schedule { cron("0 7 * * *") }
}
// ide is an IDE you want Automation to build indexes for:
// Ide.Fleet || Ide.IJGateway
warmup(ide = Ide.Fleet) {
// (Optional) path to your custom .sh script
// that contains additional warmup steps,
// e.g. 'gradlew assemble'
// If you want Automation only to build indexes,
// don't specify scriptLocation
// scriptLocation = "./dev-env-warmup.sh"
}
// (Optional, recommended)
git {
// fetch the entire commit history
depth = UNLIMITED_DEPTH
// fetch all branches
refSpec = "refs/*:refs/*"
}
}
job("Gateway project warmup data") {
startOn {
schedule { cron("0 7 * * *") }
}
// ide is an IDE you want Automation to build indexes for:
// Ide.Fleet || Ide.IJGateway
warmup(ide = Ide.IJGateway) {
// (Optional) path to your custom .sh script
// that contains additional warmup steps,
// e.g. 'gradlew assemble'
// If you want Automation only to build indexes,
// don't specify scriptLocation
// scriptLocation = "./dev-env-warmup.sh"
}
// (Optional, recommended)
git {
// fetch the entire commit history
depth = UNLIMITED_DEPTH
// fetch all branches
refSpec = "refs/*:refs/*"
}
}