hudson
How to get list of changed files since last build in Jenkins/Hudson
I have done it the following way. I am not sure if that is the right way, but it seems to be working. You need to get the Jenkins Groovy plugin installed and do the following script. import hudson.model.*; import hudson.util.*; import hudson.scm.*; import hudson.plugins.accurev.* def thr = Thread.currentThread(); def build = thr?.executable; def changeSet= … Read more
Authenticate Jenkins CI for Github private repository
Perhaps GitHub’s support for deploy keys is what you’re looking for? To quote that page: When should I use a deploy key? Simple, when you have a server that needs pull access to a single private repo. This key is attached directly to the repository instead of to a personal user account. If that’s what … Read more
Creating SSH keys for Gerrit and Hudson
The OP Josh Smith managed to sort it out: I’d actually needed to add the SSH key from /var/lib/hudson/.ssh/id_rsa.pub for the user (me) into the Gerrit GUI. Then from there it worked like a charm. The username must be the username in Gerrit (the admin account). My original advice is below: What is the user … Read more
Missing certificates and keys in the keychain while using Jenkins/Hudson as Continuous Integration for iOS and Mac development
I have found a solution giving me access to the regular keychains for my Jenkins user. Find this plist: /Library/LaunchDaemons/org.jenkins-ci.plist then: Add the UserName element with a value of jenkins. Add a SessionCreate element with a value true to the plist file. This gives access to the normal keychains for the user you specified in … Read more
How to trigger a build only if changes happen on particular set of files
The Git plugin has an option (excluded region) to use regexes to determine whether to skip building based on whether files in the commit match the excluded region regex. Unfortunately, the stock Git plugin does not have a “included region” feature at this time (1.15). However, someone posted patches on GitHub that work on Jenkins … Read more