我遇到的情况是,我必须每天和每周运行相同的管道(阶段集)。但问题是超时选项。
pipeline { agent any options { // Timeout counter starts AFTER agent is allocated timeout(time: 4, unit: 'HOURS') } stages { stage('Build') { steps { echo 'Hello World' } } stage('Test') { steps { echo 'Hello World' } } } }
有人尝试过类似的场景吗?任何指导将不胜感激。