If you *must* get a single file, you can use HTTPS and a pre-build step
with a command line web client like wget or curl. For stash you can use
the same path that you can find using the web interface:
https://stash.example.com/projects/MYPROJECT/repos/myrepo/browse/myfile.txt?at=adc83b19e793491b1c6ea0fd8b46cd9f32e592fc&raw
This will lose the versioning information, and defeats the purpose of
using git.
More importantly, *why* do you only want a single file? What are you
trying to do? Git versions whole repositories, not single files. If you
can tell us what you are trying to to do, perhaps we can suggest a more
idiomatic use of git that achieves this outcome. Jenkins is very flexible.
Kind regards,
Ben.
On 11/04/14 00:25, [email protected] wrote:
Hi Folks,
I'm trying to checkout a specific file from GIT using Jenkins, I didn't
any way how to get a specific file form GIT.
Could any one tel how to do this by using jenkins or GIT command.
we are accesing git through STASH my repository is like
*ssh://[email protected]:7999/repo/test.git *
*
*
*there are 100 files in test, my requirement is checkout a specific file
from test folder.*
--
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]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
--
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].
For more options, visit https://groups.google.com/d/optout.