在使用Jenkinsfile时,使用declarescript需要将定时任务写在jenkinsfile时,使用以下方法。
properties(
[
pipelineTriggers([cron('TZ=Asia/Shanghai\nH 2 * * *')]),
]
)
如果有什么问题,留言。
本文介绍了如何在Jenkinsfile中通过`declaratescript`设置定时任务,特别关注了如何配置cron表达式,如H2***,并提到了可能出现的问题和解决方案。
在使用Jenkinsfile时,使用declarescript需要将定时任务写在jenkinsfile时,使用以下方法。
properties(
[
pipelineTriggers([cron('TZ=Asia/Shanghai\nH 2 * * *')]),
]
)
如果有什么问题,留言。
2089
1188
1167
594

被折叠的 条评论
为什么被折叠?
