fix tags
This commit is contained in:
parent
2fc95f8174
commit
1798c8af81
|
|
@ -132,7 +132,18 @@ open class PhpDockerBuildTemplate(
|
|||
|
||||
if (phpConfig.enableVcsTrigger) {
|
||||
triggers {
|
||||
vcs {}
|
||||
vcs {
|
||||
val filters = mutableListOf<String>()
|
||||
if (phpConfig.branchFilter.isNotEmpty()) {
|
||||
filters.add(phpConfig.branchFilter)
|
||||
}
|
||||
if (phpConfig.triggerOnTags) {
|
||||
filters.add("+:refs/tags/*")
|
||||
}
|
||||
if (filters.isNotEmpty()) {
|
||||
branchFilter = filters.joinToString("\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue