git - Full clone in a Jenkins pipeline script -


i want analysis on git repository each build using custom bash script. requires jenkins checks out full git repository , not perform sparse checkout. how can this? using pipeline script. can checkout during build need inject jenkins credentials (which not want).

my jenkins console log shows sparse checkout has been done:

> git config core.sparsecheckout # timeout=10 > git checkout -f 1d94145c47cf93a9561b59ed3ba37b936ce15d38 

why don't add shell script steps fetch branches , checkout branch after sparse checkout? like:

git fetch --all git checkout master or git checkout <your_desired_branch> 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -