forked from neo4j/neo4j-kafka-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.kts
More file actions
88 lines (77 loc) · 2.67 KB
/
settings.kts
File metadata and controls
88 lines (77 loc) · 2.67 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import builds.Build
import builds.Neo4jKafkaConnectorVcs
import builds.Neo4jVersion
import builds.SLACK_CHANNEL
import builds.SLACK_CONNECTION_ID
import jetbrains.buildServer.configs.kotlin.Project
import jetbrains.buildServer.configs.kotlin.buildFeatures.notifications
import jetbrains.buildServer.configs.kotlin.project
import jetbrains.buildServer.configs.kotlin.triggers.schedule
import jetbrains.buildServer.configs.kotlin.triggers.vcs
import jetbrains.buildServer.configs.kotlin.version
version = "2025.03"
project {
params {
password("github-commit-status-token", "%github-token%")
password("github-pull-request-token", "%github-token%")
}
vcsRoot(Neo4jKafkaConnectorVcs)
subProject(
Build(name = "main", forPullRequests = false) {
triggers {
vcs {
this.branchFilter = "+:main"
this.triggerRules =
"""
-:comment=^build.*release version.*:**
-:comment=^build.*update version.*:**
"""
.trimIndent()
}
}
})
subProject(
Build(name = "pull-request", forPullRequests = true) {
triggers { vcs { this.branchFilter = "+:pull/*" } }
})
subProject(
Project {
this.id("compatibility")
name = "compatibility"
Neo4jVersion.entries.minus(Neo4jVersion.V_NONE).forEach { neo4j ->
subProject(
Build(
name = "${neo4j.version}",
forPullRequests = false,
forCompatibility = true,
neo4jVersion = neo4j) {
triggers {
vcs { enabled = false }
schedule {
branchFilter = "+:main"
schedulingPolicy = daily {
hour = 8
minute = 0
}
triggerBuild = always()
}
}
features {
notifications {
buildFailedToStart = true
buildFailed = true
firstFailureAfterSuccess = true
firstSuccessAfterFailure = true
buildProbablyHanging = true
branchFilter = "+:main"
notifierSettings = slackNotifier {
connection = SLACK_CONNECTION_ID
sendTo = SLACK_CHANNEL
messageFormat = simpleMessageFormat()
}
}
}
})
}
})
}