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://g...@github.com/xxxxx/xxx.git # timeout=10
Fetching upstream changes from ssh://g...@github.com/xxxxx/xxx.git
> git --version # timeout=10
> git fetch --tags --progress ssh://g...@github.com/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.