Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add maven and nexus jobs to daily pipeline #3872

Merged
merged 13 commits into from
Oct 27, 2023
54 changes: 54 additions & 0 deletions .ci/daily/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a space too much between true and -B but that was also the case in the original job.
Just cosmetics

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') {
Expand Down