From bd860ee6d81d29d29318eae4a9e116cfacf96091 Mon Sep 17 00:00:00 2001 From: DavidoTek <54072917+DavidoTek@users.noreply.github.com> Date: Tue, 20 Jan 2026 22:04:09 +0100 Subject: [PATCH] Jenkinsfile: Generate studs and create artifact --- Jenkinsfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d0f16ca..9cf4991 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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." + } + } + } -- 2.56.1