How to git push to mapped drive in jenkins -


i have jenkins build box building .net code (windows os, obviously), copying new binaries local git repo, creating new branch current build number. remote master on mapped drive (in case g:) , while can push new branch in cygwin console, or git bash, jenkins, same command returns error:

fatal: 'c:/program files/git/cygdrive/g/repo.git' not appear git repository fatal: remote end hung unexpectedly  fatal: 'c:/program files/git/cygdrive/g/repo.git' not appear git repository fatal: remote end hung unexpectedly 

the git command in jenkins shell this:

!/bin/bash cd ../git_repo git add -a git commit -m "updated ci build version $build_version_number_new based on $accurevcomment.  build triggered $build_cause" git branch "rc_$build_version_number_new" git push file:///cygdrive/g/repo.git "rc_6.0" git push file:///cygdrive/g/repo.git "rc_$build_version_number_new" 

why jenkins putting c:/program files/git/cygdrive" in there? have jenkins set c:\cygwin\bin git.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -