Parcourir la source

fix(travis): upload through ssh proxy

master
paweldomas il y a 6 ans
Parent
révision
b48651396f
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9
    1
      ios/travis-ci/build-ipa.sh

+ 9
- 1
ios/travis-ci/build-ipa.sh Voir le fichier

@@ -152,4 +152,12 @@ xcodebuild -quiet -exportArchive -archivePath /tmp/jitsi-meet/jitsi-meet.xcarchi
152 152
 
153 153
 echo "Will try deploy the .ipa to: ${IPA_DEPLOY_LOCATION}"
154 154
 
155
-scp -i ${CERT_DIR}/id_rsa -o StrictHostKeyChecking=no -o LogLevel=DEBUG "${IPA_EXPORT_DIR}/jitsi-meet.ipa" "${IPA_DEPLOY_LOCATION}"
155
+ssh-add ${CERT_DIR}/id_rsa
156
+
157
+if [ ! -z ${SCP_PROXY_HOST} ];
158
+then
159
+    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}"
160
+else
161
+    scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG "${IPA_EXPORT_DIR}/jitsi-meet.ipa" "${IPA_DEPLOY_LOCATION}"
162
+fi
163
+

Chargement…
Annuler
Enregistrer