-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
E2EProductionTest.kt
56 lines (49 loc) · 1.36 KB
/
E2EProductionTest.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package tests.buildTypes
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.buildFeatures.notifications
import jetbrains.buildServer.configs.kotlin.buildSteps.ScriptBuildStep
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import jetbrains.buildServer.configs.kotlin.triggers.schedule
object E2EProductionTest : BuildType({
name = "E2E Test in Production"
vcs {
root(vcsRoots.KotlinLangOrg)
}
triggers {
schedule {
schedulingPolicy = cron {
seconds = "0"
minutes = "0"
hours = "6-18/2"
dayOfMonth = "1/1"
month = "*"
dayOfWeek = "?"
}
triggerBuild = always()
branchFilter = "+:master"
withPendingChangesOnly = false
}
}
steps {
script {
scriptContent = """
yarn install --immutable
yarn сi:e2e:prod
""".trimIndent()
dockerImage = "mcr.microsoft.com/playwright:v1.22.2-focal"
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
}
}
features {
notifications {
notifierSettings = slackNotifier {
connection = "PROJECT_EXT_486"
sendTo = "#kotlin-web-site-e2e-tests"
messageFormat = simpleMessageFormat()
}
buildFailedToStart = true
buildFailed = true
buildProbablyHanging = true
}
}
})