Jenkins Pipeline continue latest build at certain time

笑着哭i 提交于 2019-12-11 05:09:44

问题


I have a Jenkins Pipeline which runs per commit, does a build and runs some sanity tests. Then at 8pm I want the latest successful build to carry on and run more indepth tests as part of the same pipeline.

I have looked at milestone and lock but it seem that the first commit of the day would grab the lock to wait till 8pm and then be "promoted" and then when that finished it would run the latest which doesnt work for me.

I have looked at milestone and then having a user-input to hold all the builds at the end of the first stage, but that would mean manually clicking a job at 8pm or having and external script to do it.

I've also looked at checkpoint and this doesnt appear to have the ability to do what I need either.

Can anyone suggest a groovy method for a new build to supersede an old one or plugin that would work for me?

来源:https://stackoverflow.com/questions/42781805/jenkins-pipeline-continue-latest-build-at-certain-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!