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

Quiet period is not considered when triggering remotely

      2 Jenkins Servers: build and integrate
      integrate has a deploy job with a "Quiet period" of 1800 (seconds)
      build triggers via "Parameterized Remote Trigger Plugin" Verison 2.1.3
      with "Trigger a remote parameterized job" that job.

      The deploy job starts immediately.
      Expected is that the deploy job on integrate is queued and waits for 30 minutes.

      Seems to be that
      "Trigger builds remotely (e.g., from scripts)" with "Authentication Token"
      akts like pressing on the "Build" link.

      Should be like other build triggers.

          [JENKINS-27249] Quiet period is not considered when triggering remotely

          Maurice W. added a comment -

          This plugin does all of its interactions by making API calls to the remote Jenkins server.
          If triggering a build via the API does not acknowledge the quite period... maybe this is an issue with core?

          Maurice W. added a comment - This plugin does all of its interactions by making API calls to the remote Jenkins server. If triggering a build via the API does not acknowledge the quite period... maybe this is an issue with core?

          Maurice W. added a comment -

          All interactions with the remote server are done via the Jenkins REST API.

          If triggering a build via the API does not acknowledge the quite period... maybe this is an issue with core?

          Maurice W. added a comment - All interactions with the remote server are done via the Jenkins REST API. If triggering a build via the API does not acknowledge the quite period... maybe this is an issue with core?

          Stefan Cordes added a comment -

          Stefan Cordes added a comment - Created Core issue: https://issues.jenkins-ci.org/browse/JENKINS-28415

          Daniel Beck added a comment -

          Parameterized Remote Trigger sets the delay to 0, overriding any defined quiet period similar to the "Build Now" link on the UI.

          https://github.com/jenkinsci/parameterized-remote-trigger-plugin/blob/master/src/main/java/org/jenkinsci/plugins/ParameterizedRemoteTrigger/RemoteBuildConfiguration.java#L407

          Daniel Beck added a comment - Parameterized Remote Trigger sets the delay to 0, overriding any defined quiet period similar to the "Build Now" link on the UI. https://github.com/jenkinsci/parameterized-remote-trigger-plugin/blob/master/src/main/java/org/jenkinsci/plugins/ParameterizedRemoteTrigger/RemoteBuildConfiguration.java#L407

          Stefan Cordes added a comment -

          Thank you, Daniel.
          Remove the line "this.addToQueryString("delay=0");" will fix this.

          Stefan Cordes added a comment - Thank you, Daniel. Remove the line "this.addToQueryString("delay=0");" will fix this.

          Just want to check is there an option to delay the remote trigger?. For example I want to trigger a remote job with quiet period. 

           

          Dineshkumar Ayyavoo added a comment - Just want to check is there an option to delay the remote trigger?. For example I want to trigger a remote job with quiet period.   

            morficus Maurice W.
            sc_rsc Stefan Cordes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: