Restartable Pipeline stages

108 views
Skip to first unread message

Mark Bidewell

unread,
May 2, 2016, 1:23:07 PM5/2/16
to Jenkins Users
Is there a way to implement a restartable stage that could be manually restarted?  Often in Pipeline examples I see something like:

  • "Deploy" -> "Deploy Again" ->"Deploy Yet Again"

It seems like this could be combined into a single step that could be reexecuted.  Is this possible?

Rikesh Dhokia

unread,
Jun 14, 2016, 11:42:49 PM6/14/16
to Jenkins Users
I too am looking for functionality like this. @Mark, did you create a relevant JIRA issue for this?

Mark Bidewell

unread,
Jun 15, 2016, 9:50:29 PM6/15/16
to Jenkins Users

gu...@kolibri.is

unread,
Jan 18, 2017, 7:07:18 AM1/18/17
to Jenkins Users
It seems to me that jenkins 2 pipelines are not really pipelines. From my perspective, someone missed a key ingredient for pipelines and build stages when designing this featureset, which is that build stages must operate on independent schedules, and must be independently repeatable. As a CI/CD practitioner and teacher for 16 years, this annoys the hell out of me.

There are plugins, such as this one https://wiki.jenkins-ci.org/display/JENKINS/Delivery+Pipeline+Plugin,  to stitch Jenkins Jobs together into a pipeline, which is what you really want. Have not used it yet, but looks like what you want.

Sam K

unread,
Jan 18, 2017, 5:24:18 PM1/18/17
to Jenkins Users
The non declarative pipeline way where multiple jobs were stitched together, this was possible.  But not with declarative pipelines.  Looks like the blue ocean project is aiming to address this issue...maybe?  

For my pipeline, we have to rerun test suites sometimes because they fail intermittently.  So, I implemented a checkbox which says 'run only tests' and then gave each suite its own checkbox.  So, if someone wants to re-run just a test, they select 'Run only tests' and then select the test suite they want to run. it wont try to build and deploy.  
Reply all
Reply to author
Forward
0 new messages