Triggers on specific stage Jenkins Pipeline

試著忘記壹切 提交于 2020-01-15 09:43:14

问题


I'm using Jenkins since a little moment now, but I wanted to do something and I can't find how to do it...

In deed, I want to trigger my projects with two differents way: every 4 hours and for every commit. But for each case, I don't want that all my Jenkinsfile is executed, only some specific stages.

Is it possible to do that with Declarative Pipelines ?

Thanks in advance


回答1:


Unfortunately this is not available out of the box yet. Cloudbees has a proprietary plugin called "checkpoints" which can do that, see plugin docs here.

This plugin may be added in Jenkins by default in near future, see this issue.

PS: This is duplicate of Jenkins Build Pipeline - Restart At Stage (can't mark it as duplicated)



来源:https://stackoverflow.com/questions/50566892/triggers-on-specific-stage-jenkins-pipeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!