我正在尝试创建一个每 10 分钟运行一次烟雾测试的 cron 作业,我的种子作业如下所示:
multiBranchJobs.each { currentJob ->
multibranchPipelineJob(currentJob.name) {
branchSources {
git {
remote(currentJob.projectGitUrl)
credentialsId(currentJob.credentials)
includes(currentJob.includes)
}
}
orphanedItemStrategy {
discardOldItems {
numToKeep(20)
}
}
triggers {
cron "H/5 * * * *"
periodic 60
}
}
}
当前方法的问题在于,它只有在检测到 SCM 中的变化时才会执行,而烟雾测试并非如此。无论源代码管理中的提交如何,我都需要每 5 分钟运行一次。有什么线索吗?