WIP: Build API clients from Jenkinsfile #8

Draft
munstein wants to merge 1 commits from jenkins-api-client-artifact into main
Vendored
+16
View File
@@ -32,5 +32,21 @@ node('built-in') {
}
}
// generate Swift/Kotlin API clients and provide artifact for download
stage('Generate API Clients') {
if (env.BRANCH_NAME == "deploy") {
sh 'mkdir -p app'
sh '''
chmod +x generateStuds.sh
./generateStuds.sh
'''
archiveArtifacts artifacts: 'app/**', allowEmptyArchive: false
} else {
echo "Skipping API client generation for non-deploy branch."
}
}
}