From dee1a9607088bb3bfe1d7b51d1638cd13914288b Mon Sep 17 00:00:00 2001 From: yanavasileva Date: Fri, 27 Oct 2023 10:28:26 +0200 Subject: [PATCH] chore(ci): add maven and nexus jobs to daily pipeline (#3872) camunda/camunda-bpm-platform#3873 --- .ci/daily/Jenkinsfile | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.ci/daily/Jenkinsfile b/.ci/daily/Jenkinsfile index 39992e13cdb..ad91e1094bf 100644 --- a/.ci/daily/Jenkinsfile +++ b/.ci/daily/Jenkinsfile @@ -147,6 +147,60 @@ pipeline { } } } + stage('platform-DISTRO-maven-central') { + when { + expression { + // trigger stage only on the master branch + env.BRANCH_NAME == cambpmDefaultBranch() && cambpmIsDevelopmentVersion() + } + } + steps { + cambpmConditionalRetry([ + agentLabel: 'h2_perf32', + runSteps: { + cambpmRunMaven('.', + "deploy source:jar source:test-jar javadoc:javadoc -Dskip-zip-frontend-sources=true -DaltStagingDirectory=${WORKSPACE}/staging -DskipRemoteStaging=true -B", + withNpm: true, + jdkVersion: 'jdk-17-latest') + script { + str = 's@:camunda-nexus:.*\\\$@:central:https://oss.sonatype.org/content/repositories/snapshots@g' + sh(label: 'Change staging from Nexus to Maven Central snapshots', script: 'sed -i ' + str + ' staging/deferred/.index') + } + + cambpmRunMaven('.', + "org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=${WORKSPACE}/staging -DskipStaging=true -B", + withNpm: true, + jdkVersion: 'jdk-17-latest') + }, + postFailure: { + cambpmPublishTestResult() + } + ]) + } + } + stage('platform-public-nexus') { + when { + expression { + // trigger stage only on the master branch + env.BRANCH_NAME == cambpmDefaultBranch() && cambpmIsDevelopmentVersion() + } + } + steps { + cambpmConditionalRetry([ + agentLabel: 'h2_perf32', + runSteps: { + cambpmRunMaven('.', + "install source:jar -Pdistro,distro-ce,distro-wildfly,distro-webjar -B", + withNpm: true, + jdkVersion: 'jdk-17-latest', + settingsXml: 'public-repo') + }, + postFailure: { + cambpmPublishTestResult() + } + ]) + } + } } } stage('Standalone QA tests') {