diff --git a/script/copy-artifacts-to-host.sh b/script/copy-artifacts-to-host.sh index 437f6b65c..e615a29e8 100755 --- a/script/copy-artifacts-to-host.sh +++ b/script/copy-artifacts-to-host.sh @@ -10,6 +10,10 @@ if [[ -z "${MUSIKCUBE_BUILD_HOST_PW}" ]]; then exit fi +if [[ -z "${MUSIKCUBE_BUILD_HOST_PORT}" ]]; then + MUSIKCUBE_BUILD_HOST_PORT=22 +fi + GLOB=${1} if [[ -z "${GLOB}" ]]; then @@ -20,5 +24,5 @@ fi echo "copying build artifacts to host..." echo " from: ${GLOB}" ls -al "${GLOB}" -sshpass -p ${MUSIKCUBE_BUILD_HOST_PW} scp -o StrictHostKeyChecking=no "${GLOB}" build@${MUSIKCUBE_BUILD_HOST_IP}:/home/build/ 2> /dev/null +sshpass -p ${MUSIKCUBE_BUILD_HOST_PW} scp -P ${MUSIKCUBE_BUILD_HOST_PORT} -o StrictHostKeyChecking=no "${GLOB}" build@${MUSIKCUBE_BUILD_HOST_IP}:/home/build/ 2> /dev/null echo "finished copying build artifacts."