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.

  • need more understanding on gitblit groovy push script
  • How can I retrieve the build parameters from a queued job?
  • Execute SonarQube Scanner within Jenkins 2 Pipeline
  • Jenkins Pipeline Plugin pass build Job parameters between jobs started in a pipeline
  • Parsing an XML file within a Jenkins pipeline
  • Get Jenkins upstream jobs
  • 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?

  • Is there a way to “delay” a job via the REST API
  • Gerrit Trigger on multiple SCM in jenkins not working
  • Removing cordova plugins from the project
  • Fixing 'Class is not accessible through the ClassLoader.' warning with Jenkins, SonarQube, and Gradle
  • Making Jenkins build fail when Selenium tests fail
  • Couldn't find remote ref HEAD (when releasing artifact with Jenkins and Maven)
  • Git Baby is a git and github fan, let's start git clone.