diff --git a/.github/workflows/agent-e2e.yml b/.github/workflows/agent-e2e.yml index e818db1dd..de3b642ce 100644 --- a/.github/workflows/agent-e2e.yml +++ b/.github/workflows/agent-e2e.yml @@ -72,11 +72,17 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + # Two JDKs: the Conductor server needs Java 25 (3.34.0-rc3 onwards are class + # file version 69), but this repo's Gradle 8.14.3 cannot run on 25. 21 is + # listed last so it stays the default JAVA_HOME for the Gradle build; + # "Start server" runs the JAR with JAVA_HOME_25_X64. - name: Set up Java uses: actions/setup-java@v4 with: distribution: temurin - java-version: '21' + java-version: | + 25 + 21 # Python is only needed for mcp-testkit and the XML guard. # No `cache: pip` — it hard-fails without a requirements file. @@ -110,7 +116,7 @@ jobs: - name: Start server run: | - java -jar conductor-server.jar --server.port=8080 > server.log 2>&1 & + "$JAVA_HOME_25_X64/bin/java" -jar conductor-server.jar --server.port=8080 > server.log 2>&1 & - name: Wait for server health run: |