File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/src/test/java/smoketest/ant Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 83
83
COMMERCIAL_SNAPSHOT_REPO_URL : ${{ inputs.commercial-snapshot-repository-url }}
84
84
run : |
85
85
echo "🔍 Running with debug logging to identify problematic targets..."
86
- node debug-nx-targets.js "NX_BATCH_MODE=true NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CLOUD_NO_TIMEOUTS=true NX_CLOUD_VERBOSE_LOGGING=true npx nx run-many -t build-ci --parallel=32 --batch --outputStyle=stream"
86
+ node debug-nx-targets.js "NX_BATCH_MODE=true NX_CLOUD_DEREFERENCE_SYMLINKS=true NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CLOUD_NO_TIMEOUTS=true NX_CLOUD_VERBOSE_LOGGING=true npx nx run spring-boot-smoke-test-ant:test --parallel=32 --batch --outputStyle=stream"
87
87
# - name: Publish
88
88
# id: publish
89
89
# if: ${{ inputs.publish == 'true' }}
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ launch-templates:
21
21
sudo apt install -y openjdk-17-jdk
22
22
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
23
23
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
24
+ ls -la /usr/lib/jvm/
25
+ ls -la /usr/lib/jvm/java-17-openjdk-amd64/bin/
26
+ which java
24
27
java -version
25
28
- name : Setup gradle
26
29
script : ./gradlew wrapper && ./gradlew --stop && ./gradlew clean
Original file line number Diff line number Diff line change @@ -47,16 +47,7 @@ void runJar() throws Exception {
47
47
}
48
48
49
49
private String findJavaExecutable () {
50
- // First try java.home system property
51
- String javaHome = System .getProperty ("java.home" );
52
- if (javaHome != null ) {
53
- File javaExecutable = new File (javaHome , "bin/java" );
54
- if (javaExecutable .exists () && javaExecutable .canExecute ()) {
55
- return javaExecutable .getAbsolutePath ();
56
- }
57
- }
58
-
59
- // Fallback to PATH
50
+ // Fallback to PATH first in CI environment
60
51
return "java" ;
61
52
}
62
53
You can’t perform that action at this time.
0 commit comments