Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run azd pipeline config --provider azdo pipeline missing Java SDK #3520

Open
v-jiaodi opened this issue Mar 12, 2024 · 9 comments
Open

Run azd pipeline config --provider azdo pipeline missing Java SDK #3520

v-jiaodi opened this issue Mar 12, 2024 · 9 comments
Assignees
Labels
azdo Azure DevOps pipelines
Milestone

Comments

@v-jiaodi
Copy link
Member

v-jiaodi commented Mar 12, 2024

Describe the issue:
Test todo-java-mongo template. Run azd pipeline config --provider azdo, get error as follow:
image

Repro Steps:

  1. Login in with command: azd auth login.
  2. Execute command: azd init -t todo-java-mongo -b staging.
  3. 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 9a0cef9)

Expected behavior:
Run azd pipeline config --provider azdo, pipeline log can pass.

@rajeshkamal5050 for notification.

@rajeshkamal5050
Copy link
Contributor

@vhvb1989 can you triage this?

@vhvb1989
Copy link
Member

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?:

image

Note:
This is not azd or template's issue. This looks like an issue with the Azure DevOps instace configuration.

@rajeshkamal5050 rajeshkamal5050 modified the milestones: March 2024, Backlog Mar 12, 2024
@v-jiaodi
Copy link
Member Author

@vhvb1989 Output from JavaToolInstaller:
image

@zhangjiale-64
Copy link

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 85f86be)

@v-xuto
Copy link
Member

v-xuto commented May 16, 2024

@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 13a7dd5)

@Menghua1
Copy link
Member

Menghua1 commented Jul 11, 2024

@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)

@Menghua1
Copy link
Member

@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).

@Menghua1
Copy link
Member

Menghua1 commented Sep 19, 2024

@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 b6402de) and azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba)

@jongio
Copy link
Member

jongio commented Sep 20, 2024

Does this repro in main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azdo Azure DevOps pipelines
Projects
None yet
Development

No branches or pull requests

7 participants