Jenkins build is stuck pending

3.6k views Asked by At

Ever since we upgraded to 1.614 we have a problem with a certain hierarchy of tasks. Two tasks are being stuck in "pending" every once in a while.

One task is descendant of the other and we indicate:"Block build when downstream project is building"

Notice that it does not say "Downstream project <> ..."

I have tried to upgrade again and we are currently on version 1.616

To solve this I cancel one of the tasks manually and the other one starts to run, but they are stuck until I notice that.

Can I prevent it from happening or at least auto cancel somehow when it happens?

2

There are 2 answers

0
Zamir On BEST ANSWER

Seems like there is an issue in Jenkins that should was solved in 1.618

Problem did not reoccur after upgrading

2
Gerold Broser On

Re "Can I [...] auto cancel somehow when it happens?"

See Build-timeout Plugin:

This plugin allows you to automatically abort a build if it's taking too long. Once the timeout is reached, Jenkins behaves as if an invisible hand has clicked the "abort build" button.