-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hook fails on all Jenkins commands except quietDown and cancelQuietDown #91
Comments
According to https://python-jenkins.readthedocs.io/en/latest/api.html, jenkins-charm/lib/charms/layer/jenkins/api.py Lines 159 to 167 in 155d241
|
All actions, except for those two, when executed return So when things happen as expected all actions will fall into the |
Well the action |
@axinojolais maybe jenkins has changed the return for that action, possibly for all of them. So this issue is definitely valid and we should check what implemented actions are failing due to that and add them to the same place as jenkins-charm/lib/charms/layer/jenkins/api.py Line 217 in 734965f
|
I agree it's not fixed. It's only part of the fix to unstuck a situation.
|
Hello !
Perhaps I'm missing something obvious, because it's strange that no one saw that before ?
In the following block, the statement in the
if
cannot be true unlessaction
is eitherquietDown
orcancelQuietDown
. Soreturn
will not be called, and theelse
statement from thetry
block will be executed, leading to a hook error.jenkins-charm/lib/charms/layer/jenkins/api.py
Lines 214 to 222 in 734965f
I'm not sure what the intent is here, will investigate and make a PR
The text was updated successfully, but these errors were encountered: