jenkinsci/jenkinsfile-runner

Jump to stage/Skip stages

cdupont opened this issue · 1 comments

Hello,
I use jenkinsfile-runner to debug my jenkinsfile and make quick tests.
It would be nice to have a feature to "jump to stage".
For instance if I have a pipeline with the following stages: build -> deploy -> test
I could skip build and deploy and jump directly to test.

Possible syntax:

--skipStages VAL1, VAL2 : skip the stages VAL1 and VAL2

It would be nice indeed, especially for the Declarative Pipeline when it is trivial. I am not sure it is possible with the current Pipeline engine.

FWIW it is possible to skip declarative stages based on a condition