From 8808fbc1dcb944a3af30434ceea3be3406be637e Mon Sep 17 00:00:00 2001 From: cloudant-sdks-automation <71659186+cloudant-sdks-automation@users.noreply.github.com> Date: Wed, 28 Oct 2026 10:05:26 +0000 Subject: [PATCH] ci(generated): separation of build phases Generated SDK source code using: - Generator version 3.117.2 - Specification version 1.0.0-dev0.1.39 - Automation (cloudant-sdks) version ee52c7b --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 877033679..24e4d4934 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,6 +34,13 @@ pipeline { } } } + + stage('Build') { + steps { + buildSdk() + } + } + stage('QA') { steps { withEnv(['DOCKER_HOST=', @@ -89,6 +96,12 @@ pipeline { } } + stage('Package') { + steps { + packageArtifacts() + } + } + stage('Publish[staging]') { when { not { @@ -309,7 +322,9 @@ void defaultInit() { // Language specific implementations of the methods: // applyCustomizations() +// buildSdk() // runTests() +// packageArtifacts() // publishStaging() // publishPublic() // publishDocs() @@ -339,11 +354,19 @@ void applyCustomizations() { } } +void buildSdk() { + sh 'mvn install --settings build/jenkins.settings.xml -DskipTests -DskipITs -Dmaven.javadoc.skip=true' +} + void runTests() { // Allow tests to run classes in parallel sh 'mvn verify -DperCoreThreadCount=false -DthreadCount=2 -Dparallel=classes --settings build/jenkins.settings.xml' } +void packageArtifacts() { + sh 'mvn install -DskipTests -DskipITs --settings build/jenkins.settings.xml' +} + void publishStaging() { publishMaven('-P staging') }