I think that log is showing that the workspace repository has a remote
named "origin" (the default) and that remote has a branch named "master"
and "git rev-parse" command in that workspace repository reports that
origin/master or origin/origin/master points to commit 9d4fd82b5...
Assuming it is origin/master, that seems correct to me.

The "Checking out Revision" message hints to me that the repository
origin/master points to 9d4fd82b5.  That seems correct to me.

You might check that you don't have a branch named origin, or a branch
named origin/master in your GitHub repository, just in case that is somehow
confusing the code which determines what branch to build.

Mark Waite

On Wed, May 20, 2015 at 5:19 AM <[email protected]> wrote:

> Hi
>
> This is my first time setting up jenkins. Using 1.613
>
> Simple task is to pull latest version of master from github when building
> a job.
>
> I am using:
>
> GIT client plugin v 1.17.1
> GIT plugin v 2.3.5
>
> The problem: jenkins "talks" to github ok BUT it checks out a very very
> old version (last commit on the first day of the repository), not the
> latest version, i'm assuming its a simple config error but after many hours
> i'm stumped so hoping someone can help.
>
> Git configuration in attached screenshot.
>
> Console output:
>
> Building in workspace /var/lib/jenkins/workspace/rais
>  > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
>  > git config remote.origin.url ssh://[email protected]/xxxxx/xxx.git # 
> timeout=10
> Fetching upstream changes from ssh://[email protected]/xxxxx/xxx.git
>  > git --version # timeout=10
>  > git fetch --tags --progress ssh://[email protected]/xxxxx/xxx.git 
> +refs/heads/*:refs/remotes/origin/*
>  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
>  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
> Checking out Revision 9d4fd82b50276e4b5a287a91caad1b2f28885c8d 
> (refs/remotes/origin/master)
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f 9d4fd82b50276e4b5a287a91caad1b2f28885c8d
>  > git rev-list 9d4fd82b50276e4b5a287a91caad1b2f28885c8d # timeout=10
>
>
>
> "9d4fd82b50276e4b5a287a91caad1b2f28885c8d " is a commit from several
> months ago.
>
>
>
>
>  <http://rais.io>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/0a0929df-6f8e-424d-a1cf-24a5569f755e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/0a0929df-6f8e-424d-a1cf-24a5569f755e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEKiTRBsumUjOme%2BJq8OtHJ0UL9QJh2Zv%3DYQxeP7Sg%2Bhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to