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

Build Token Root delays 1000 times longer than expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins LTS 2.150.3
      Lots of plugins including Build Token Root Plugin (version 1.4)
      Windows Server 2016 / Windows 10
    • Similar Issues:
    • Released As:
      1.7

      Description

      We are using the Build Token Root Plugin (version 1.4) to trigger builds with a HTTP GET request, and have noticed that when we pass a delay parameter, the actual delay (shown in the build queue) is significantly longer than requested.

      http://server:8080/buildByToken/buildWithParameters?job=ajobname&token=thetoken&param=value&delay=900sec
      delay=900sec => 10 days
      delay=30sec => 8 hr
      delay=1sec => 16 min

      It looks like those were 1000 times longer than they should have been.

      900000 seconds = 10.4 days
      30000 seconds = 8.3 hours
      1000 seconds = 16.6 mins

      My guess is that this is related to JENKINS-44052 (passing a value in milliseconds to a function expecting seconds)

       

        Attachments

          Issue Links

            Activity

            Show
            jglick Jesse Glick added a comment - I think fixed: https://github.com/jenkinsci/build-token-root-plugin/pull/46#discussion_r621290612

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              zekiyureti Zeki Yureti
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: