File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
artifacts/opt/jboss/container/java/jlink
s2i/bash/artifacts/usr/local/s2i Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change
1
+ jlink_techpreview_warning ()
2
+ {
3
+ {
4
+ echo " WARNING WARNING WARNING"
5
+ echo " Jlink integration is a Tech Preview feature!"
6
+ echo " See <https://access.redhat.com/support/offerings/techpreview/>"
7
+ echo " for more information."
8
+ echo " WARNING WARNING WARNING"
9
+ } >&2
10
+ }
11
+
1
12
jlink_preflight_check ()
2
13
{
3
14
# preflight check: do we have what we need?
Original file line number Diff line number Diff line change 1
1
@ubi9/openjdk-17
2
2
@ubi9/openjdk-21
3
3
Feature : Openshift OpenJDK S2I tests (jlink specific )
4
- Scenario : Ensure jlinked builder is used to build the containerized application image
5
- Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
4
+
5
+ Scenario : tech preview warning is printed (OPENJDK-3038)
6
+ Given failing s2i build https://github.com/jboss-container-images/openjdk-test-applications from spring-boot-sample-simple/target using master
6
7
| variable | value |
7
8
| S2I_ENABLE_JLINK | true |
8
- | QUARKUS_PACKAGE_TYPE | uber -jar |
9
- Then run ls /tmp/jre in container and check its output for bin
9
+ Then s2i build log should contain Jlink integration is a Tech Preview feature
10
10
11
11
Scenario : Ensure S2I_ENABLE_JLINK is not set to true
12
12
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ setup_java_app_and_lib
22
22
if [ " $S2I_ENABLE_JLINK " = " true" ]; then
23
23
24
24
source " ${JBOSS_CONTAINER_JAVA_JLINK_MODULE} /preflight.sh"
25
+ jlink_techpreview_warning
25
26
jlink_preflight_check
26
27
27
28
source " ${JBOSS_CONTAINER_JAVA_JLINK_MODULE} /mkdeps.sh"
You can’t perform that action at this time.
0 commit comments