Jenkins Pipeline continue latest build at certain time

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.

  • Jenkins Groovy how to call methods from @NonCPS method without ending pipeline
  • Accessing the current Jenkins build in Groovy script
  • grails add svn revision to app.version
  • What is the effect on @NonCPS in a Jenkins pipeline script
  • Jenkins Workflow Plugin Using a Groovy Library
  • Execute SonarQube Scanner within Jenkins 2 Pipeline
  • 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?

  • Migrating to Jenkins 2.1- AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP
  • Building multiple Maven profiles for a single Jenkins job
  • How can I execute Shell script in Jenkins?
  • Aborting a Jenkins job from within the executing shell
  • How to debug Cannot run program “C:\Program Files\Git” in a Jenkins job?
  • Jenkins Build Name Setter Plugin does not find variable
  • Git Baby is a git and github fan, let's start git clone.