tmpPath = $1 username = $2 accessKey = $3 ... echo 'Zipping app' zip -r "myApp.zip" " $tmpPath " > /dev/null echo 'List files created' ls -l echo 'Display current md5 hash.' Then I archive the app and check its md5 hash: after uploading it SauceLabs return hash of your zip file too, that’s an easy way to check integrity. Inspired by other script build phases as crash reporters, this code execute your shell script written above and giving in parameter your freshly built app and your SauceLabs credentials.