Skip to content

Commit

Permalink
clean sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyzzz committed Jan 4, 2018
1 parent d4811a8 commit 62b6fe2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .teamcity/TeamCityNodePlugin/buildTypes/builds.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ object BuildNumber : BuildType({
id = "TeamCityNodePlugin_TeamCityNode_BuildNumber"
name = "Build Number"
buildNumberPattern = "2.0.%build.counter%"

inheritVCS()
})

object TeamCityNodePlugin_TeamCityNodeVs90x : NodeBuildType("9.0.5", {
Expand Down Expand Up @@ -42,9 +44,7 @@ object bt434 : BuildType({

inheritBuildNumber()

vcs {
root(TeamCityNodePlugin.vcsRoots.git___github_com_jonnyzzz_TeamCity_Node_git)
}
inheritVCS()

triggers {
vcs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ open class NodeBuildType(
id = "TeamCityNodePlugin_TeamCityNodeVs_${safeVersion}"
name = "TeamCity.Node vs $teamcityVersion"

vcs {
root(TeamCityNodePlugin.vcsRoots.git___github_com_jonnyzzz_TeamCity_Node_git)
}
inheritVCS()

steps {
gradle {
Expand All @@ -53,3 +51,10 @@ open class NodeBuildType(
inheritBuildNumber()
}
}

fun BuildType.inheritVCS() {
vcs {
root(TeamCityNodePlugin.vcsRoots.git___github_com_jonnyzzz_TeamCity_Node_git)
cleanCheckout = true
}
}

0 comments on commit 62b6fe2

Please sign in to comment.