Checkouts in Jenkins, AFAIK, are headless, meaning that I cannot do git 
operations on them.
If I want to do an operation, like git tag and then git push... I need to 
first do git clone inside an sshagent block or similar.

For large repositories this can be a problem, as the process becomes 
lengthy...
checkout scm...
do stuff (tests, build, etc)...
git clone...
git tag...
git push...

This can be made a little better by git cloning using --depth 1, but this 
still will git clone the whole repo, even if without history.

So I'm looking for a way to be able to git tag/push, but not also git clone 
the repo again... is this at all possible, to maybe check scm with head 
(or, not headless) so git operations would be possible?

-- 
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/52f875bc-020c-422f-8508-2277a628f608%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to