2

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

mson
  • 29
  • 2
  • 7

1 Answers1

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)

rmpestano
  • 838
  • 1
  • 8
  • 17
  • Ok thanks, I will look about it. For the duplicate, I've never seen this post, so sorry – mson May 28 '18 at 13:49
  • Separate question, do you now how have the "Build when a change is pushed to GitLab. GitLab webhook URL" parameter in a pipeline ? (it come with GitLab plugin and GitLab hook plugin I think) – mson May 28 '18 at 13:51