3

Imagine a multibranch pipeline, that has stages deploy, test, publish

The scenario:

  • Run build
  • Build finishes, but stages like publish are not executed
  • Someone goes to some completed build and triggers the deploy or publish stage
  • This triggers continuation of the pipeline. on the same build

This will be much more convenient and user-friendly then running some other job with a Run Parameter. And it will keep the branch integrity.

Is there a way to do such magic with Jenkins pipeline multibranch?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Andrey Ershov
  • 1,773
  • 1
  • 16
  • 26

1 Answers1

2

Make use of pipeline input step which allows the user to interact and control the flow of the build. Only a basic "process" or "abort" option is provided in the stage view.Pipeline: Input Step

Updating the post after the comments of aershov. Thanks to him.

Pipeline input step blocks the executor (i.e) it will be running state. Just noticed detailed answer regarding input step and milestone and locks are available @ Jenkins Pipeline: "input" step blocks executor

Fidel
  • 977
  • 1
  • 6
  • 13