Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40585

Schedule a build at a particular time

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Production Approval job (Let’s Say A)
      This job is to create email notification to the manager and schedule a Production Job to schedule at a particular time. Say 4:00 pm
      Need to build as a pipeline with A and B
      A has a parameter CRQ Number (Ticketing system), B has to catch that parameter value
      and build at the scheduled time. Production Job (Let’s Say B).

      A is upstream to B .
      Is it possible to Build a Pipeline like this.
      When I build job A with a parameter and it should block the Job B and it should only trigger at schedule time.

      If yes Please suggest some plugins and possibilities

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          No such feature exists that I am aware of.

          Show
          jglick Jesse Glick added a comment - No such feature exists that I am aware of.
          Hide
          ssbarnea Sorin Sbarnea added a comment -

          I was looking for something very similar: I want to trigger another parametrized job to run in 2 hours from now, this being done from inside a running pipeline (groovy).

          I was not able to find a way to do it and I do have a very good use-case for it: cleanup jobs. I want to cleanup some resources after a number of hours after the build execution. 

          Please note that I cannot put a wait inside the pipeline because this would prevent the pipeline from finishing on time. This is an activity that needs to be run N-hours after the build finished.

          I found https://wiki.jenkins.io/display/JENKINS/Schedule+Build+Plugin plugin but this seems to work only for manually triggered jobs. In my case I need to trigger these cleanup jobs from a pipeline.

          Maybe someone has an idea on how to achieve that.

          Show
          ssbarnea Sorin Sbarnea added a comment - I was looking for something very similar: I want to trigger another parametrized job to run in 2 hours from now, this being done from inside a running pipeline (groovy). I was not able to find a way to do it and I do have a very good use-case for it: cleanup jobs. I want to cleanup some resources after a number of hours after the build execution.  Please note that I cannot put a wait inside the pipeline because this would prevent the pipeline from finishing on time. This is an activity that needs to be run N-hours after the build finished. I found https://wiki.jenkins.io/display/JENKINS/Schedule+Build+Plugin  plugin but this seems to work only for manually triggered jobs. In my case I need to trigger these cleanup jobs from a pipeline. Maybe someone has an idea on how to achieve that.

            People

            Assignee:
            morficus Maurice W.
            Reporter:
            srikanthreddy srikanth reddy
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: