Skip to content

Commit

Permalink
[ci] Ensure webapp directories exist for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Dec 19, 2024
1 parent bb2f1d2 commit bc2e6f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ci/Ios.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ pipeline {
}
steps {
script {
stubClientDirectory()
generateXCodeProjects()
generateCalendarProject()
dir('app-ios') {
sh 'fastlane test'
}
Expand Down Expand Up @@ -157,7 +155,7 @@ pipeline {
} // stages
} // pipeline

def stubClientDirectory() {
def ensureWebappDirectories() {
script {
sh "pwd"
sh "echo $PATH"
Expand Down Expand Up @@ -188,15 +186,15 @@ def generateXCodeProject(String projectPath, String spec) {

// Runs xcodegen on all of our project specs
def generateXCodeProjects() {
ensureWebappDirectories()
generateXCodeProject("app-ios", "mail-project")
// We don't technically need the calendar project but some Xcode tools are slightly upset if they don't find all
// projects referenced from a workspace.
sh 'mkdir -p build-calendar-app'
generateXCodeProject("app-ios", "calendar-project")
generateXCodeProject("tuta-sdk/ios", "project")
}

def generateCalendarProject() {
generateXCodeProject("app-ios", "calendar-project")
}

def uploadToNexus(String artifactId, String assetFileName, String fileExtension) {
def util = load "ci/jenkins-lib/util.groovy"
util.publishToNexus(
Expand Down

0 comments on commit bc2e6f9

Please sign in to comment.