-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtc_config2_forfeature.cfg
More file actions
46 lines (39 loc) · 1.18 KB
/
Copy pathtc_config2_forfeature.cfg
File metadata and controls
46 lines (39 loc) · 1.18 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
package _Self.buildTypes
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildSteps.maven
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import jetbrains.buildServer.configs.kotlin.triggers.vcs
object Build : BuildType({
name = "Build"
vcs {
root(GitGithubComAirDRoNLabExampleTeamcityGitRefsHeadsMaster)
}
steps {
maven {
name = "Maven for nomasterbranch (test)"
conditions {
doesNotEqual("teamcity.build.branch", "master")
}
goals = "clean test"
runnerArgs = "-Dmaven.test.failure.ignore=true"
userSettingsSelection = "settings.xml"
}
maven {
name = "Maven for masterbranch"
conditions {
equals("teamcity.build.branch", "master")
}
goals = "clean deploy"
runnerArgs = "-Dmaven.test.failure.ignore=true"
userSettingsSelection = "settings.xml"
}
script {
name = "Hellooo"
scriptContent = """echo "Hello World""""
}
}
triggers {
vcs {
}
}
})