2

I have Teamcity job defined in Kotlin and I want to add a trigger.

I used:

buildType {
    triggers {
        trigger {
            type = "VCS Trigger"
            enabled = true
        }
    }
}

But this results to unknown build trigger

What definition should I use to have proper VCS trigger in place

Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68

1 Answers1

7

I found the way to do it using vcs directive.

Note, you have to import trigger class

buildType {
    triggers {
        vcs {

        }
    }
}
Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68