From b48651396f719e2499cddcbf83cbec5836567f6c Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 14 May 2019 18:08:45 -0500 Subject: [PATCH] fix(travis): upload through ssh proxy --- ios/travis-ci/build-ipa.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ios/travis-ci/build-ipa.sh b/ios/travis-ci/build-ipa.sh index 04260504d..97d0c9e23 100755 --- a/ios/travis-ci/build-ipa.sh +++ b/ios/travis-ci/build-ipa.sh @@ -152,4 +152,12 @@ xcodebuild -quiet -exportArchive -archivePath /tmp/jitsi-meet/jitsi-meet.xcarchi echo "Will try deploy the .ipa to: ${IPA_DEPLOY_LOCATION}" -scp -i ${CERT_DIR}/id_rsa -o StrictHostKeyChecking=no -o LogLevel=DEBUG "${IPA_EXPORT_DIR}/jitsi-meet.ipa" "${IPA_DEPLOY_LOCATION}" +ssh-add ${CERT_DIR}/id_rsa + +if [ ! -z ${SCP_PROXY_HOST} ]; +then + scp -o ProxyCommand="ssh -t -A -l %r ${SCP_PROXY_HOST} -o \"StrictHostKeyChecking no\" -o \"BatchMode yes\" -W %h:%p" -o StrictHostKeyChecking=no -o LogLevel=DEBUG "${IPA_EXPORT_DIR}/jitsi-meet.ipa" "${IPA_DEPLOY_LOCATION}" +else + scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG "${IPA_EXPORT_DIR}/jitsi-meet.ipa" "${IPA_DEPLOY_LOCATION}" +fi +