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

schedule-build-plugin - build with parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: schedule-build-plugin
    • Labels:
      None
    • Environment:
      schedule-build-plugin 0.5.1
    • Similar Issues:

      Description

      We have been pushing a lot of our automation into Jenkins Pipeline but that means that our builds are parameterized. Being able to schedule a build with parameters would be incredibly useful. 

        Attachments

          Activity

          Hide
          pingunaut Martin Spielmann added a comment -

          Hi Jared Kauppila,

          scheduling parameterized pipelines is already possible. Just click  "Schedule build" and select the parameters afterwards:

          I'm not sure if I understand the problem correctly.

          Show
          pingunaut Martin Spielmann added a comment - Hi Jared Kauppila , scheduling parameterized pipelines is already possible. Just click  "Schedule build" and select the parameters afterwards: I'm not sure if I understand the problem correctly.
          Hide
          jakauppila Jared Kauppila added a comment -

          Hey Martin Spielmann,

          Yup, just user error 

          I must have been clicking around on a few jobs and saw that on a non-parameterized job when I thought it was.

          Show
          jakauppila Jared Kauppila added a comment - Hey Martin Spielmann , Yup, just user error  I must have been clicking around on a few jobs and saw that on a non-parameterized job when I thought it was.
          Hide
          pingunaut Martin Spielmann added a comment - - edited

          Hi Jared Kauppila,

          no problem, these are the bugs I like the most

          Thanks for your quick feedback and also for using the plugin 

          Regards

          Show
          pingunaut Martin Spielmann added a comment - - edited Hi Jared Kauppila , no problem, these are the bugs I like the most Thanks for your quick feedback and also for using the plugin  Regards
          Hide
          azee77 Abhijeet Zope added a comment - - edited

          Martin Spielmann
          Hi guys, is there anyway I can use this via API POST call ? 
          Currently I do : 

          session = requests.Session()
          session = requests.Session()
          data = { all configurable parameters are defined here }
          url = 'http://jenkins_job_url/buildWithParameters?token=token_ID'
          session.post(url, data, verify = False)

          In this fashion can I schedule a job in build queue ? 
          To be clear I want my post call to send the actual parameters. For immediate runs this already serves. Anyway to add the task in the queue ? 

          Show
          azee77 Abhijeet Zope added a comment - - edited Martin Spielmann Hi guys, is there anyway I can use this via API POST call ?  Currently I do :  session = requests.Session() session = requests.Session() data = { all configurable parameters are defined here } url = 'http://jenkins_job_url/buildWithParameters?token=token_ID' session.post(url, data, verify = False) In this fashion can I schedule a job in build queue ?  To be clear I want my post call to send the actual parameters. For immediate runs this already serves. Anyway to add the task in the queue ? 
          Hide
          pingunaut Martin Spielmann added a comment -

          Hello Abhijeet Zope,

          I think you can do without any plugin installed. Just add the "delay" parameter to your URL, e.g.:

          url = 'http://jenkins_job_url/buildWithParameters?token=token_ID&delay=60sec'
          
          Show
          pingunaut Martin Spielmann added a comment - Hello Abhijeet Zope , I think you can do without any plugin installed. Just add the "delay" parameter to your URL, e.g.: url = 'http: //jenkins_job_url/buildWithParameters?token=token_ID&delay=60sec'
          Hide
          azee77 Abhijeet Zope added a comment -

          Martin Spielmann Thanks a lot. This helped me 

          Show
          azee77 Abhijeet Zope added a comment - Martin Spielmann  Thanks a lot. This helped me 

            People

            Assignee:
            pingunaut Martin Spielmann
            Reporter:
            jakauppila Jared Kauppila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: