Jenkins-1.567; Git-Plugin-2.2.5; Gerrit-Trigger-2.11.1I setup Jenkins-Git-Gerrit and everything works as expected.
The issue I'm having is that every build shows list of changes starting from the initial commit all the way to the last commit that actually triggered the build. Seems like it doesn't update the local repository and it start from scratch every time a build is triggered.
My Workspace files are up to date but my Pull Log for the builds is empty.
Also if I manually run a build (i.e. not triggered by an event) it does a pull of the very first commit only and then continues with the tests.
-- PeterI know I missed some settings somewhere.Any help is appreciated.
Thanks,
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Triggered by Gerrit: http://repos.local:8080/20 Building in workspace /var/lib/jenkins/jobs/cfproject/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.cfproject.url ssh://jen...@repos.mycompany.com:29418/cfengine/cfproject # timeout=10 Fetching upstream changes from ssh://jen...@repos.mycompany.com:29418/cfengine/cfproject > git --version # timeout=10 using GIT_SSH to set credentials > git fetch --tags --progress ssh://jen...@repos.mycompany.com:29418/cfengine/cfproject refs/changes/*:refs/changes/* > git rev-parse b814adf6b424c10ea8063d29767c85de74971a06^{commit} # timeout=10 Checking out Revision b814adf6b424c10ea8063d29767c85de74971a06 (refs/changes/20/20/1) > git config core.sparsecheckout # timeout=10 > git checkout -f b814adf6b424c10ea8063d29767c85de74971a06 > git rev-parse FETCH_HEAD^{commit} # timeout=10 > git rev-list 1388d41de4bff273baf6a9282970c013069b2654 # timeout=10 [workspace] $ /bin/sh -xe /tmp/hudson1833744645105158914.sh + /usr/local/bin/ci-buildplay.sh We are good. + /usr/local/sbin/ci-cfesyntax.sh Finished: SUCCESSThank you,
Thank you for the replies.I'm still testing the setup so I try to keep it as clean as possible. There is only master branch and everything else is pretty clean minimal setup done by following the documentation.
For "Additional Behaviours" all I have is "Strategy for choosing what to build: Gerrit Trigger". I'm not sure what that does.
If I'm to test a job without the Gerrit Trigger do I need to add "Additional Behaviours"?
About the "pull log", actually I wanted to say "Pulling Log". When I go to any build page, on the left hand side along with "Changes", "Console Output" and so on, I see another link called "Pulling Log". When I click on it on the top of the page it says: "This page captures the polling log that triggered this build".It's like this one http://ci.gerritforge.com/job/Gerrit-master/445/pollingLog/ but for me the page is empty.
Hi Peter,Same thing happened to me as well. I'm using Jenkins-1.634; Git-Plugin-2.4.0; Git-Client-Plugin-1.19.0; Gerrit-trigger:2.16.0I configed the Gerrit Trigger plugin on jenkins based on the article https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger.On git plugin, I set Refspec to refs/changes/*:refs/changes/* and 'Branches to build' to $GERRIT_REFSPEC.