Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] Hudson integration with Gerrit


Hi Anna,

Can I take a look at the verification job config?
The trigger didn't work for awhile:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384827


We got most of our settings from here: http://wiki.eclipse.org/Gerrit#Verifying_Changes_on_Hudson_using_Gerrit_Trigger_Plugin and http://wiki.hudson-ci.org/display/HUDSON/Gerrit+Trigger

We have not had any problems with the trigger. The main problem was getting Hudson to build the right commit on the right branch for which we used the following "execute shell" build step before running maven:

#!/bin/sh -x
git fetch git://git.eclipse.org/gitroot/linuxtools/org.eclipse.linuxtools $GERRIT_REFSPEC
git checkout FETCH_HEAD
CODE=$?
if [ ${CODE} -ne 0 ]; then
  git reset --hard
  exit ${CODE}
fi

You should be able to view the configuration if you login: https://hudson.eclipse.org/sandbox/job/linuxtools/

Hope this helps.
  Sami



Back to the top