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

Build execution time is different when run manually or by scheduler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Running on Jenkins 2.263.1 and 2.277.1 on WIndows 2016 Server

      When execute Jenkins manually or by scheduler, the execution time varies extremely different. This is based on the code below:

       

      Code:

      echo "BEFORE items.findAll."

          def matchedJobs = Jenkins.instance.items.findAll { it.name.toUpperCase().startsWith(projectName.toUpperCase()) }

      echo "AFTER items.findAll."

       

      Console:

      Start the build manual:

      17:25:41  BEFORE items.findAll.

      17:27:00  AFTER items.findAll.

       

      Build started by scheduler:

      17:32:18  BEFORE items.findAll.

      17:32:18  AFTER items.findAll.

            Unassigned Unassigned
            hubertus Hubertus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: