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
Build no longer triggering (Maybe running too bleeding edge?) #15
Comments
The "=>" is a Ruby interpretation of JSON so that is not the issue. As for the other log info, it comes from toString() implementation of the Jenkins hudson.model.AbstractProject class. Don't know why you seem to be getting the project name as "". The "<" and ">" are a suspect. Did you change sensitive info in the payload or was it received just like you pasted it? Could it be that the new Gitlab version is sending the payload with different data than before? |
Thanks, as you can guess, I don't do anything with Ruby. As for the "<project>", I am sorry that I should have been more clear that I have sanitized the data that I posted. The log shows the correct project name in the log. I did not change anything other than the sanitizing the values by replacing the live data with "<something>", and inserting whitespace for making it easier to read. |
OK, so the situation is like this. From then on, the plugin tries to trigger the build or notify commit, depending on the hook URL you gave Gitlab. The payload should then trigger the build if Jenkins project is set not to ignore the notify commit and is buildable (e.g. not new and not disabled). In case of notify commit hook, the schedulePolling method is called on the Jenkins class/project. In case of build now hook, the scheduleBuild2 method is called. In both cases, the plugin expects true to be returned from Jenkins if the trigger was successful. All of the actions are logged, e.g. for build now hook the relevant code is here. You should be able to see in logs some more details that come after the "project matches the develop branch" line. Can you try and locate all of the log details? |
Here is the entire log from jenkins when a submit happened on gitlab...
I did not have the ignore hook on at that time, but I do have it on now, because I have switched to polling every x min while we are having this issue. |
Well, I can't find the Jenkins 1.526 upgrade, but with 1.526 all is working as expected. |
Hmm, strike that, 1.526 is available after all. |
Yep, there was an error with non parametrized projects. I suspect this is the case at your side. |
This worked for me. Thanks. |
@yasuoza thanks for the update! |
@elvanja, sorry for going offline on you--I wnet on vacation. Anyhow, Yes, the 2.12 does appear to have fixed the trigger. Thanks! |
@jimmypuckett hopefully a nice vacation :-) |
We have been using the hook for a while & is has been great. In the last few days we have done some upgrades (os patches, gitlab 6.0.0.pre, jenkins 1.526, etc). Anyhow, the automatic building stopped working & we assumed that it was some update we did. I just noticed this in the logs...
For some reason (maybe I just don't know what I am looking at?), there are '=>' between the key/value pairs instead of ':'. I would think that it should be...
The odd part is that I then see this in the log...
so I guess that means that you can use the '=>' separator? Anyhow, do you have any ideas on where to start looking?
The text was updated successfully, but these errors were encountered: