Run `azd pipeline config --provider azdo` pipeline missing Java SDK
Describe the issue:
Test todo-java-mongo template. Run azd pipeline config --provider azdo, get error as follow:
Repro Steps:
- Login in with command:
azd auth login. - Execute command:
azd init -t todo-java-mongo -b staging. - Run
azd pipeline config --provider azdo.
Environment:
- Template: todo-java-mongo.
- OS: Windows, Mac, Codespace, Linux, DevContainer
- Azd version : 1.7.0-beta.1-daily.3582348 (commit https://github.com/Azure/azure-dev/commit/9a0cef9c79d83a5f3fe8cb8bc407a200139da62b)
Expected behavior:
Run azd pipeline config --provider azdo, pipeline log can pass.
@rajeshkamal5050 for notification.
@vhvb1989 can you triage this?
the pipeline definition uses:
- task: JavaToolInstaller@0
inputs:
versionSpec: '17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
By using jdkSourceOption: 'PreInstalled', it relies on JAVA SDK to be already pre-installed on the agent, which is the case for Microsoft-hosted agents (https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/java-tool-installer-v0?view=azure-pipelines#inputs)
It looks like the agent, in this case, doesn't have a pre-install JAVA sdk.
@v-jiaodi , can you show the output from JavaToolInstaller?:
Note: This is not azd or template's issue. This looks like an issue with the Azure DevOps instace configuration.
@vhvb1989 Output from JavaToolInstaller:
We also encountered the same problem in this manual test.
Environment:
- Template: todo-java-postgresql-terraform.
- OS: DevContainer
- Azd version: azd version 1.8.0-beta.1-daily.3649348 (commit https://github.com/Azure/azure-dev/commit/85f86be69c647f62cab6f5e42988d19df8bff03f)
@rajeshkamal5050 In the latest round of azd manual testing (1.9.2), this issue still exists.
- Templates+OS: todo-java-postgresql-terraform (Devcontainer), ASA-Samples-Event-Driven-Application (Devcontainer), todo-java-mongo (Codespace)
- Branch: staging
- Azd version: azd version 1.10.0-beta.1-daily.3792048 (commit 13a7dd52710daa4ac5f0c17be6a77244005ac76e)
@jongio For the full regression test of PR3976, this issue still exists.
- Templates: todo-java-mongo
- OS: Windows, Codespaces, Devcontainer, Linux, Mac
- Branch: staging and pr/3976
- Azd version:
azd version 1.10.0-beta.1-daily.3947259 (commit 5bf8568b1566723be8bc2259c578df4f931cf430)
@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.
- Templates+OS: todo-java-mogno(Cloud Shell and Codespaces), ASA-Samples-Event-Driven-Application (Devcontainer).
- Branch: staging.
- Azd version:
azd version 1.10.0-beta.1-daily.4086794 (commit 9445b193c91acfa2d4bcae129cb7471ecc101e11).
@jongio For the full regression test of PR4258, this issue still exists.
- Templates: todo-java-mongo
- OS: Windows, Codespaces, Devcontainer, Linux, Mac
- Branch: staging
- Azd version: azd version 1.11.0-beta.1-pr.4140256 (commit b6402defbf4c4210855e14c114988010e0a51ed7) and azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba7dcc5b3f7e883213a2315a8b275294def)
Does this repro in main?
@jongio Yes, this issue can also be reproduced in main. We tested the following four scenarios and they can all be reproduced:
- Templates: todo-java-mongo
- OS: Windows, Codespaces, Devcontainer, Linux, Mac
- Test Scenario:
- Templates under the
mainbranch + azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba7dcc5b3f7e883213a2315a8b275294def). - Templates under the
mainbranch + azd version 1.11.0-beta.1-pr.4140256 (commit b6402defbf4c4210855e14c114988010e0a51ed7). - Templates under the
stagingbranch + azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba7dcc5b3f7e883213a2315a8b275294def). - Templates under the
stagingbranch + azd version 1.11.0-beta.1-pr.4140256 (commit b6402defbf4c4210855e14c114988010e0a51ed7).
@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.
- Templates+OS: todo-java-mogno(Cloud Shell and Codespaces), ASA-Samples-Event-Driven-Application (Devcontainer).
- Branch: staging.
- Azd version: azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba7dcc5b3f7e883213a2315a8b275294def).
@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.
- Templates: todo-java-mogno.
- OS:
Cloud Shell,Codespaces. - Branch: Staging.
- Azd version: azd version 1.11.0-beta.1-daily.4247716 (commit https://github.com/Azure/azure-dev/commit/f4695c408eab9ea3cdedd1c3cb39aa01ad90123e).
@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.
- Templates:
todo-java-mogno. - OS:
Cloud Shell,Codespaces. - Branch: Staging.
- Azd version: azd version 1.12.0-beta.1-daily.4359062 (commit https://github.com/Azure/azure-dev/commit/6cd82ae9ff02e156a0056e994215191469442ab3).
It cannot be reproduced, I will close this issue.