When triggering a remote build the plugin tries to determine the next job number in advance. After calling start on the remote job It then checks if the job is started.

      In our case the first call to our job returns an empty response, probably because it takes too long to initialize. The plugin then tries to iterate older jobs and probably even finds one that has the same paramters. This can then lead to not waiting for the job to be build.

      In our case this is critical because we are starting several remote jobs that need to be run sequentially. So the next job gets startet too early and both jobs are run in parallel when they should be executed sequentially.

      Workaround: Add a timestamp parameter to the build so that all execution parameter sets are unique.

      Pull request with a better fix coming soon.,

          [JENKINS-31259] Checking remote job needs delay

          Florian Hopf created issue -
          Florian Hopf made changes -
          Link New: This issue is related to JENKINS-29222 [ JENKINS-29222 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166510 ] New: JNJira + In-Review [ 182407 ]
          KaiHsiang Chang made changes -
          Assignee Original: Maurice W. [ morficus ] New: KaiHsiang Chang [ cashlalala ]
          KaiHsiang Chang made changes -
          Released As New: https://github.com/jenkinsci/parameterized-remote-trigger-plugin/releases/tag/Parameterized-Remote-Trigger-3.0.1
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            cashlalala KaiHsiang Chang
            fhopf Florian Hopf
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: