I try to copy files to a network directory during build, and I continue to receive the error message "There is no such file or directory."
Copying to a local drive works fine: cp -Rf c: / Jenkins / deployment / TW_ISSUE_A / src c: / Jenkins / deployment / TW_ISSUE_A / target
All messages are listed below:
cp -Rf c: / Jenkins / deployments / TW_ISSUE_A / src H: / some_dir
cp -Rf c: / Jenkins / deployments / TW_ISSUE_A / src H: \ some_dir
cp -Rf c: / Jenkins / deployments / TW_ISSUE_A / src // Hubbell / MISGenl / some_dir
cd c: / Jenkins / deployment / TW_ISSUE_A / src rsync -avuzb // Hubbell / MISGenl / Projects / Tronweb / TronwebBuilds / test / ora / sql /
cp -Rf c: / Jenkins / deployments / TW_ISSUE_A / src / cygdrive / h / some_dir
I even created a shell script to call from Jenkins, but I keep getting this message.
#!/bin/bash url="http://as-test02:8080/job/TW_ISSUE_A_BUILD/lastSuccessfulBuild/artifact/bui ld-TW_ISSUE_A_BUILD.tar"; remote_stage_dir="/cygdrive/h/some_dir" #fetch the artifacts (cd "$remote_stage_dir" && wget "$url" && tar xvf build-TW_ISSUE_A_BUILD.tar dat java ora && rm -rf *.tar && cp -r ./ora/* ../INTEGRATION)
Is there a way to copy files to a mapped drive on an assembly machine?
Thanks!
source share