package patches.buildTypes

import jetbrains.buildServer.configs.kotlin.v2018_1.*
import jetbrains.buildServer.configs.kotlin.v2018_1.BuildType
import jetbrains.buildServer.configs.kotlin.v2018_1.ui.*

/*
This patch script was generated by TeamCity on settings change in UI.
To apply the patch, create a buildType with id = 'TestVcsCheckoutRules'
in the root project, and delete the patch script.
*/
create(DslContext.projectId, BuildType({
    id("TestVcsCheckoutRules")
    name = "Test VCS Checkout Rules"

    maxRunningBuilds = 1

    params {
        text("git.branch.specification", "%dep.CpeUtilities_Bobsled_InitializeMyBuild.git.branch.specification%", display = ParameterDisplay.HIDDEN, allowEmpty = false)
    }

    vcs {
        root(DslContext.settingsRoot, "+:test=>.")
    }

    dependencies {
        snapshot(RelativeId("InitializeMyBuild")) {
            onDependencyFailure = FailureAction.CANCEL
            onDependencyCancel = FailureAction.CANCEL
        }
    }
}))

