ci: add signed iOS release pipeline
This commit is contained in:
58
Jenkinsfile.release
Normal file
58
Jenkinsfile.release
Normal file
@@ -0,0 +1,58 @@
|
||||
pipeline {
|
||||
agent { label 'um-trace' }
|
||||
|
||||
parameters {
|
||||
string(
|
||||
name: 'IOS_BUILD_NUMBER',
|
||||
defaultValue: '2',
|
||||
description: 'Positive, monotonically increasing App Store build number.'
|
||||
)
|
||||
}
|
||||
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
disableConcurrentBuilds()
|
||||
timeout(time: 60, unit: 'MINUTES')
|
||||
}
|
||||
|
||||
environment {
|
||||
DEVELOPER_DIR = '/Applications/Xcode.app/Contents/Developer'
|
||||
DOTNET_ROOT = '/Users/brent/.dotnet'
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT = '1'
|
||||
DOTNET_NOLOGO = '1'
|
||||
NUGET_XMLDOC_MODE = 'skip'
|
||||
PATH = "/Users/brent/.dotnet:/opt/homebrew/bin:${env.PATH}"
|
||||
UM_TRACE_CODESIGN_KEY = 'Apple Distribution: Underground Magnetics, Inc. (W2N8APPQ2C)'
|
||||
UM_TRACE_CODESIGN_PROVISION = 'UM Trace App Store'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Toolchain and Signing') {
|
||||
steps {
|
||||
sh './scripts/ci/verify-macos-agent.sh'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Tests') {
|
||||
steps {
|
||||
sh './scripts/ci/test.sh'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Signed iOS IPA') {
|
||||
steps {
|
||||
sh './scripts/ci/build-ios-signed.sh "$IOS_BUILD_NUMBER"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts(
|
||||
artifacts: 'artifacts/ios-signed/**/*',
|
||||
allowEmptyArchive: true,
|
||||
fingerprint: true
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user