All my jobs are configured by Job DSL. I connect to bitbucket via Bitbucket Server Integration. Unfortunately, I cannot find how to set “Bitbucket webhook trigger” option from Job DSL:
Do you have any suggestions on how to do that?
Here you can find example DSL code:
multibranchPipelineJob("Repo name") {
branchSources {
branchSource {
source {
BbS {
id("all-branches")
credentialsId("ci.user_password")
sshCredentialsId("ci.user")
serverId("XXXX")
projectName("YYYYYY")
repositoryName(repository)
mirrorName("")
traits {
gitBranchDiscovery()
headWildcardFilter {
includes('*')
excludes("")
}
}
}
}
}
}
triggers {
//any trigger or something?
}
}