Skip to content

Commit

Permalink
chore(ci): introduce declarative pod specs for webapp stages (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
mboskamp authored Sep 18, 2024
1 parent 79ff55d commit b22d963
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 55 deletions.
9 changes: 3 additions & 6 deletions .ci/config/matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ sidetrack-stages:
- 'rolling-update'
jdk-ce-stages:
stages:
- 'platform-jdk-openjdk-jdk-21-latest'
- 'platform-jdk-openjdk-jdk-17-latest'
- 'platform-jdk-openjdk-jdk-11-latest'
- 'platform-jdk-jdk-21-latest'
- 'platform-jdk-jdk-17-latest'
- 'platform-jdk-jdk-11-latest'
- 'platform-jdk-temurin-jdk-21-latest'
- 'platform-jdk-temurin-jdk-17-latest'
- 'platform-jdk-temurin-jdk-11-latest'
60 changes: 15 additions & 45 deletions .ci/config/stage-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,60 +130,27 @@ engine-rest-jakarta-unit-compatibility-wildfly:
- 'rest-api'
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-17-latest'
platform-jdk-openjdk-jdk-17-latest:
platform-jdk-temurin-jdk-17-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-17-latest'
withNpm: true
platform-jdk-openjdk-jdk-21-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-21-latest'
withNpm: true
platform-jdk-openjdk-jdk-11-latest:
directory: '.'
command: 'install source:jar source:test-jar
-pl ''!spring-boot-starter,!spring-boot-starter/starter,!spring-boot-starter/starter-client/spring,!spring-boot-starter/starter-client/spring-boot,
!spring-boot-starter/starter-qa,!spring-boot-starter/starter-rest,!spring-boot-starter/starter-test,!spring-boot-starter/starter-webapp,!spring-boot-starter/starter-security,
!spring-boot-starter/starter-webapp-core,
!spring-boot-starter/starter-qa/integration-test-liquibase,!spring-boot-starter/starter-qa/integration-test-plugins,
!spring-boot-starter/starter-qa/integration-test-plugins/spin,!spring-boot-starter/starter-qa/integration-test-plugins/spin/spin-dataformat-all,
!spring-boot-starter/starter-qa/integration-test-plugins/spin/spin-dataformat-json-jackson,
!spring-boot-starter/starter-qa/integration-test-request-scope,!spring-boot-starter/starter-qa/integration-test-simple,
!spring-boot-starter/starter-qa/integration-test-webapp,!spring-boot-starter/starter-qa/integration-test-webapp/invoice-example,
!spring-boot-starter/starter-qa/integration-test-webapp/runtime,
!distro/run,!distro/run/assembly,!distro/run/core,!distro/run/distro,!distro/run/modules,!distro/run/modules/example,
!distro/run/modules/rest,!distro/run/modules/webapps,!distro/run/modules/oauth2,!distro/run/qa,!distro/run/qa/integration-tests,
!distro/run/qa/runtime,!distro/run/qa/example-plugin''
-Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-11-latest'
withNpm: true
platform-jdk-jdk-17-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'jdk-17-latest'
withNpm: true
platform-jdk-jdk-21-latest:
podSpec:
cpu: 4
image: 'maven:3.9.7-eclipse-temurin-17'
platform-jdk-temurin-jdk-21-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'jdk-21-latest'
withNpm: true
platform-jdk-jdk-11-latest:
jdkVersion: 'jdk-21-latest'
podSpec:
cpu: 4
image: 'maven:3.9.7-eclipse-temurin-21'
platform-jdk-temurin-jdk-11-latest:
directory: '.'
command: 'install source:jar source:test-jar
-pl ''!spring-boot-starter,!spring-boot-starter/starter,!spring-boot-starter/starter-client/spring,!spring-boot-starter/starter-client/spring-boot,
Expand All @@ -201,6 +168,9 @@ platform-jdk-jdk-11-latest:
-Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'jdk-11-latest'
withNpm: true
jdkVersion: 'jdk-11-latest'
podSpec:
cpu: 4
image: 'maven:3.9.7-eclipse-temurin-11'

5 changes: 4 additions & 1 deletion .ci/daily/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ pipeline {
}
steps {
cambpmConditionalRetry([
agentLabel : 'centos-stable',
podSpec: [
cpu: 4,
image: 'maven:3.9.7-eclipse-temurin-11'
],
runSteps : {
cambpmRunMaven('./engine-rest',
"package -Dmaven.test.skip -pl '!engine-rest,!assembly'",
Expand Down
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ pipeline {
}
steps {
cambpmConditionalRetry([
agentLabel: 'h2_perf32',
podSpec: [
cpu: 32,
image: 'maven:3.9.7-eclipse-temurin-17'
],
suppressErrors: false,
runSteps: {
sh(label: 'GIT: Mark current directory as safe', script: "git config --global --add safe.directory \$PWD")
skipTests = ""
if (env.CHANGE_ID != null && pullRequest.labels.contains('ci:skipTests')) {
skipTests = "-DskipTests "
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
<version.jakarta-ee-spec>10.0.0</version.jakarta-ee-spec>

<version.eirslett.frontend.maven.plugin>1.12.1</version.eirslett.frontend.maven.plugin>
<version.nodejs>17.9.1</version.nodejs>
<version.npm>8.11.0</version.npm>
<version.nodejs>20.14.0</version.nodejs>
<version.npm>10.7.0</version.npm>

<!-- OSGi bundles properties -->
<camunda.artifact />
Expand Down

0 comments on commit b22d963

Please sign in to comment.