Skip to content

Commit

Permalink
Auto update of WildFly Maven Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Nov 21, 2024
1 parent 1b09862 commit 452991f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
10 changes: 6 additions & 4 deletions wildfly-builder-image/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ envs:
value: org.wildfly.plugins
- name: PROVISIONING_MAVEN_PLUGIN_ARTIFACT_ID
value: wildfly-maven-plugin
- name: PROVISIONING_MAVEN_PLUGIN_VERSION
value: 5.0.1.Final
- name: DEFAULT_PROVISIONING_MAVEN_PLUGIN_VERSION
value: 5.0.0.Final
- name: PROVISIONING_MAVEN_PLUGIN_VERSION_EXCLUDES
value: .*-redhat-[0-9][0-9][0-9][0-9][0-9],.*\.Beta\d+,.*\.Alpha\d+
ports:
- value: 8080
modules:
Expand All @@ -46,8 +48,8 @@ modules:
ref: ubi9
- name: wildfly-cekit-modules
git:
url: https://github.com/wildfly/wildfly-cekit-modules
ref: main
url: https://github.com/jfdenise/wildfly-cekit-modules
ref: patch_wfmp_version2
- name: wildfly-modules
path: ../wildfly-modules
install:
Expand Down
20 changes: 19 additions & 1 deletion wildfly-builder-image/tests/features/legacy-s2i.feature
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,22 @@ Scenario: Test external driver created during s2i.
### PLACEHOLDER FOR CLOUD CUSTOM TESTING ###
Then container log should contain WFLYSRV0010: Deployed "App1.war"
Then container log should contain WFLYSRV0010: Deployed "App2.war"
Then container log should contain WFLYSRV0025
Then container log should contain WFLYSRV0025

Scenario: Test WildFly Maven Plugin version automatic update
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-binary with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | jaxrs-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:34.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.2.Final |
Then s2i build log should match regex wildfly-maven-plugin:.*\.Final:package
Then s2i build log should match regex Updated \$\{version.s2i.provisioning.maven.plugin\} from .*\.Final to .*\.Final
Then container log should contain WFLYSRV0025

Scenario: Test WildFly Maven Plugin version explicitly set
Given s2i build https://github.com/wildfly/wildfly-s2i from test/test-app-binary with env and True using legacy-s2i-images
| variable | value |
| GALLEON_PROVISION_LAYERS | jaxrs-server |
| GALLEON_PROVISION_FEATURE_PACKS | org.wildfly:wildfly-galleon-pack:34.0.0.Beta1, org.wildfly.cloud:wildfly-cloud-galleon-pack:7.0.2.Final |
| PROVISIONING_MAVEN_PLUGIN_VERSION | 5.0.0.Final |
Then s2i build log should contain wildfly-maven-plugin:5.0.0.Final:package
Then container log should contain WFLYSRV0025

0 comments on commit 452991f

Please sign in to comment.