how to make a loop in a jenkins pipeline script interruptible?

时间:2016-08-31 12:10:09

标签: jenkins jenkins-pipeline

One of my pipelines needs to wait for an external event to happen before it can continue. I tried using waitUntil, but it completely locked on me without any error (the pipeline would block and not move again). So I moved to a while(...) with a sleep inside.

However, I now have the impression that this while loop cannot be interrupted. Would there be a way to declare a synchronization point for Jenkins, that it can interrupt the whole pipeline ?

0 个答案:

没有答案
相关问题