No problem we will figure it out. I have tested it on windows and started the agent via webstart on the same machine, here is my console output:
Iniciado pelo usuário admin
Construindo remotamente em slave-test no workspace C:\Users\rafael-pestano\workspace\teste
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url https://github.com/jenkinsci/last-changes-plugin # timeout=10
Fetching upstream changes from https://github.com/jenkinsci/last-changes-plugin
> git.exe --version # timeout=10
> git.exe -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/last-changes-plugin +refs/heads/*:refs/remotes/origin/*
> git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision d13656b1a85833d1fe3f343ebe3369bc70277fb3 (refs/remotes/origin/master)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f d13656b1a85833d1fe3f343ebe3369bc70277fb3
> git.exe rev-list d13656b1a85833d1fe3f343ebe3369bc70277fb3 # timeout=10
Publishing build last changes...
Last changes published successfully!
Finished: SUCCESS
Note that agent workspace is on C:\Users\rafael-pestano\workspace\teste directory. here is when the build is done on master:
Iniciado pelo usuário admin
Construindo no master no workspace C:\Users\rafael-pestano\.jenkins\workspace\teste
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url https://github.com/jenkinsci/last-changes-plugin # timeout=10
Fetching upstream changes from https://github.com/jenkinsci/last-changes-plugin
> git.exe --version # timeout=10
> git.exe -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/last-changes-plugin +refs/heads/*:refs/remotes/origin/*
> git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision d13656b1a85833d1fe3f343ebe3369bc70277fb3 (refs/remotes/origin/master)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f d13656b1a85833d1fe3f343ebe3369bc70277fb3
> git.exe rev-list d13656b1a85833d1fe3f343ebe3369bc70277fb3 # timeout=10
Publishing build last changes...
Last changes published successfully!
Finished: SUCCESS
master workspace is on C:\Users\rafael-pestano\.jenkins\workspace\teste directory. I've tested on latest jenkins (2.13). I will test on linux as soon I get home and also try to run agent on a different machine. |