Skip to content

Commit

Permalink
chore(ci): skipTests and distro labels (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanavasileva authored May 15, 2024
1 parent 875fce7 commit 3f6cb30
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pipeline {
stage('ASSEMBLY') {
when {
expression {
env.BRANCH_NAME == cambpmDefaultBranch() || (changeRequest() && !pullRequest.labels.contains('ci:no-build'))
env.BRANCH_NAME == cambpmDefaultBranch() || (env.CHANGE_ID != null && !pullRequest.labels.contains('ci:no-build'))
}
}
environment {
Expand All @@ -39,6 +39,10 @@ pipeline {
agentLabel: 'h2_perf32',
suppressErrors: false,
runSteps: {
skipTests = ""
if (env.CHANGE_ID != null && pullRequest.labels.contains('ci:skipTests')) {
skipTests = "-DskipTests "
}
withVault([vaultSecrets: [
[
path : 'secret/products/cambpm/ci/xlts.dev',
Expand All @@ -47,7 +51,7 @@ pipeline {
[envVar: 'XLTS_AUTH_TOKEN', vaultKey: 'authToken']]
]]]) {
cambpmRunMaven('.',
'clean source:jar deploy source:test-jar com.mycila:license-maven-plugin:check -Pdistro,distro-ce,distro-wildfly,distro-webjar,h2-in-memory -DaltStagingDirectory=${WORKSPACE}/staging -DskipRemoteStaging=true ',
'clean source:jar deploy source:test-jar com.mycila:license-maven-plugin:check -Pdistro,distro-ce,distro-wildfly,distro-webjar,h2-in-memory -DaltStagingDirectory=${WORKSPACE}/staging -DskipRemoteStaging=true '+ skipTests,
withCatch: false,
withNpm: true,
// we use JDK 17 to build the artifacts, as it is required for supporting Spring Boot 3
Expand All @@ -65,6 +69,11 @@ pipeline {
'.m2/org/camunda/**/*-SNAPSHOT/**/camunda-engine-rest*.war',
'.m2/org/camunda/**/*-SNAPSHOT/**/camunda-example-invoice*.war',
'.m2/org/camunda/**/*-SNAPSHOT/**/camunda-bpm-run-modules-swaggerui-*-run-swaggerui-license-book-json.json')
if (env.CHANGE_ID != null && pullRequest.labels.contains('ci:distro')) {
cambpmArchiveArtifacts(
'.m2/org/camunda/**/*-SNAPSHOT/**/camunda-bpm-*.zip',
'.m2/org/camunda/**/*-SNAPSHOT/**/camunda-bpm-*.tar.gz')
}

cambpmStash("platform-stash-runtime",
".m2/org/camunda/**/*-SNAPSHOT/**",
Expand Down

0 comments on commit 3f6cb30

Please sign in to comment.