This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IApp app = ConfigureApp | |
.iOS | |
.EnableLocalScreenshots() | |
.InstalledApp("com.example.yourappbundleid") | |
.DeviceIp("192.168.1.1") | |
.StartApp(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IApp app = ConfigureApp | |
.iOS | |
.EnableLocalScreenshots() | |
.DeviceIdentifier("E67C54DA-17B2-4EBC-AA08-FBF3FB571243") // iPhone 6, 8.1 | |
.AppBundle(PathToIPA) | |
.StartApp(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/sh | |
# By Anonymous user on Stack Overflow | |
# Freely translated from https://nicolasgoles.com/blog/2011/08/continuous-integration-with-jenkins/ | |
function fail { | |
echo "$*" >&2 | |
exit 1 | |
} | |
function section_print { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function section_print { | |
echo "\n=== $* ===" | |
} | |
# Parameter passed from the upstream job that built the iOS app | |
cd "$UPSTREAM_WORKSPACE" | |
for file in "*.ipa" | |
do | |
IPA_FILE=`echo $file` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on http://stackoverflow.com/questions/11823826/get-access-to-build-changelog-in-jenkins | |
# Get changelog and format it properly | |
CHANGELOG=$(curl "http://localhost:8080/job/MyProject/$UPSTREAM_BUILD_NUMBER/api/xml?wrapper=changes&xpath=//changeSet//comment" | sed -e "s/<\/comment>//g; s/<comment>/* /g; s/<\/*changes>//g" | sed '/^$/d;G') | |
# Write result to properties file | |
echo CHANGELOG=$CHANGELOG > build.properties |