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

Parameterized trigger hangs when script not approved

XMLWordPrintable

      If you trigger another job with the parameterized trigger plugin and the script for the other job is not approved yet, it will hang forever. 

      Steps to reproduce:

      1. Create a job (Job A) with a script not yet approved.
      2. Create another job (Job B) with a parameterized trigger which calls the previous job (Make sure to check the option to block when building).
      3. Trigger the parameterized job (Job B)

      Taking a thread dump it will show that Job B is blocked until Job A is built, and since Job A requires approval it will never complete. It would be nice if the job failed with a message about the script needing to be approved.

            huybrechts huybrechts
            schristou Steven Christou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: