Created
July 27, 2018 06:37
-
-
Save tuzaiz/768bfbee3e97d7ef51779feb44daf4cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pipeline { | |
agent any | |
stages { | |
stage('Checkout/Build/Test') { | |
steps { | |
checkout([ | |
$class: 'GitSCM', | |
branches: [[name: 'develop']], | |
doGenerateSubmoduleConfigurations: false, | |
extensions: [], submoduleCfg: [], | |
userRemoteConfigs: [[ | |
name: 'github', | |
url: 'https://github.com/Gogolook-Inc/Mynah_iOS.git' | |
]] | |
]) | |
sh 'pod repo update' | |
sh 'pod install' | |
} | |
} | |
stage("Build/Test") { | |
steps { | |
sh 'xcodebuild -workspace "Mynah.xcworkspace" -scheme "Mynah" -configuration "Debug" build test -destination "platform=iOS Simulator,name=iPhone 8,OS=11.3" -enableCodeCoverage YES -derivedDataPath ~/Build | /usr/local/bin/xcpretty -r junit' | |
step([ | |
$class: 'JUnitResultArchiver', | |
allowEmptyResults: true, | |
testResults: 'build/reports/junit.xml' | |
]) | |
} | |
} | |
stage('BetaBuild/Publish') { | |
steps { | |
sh 'xcodebuild -workspace "Mynah.xcworkspace" -scheme "Mynah Dev" -archivePath "build/Mynah-Dev.xcarchive" archive' | |
sh 'xcodebuild -exportArchive -exportOptionsPlist "ExportOptions.plist" -archivePath "build/Mynah-Dev.xcarchive" -exportPath "build/export"' | |
// hockeyApp applications: [[apiToken: 'b7894e4d14384ab49ee046db9d88b63b', downloadAllowed: true, filePath: 'build/export/Mynah-Dev.ipa', mandatory: false, notifyTeam: false, releaseNotesMethod: changelog(), uploadMethod: appCreation(false)]], debugMode: false, failGracefully: false | |
} | |
// post { | |
// success { | |
// slackSend baseUrl: 'https://gogolook.slack.com/services/hooks/jenkins-ci/', channel: '#mynah_ios', color: 'good', message: 'Upload Success', teamDomain: 'gogolook.slack.com', token: 'jqZHmd7gZB1o41VW9yGiaCVA' | |
// } | |
// failure { | |
// } | |
// } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment