I've finally got jenkins building working when clicking "Build Now". w00t. Thanks to bstinson for finding one of the issues. I'll write this up, but before I do that, I've got three open issues:
1) IRC notification doesn't work on post-build -- It's not even clear where you set the server, only the channel name field is visible 2) Email notification didn't work.
3) Most importantly: triggering the builds: best I can come up with is putting a git post-update hook in my local repo, and `wget` the special: "Trigger builds remotely (e.g., from scripts)" url when I want to run it. This actually works, but it requires you to actually already be logged in to jenkins, and I wasn't sure how to dump in my username and password into a wget command.
No I don't want to screenscrape, phantomjs, or wget with my firefox session cookies! I also don't want to "poll scm" because that's mean/ugly.
Thanks, James @purpleidea
On Tue, Dec 1, 2015 at 12:52 AM, James purpleidea@gmail.com wrote:
- Most importantly: triggering the builds: best I can come up with is
putting a git post-update hook in my local repo, and `wget` the special: "Trigger builds remotely (e.g., from scripts)" url when I want to run it. This actually works, but it requires you to actually already be logged in to jenkins, and I wasn't sure how to dump in my username and password into a wget command.
PS: I hacked this part together with this script: https://github.com/purpleidea/oh-my-vagrant/blob/master/extras/post-push.git... It basically logs in with wget and saves a cookie to use for the subsequent kick. Unfortunately it's all linked up to a "git pushx" target. If someone knows a better way to kick this off, please LMK. I don't think I should store the CentOS CI password in the github hosted hooks!
Thanks, James @purpleidea
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 01/12/15 08:00, James wrote:
On Tue, Dec 1, 2015 at 12:52 AM, James purpleidea@gmail.com wrote:
- Most importantly: triggering the builds: best I can come up
with is putting a git post-update hook in my local repo, and `wget` the special: "Trigger builds remotely (e.g., from scripts)" url when I want to run it. This actually works, but it requires you to actually already be logged in to jenkins, and I wasn't sure how to dump in my username and password into a wget command.
PS: I hacked this part together with this script: https://github.com/purpleidea/oh-my-vagrant/blob/master/extras/post-push.git...
It basically logs in with wget and saves a cookie to use for the
subsequent kick. Unfortunately it's all linked up to a "git pushx" target. If someone knows a better way to kick this off, please LMK. I don't think I should store the CentOS CI password in the github hosted hooks!
Thanks, James @purpleidea
Hi James,
Why don't you want to use the "poll SCM" trigger ? that's the most used one, and is transparent on your side.
- -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab
On Tue, Dec 1, 2015 at 2:03 AM, Fabian Arrotin arrfab@centos.org wrote:
Hi James,
Why don't you want to use the "poll SCM" trigger ? that's the most used one, and is transparent on your side.
I could, but it felt kind of yucky. I always feel bad whenever I do polling, particularly when I'm polling someone else's infra (github).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 01/12/15 06:52, James wrote:
I've finally got jenkins building working when clicking "Build Now". w00t. Thanks to bstinson for finding one of the issues. I'll write this up, but before I do that, I've got three open issues:
- IRC notification doesn't work on post-build -- It's not even
clear where you set the server, only the channel name field is visible 2) Email notification didn't work.
For IRC notification, centos_ci user is registered on freenode, and active in a list of declared irc channels at the jenkins main config. Adding more channels is something we do during a maintenance window (as it needs a jenkins full reload, unfortunately). So if you give us a channel name, we can add it to the list of things to do for next jenkins maintenance.
For email notification, it works, so let me verify if something has been sent, but I'd need to know which email address you declared for your jobs
- -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab
On Tue, 2015-12-01 at 08:08 +0100, Fabian Arrotin wrote:
For IRC notification, centos_ci user is registered on freenode, and active in a list of declared irc channels at the jenkins main config. Adding more channels is something we do during a maintenance window (as it needs a jenkins full reload, unfortunately). So if you give us a channel name, we can add it to the list of things to do for next jenkins maintenance.
Oh awesome. Please add #ohmyvagrant and #mgmtconfig -- There is no urgency, but it would be cool to have, thanks!
For email notification, it works, so let me verify if something has been sent, but I'd need to know which email address you declared for your jobs
centos-jenkins@shubin.ca
Perhaps I configured it wrong. The job is named: purpleidea-oh-my-vagrant
Thanks again! James