从Jenkins脚本管道中的特定阶段重新启动管道
我的管道中有4个不同的阶段(构建测试部署监视器),这些阶段是使用脚本管道构建的。管道运行到第3阶段完成,然后等待用户输入。根据用户输入,如果用户在第3阶段之后进行按下按下操作,我需要从阶段2重新启动。是否有任何方法可以在脚本管道中实现这一目标?
I have 4 different stages(build test deploy monitor) in my pipeline which is build using scripted pipeline. Pipeline runs till stage 3 completion and then waits for user input. Based on user input, I need to restart from stage 2 if the user confirms with pressing proceed after stage 3. is there any way to achieve this in scripted pipeline?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以做下面的事情来满足您的要求。
执行看起来像以下。
You can do something like the below to cater your requirement.
The execution will look like the below.