I'm attempting to have a github project build every time master gets
updated.

Building in workspace /var/lib/jenkins/jobs/Example-scrapers-php/
workspace
Checkout:workspace / /var/lib/jenkins/jobs/Example-scrapers-php/
workspace - hudson.remoting.LocalChannel@32edeea8
Using strategy: Default
Last Built Revision: Revision e724d19f971fa0fe488e789a29ef38d66c0eba25
(origin/master)
Checkout:workspace / /var/lib/jenkins/jobs/Example-scrapers-php/
workspace - hudson.remoting.LocalChannel@32edeea8
Fetching changes from 1 remote Git repository
Fetching upstream changes from g...@github.com:Example/Server-Scraper
Commencing build of Revision e724d19f971fa0fe488e789a29ef38d66c0eba25
(origin/master)
Checking out Revision e724d19f971fa0fe488e789a29ef38d66c0eba25 (origin/
master)
[workspace] $ /bin/sh -xe /tmp/hudson4532906084275378804.sh
+ git checkout master
Previous HEAD position was e724d19... Deploying
e815460cb155b08141f29676ca0a5e975f7046ba of /example/staging/scraper/
var/importapi.example.com
Switched to branch 'master'
Your branch is behind 'origin/master' by 55 commits, and can be fast-
forwarded.

... at which point it goes into the build operation with an old
version of code.

I find I have to "git checkout master" or it stays on "no branch."
What's the "proper" way to get the build operation to happen on the
most current version of master?

Reply via email to