Skip to content

Commit

Permalink
chore(ci): add maven and nexus jobs to daily pipeline (#3872)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanavasileva authored Oct 27, 2023
1 parent 587e8bf commit dee1a96
Showing 1 changed file with 54 additions and 0 deletions.
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",
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

0 comments on commit dee1a96

Please sign in to comment.