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

JFrogToolsInstaller@1 : Error occurred while executing task: Failed while attempting to download JFrog CLI - 404 error #524

Open
Saba42V opened this issue Dec 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Saba42V
Copy link

Saba42V commented Dec 23, 2024

Describe the bug

We configured remote repo for downloading and caching V2 Jfrog CLI.

Below task was executed to download and got below reported error 404 due to task is looking for incorrect CLI tool name. We find this seems to be bug because the task is looking for "https://xxxxxx.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jf" instead it should look for "https://xxxxxx.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jfrog" as per "https://releases.jfrog.io/artifactory/jfrog-cli/v2/2.72.2/jfrog-cli-linux-amd64/"

- task: JFrogToolsInstaller@1
  inputs:
    artifactoryConnection: 'JFrog-Artifactory-V2'
    cliInstallationRepo: 'zip.remote.jfrog.cli.v2'
    installCustomVersion: true
    cliVersion: '2.72.3'

CI/CD error

Downloading: https://XXXX.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jf
##[error]Error occurred while executing task: Failed while attempting to download JFrog CLI from

https://xxxxxx.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jf

If the chosen Artifactory Service cannot access the internet, you may also manually download version 2.72.3 of JFrog CLI and place it on the agent in the following path: /opt/hostedtoolcache/_jf/current/jf
Error: Unexpected HTTP response: 404
Finishing: JFrogToolsInstaller

Hope you will fix this bug as soon as possible changing tool installer name form /jf to /jfrog in lookup URL as per "https://releases.jfrog.io/artifactory/jfrog-cli/v2/2.72.2/jfrog-cli-linux-amd64/"

Current behavior

Downloading: https://XXXX.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jf
##[error]Error occurred while executing task: Failed while attempting to download JFrog CLI from

https://xxxxxx.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/2.72.3/jfrog-cli-linux-amd64/jf

If the chosen Artifactory Service cannot access the internet, you may also manually download version 2.72.3 of JFrog CLI and place it on the agent in the following path: /opt/hostedtoolcache/_jf/current/jf
Error: Unexpected HTTP response: 404
Finishing: JFrogToolsInstaller

Reproduction steps

Run below tool installer task by creating remote repo(zip.remote.jfrog.cli.v2) with URL "https://releases.jfrog.io/artifactory/jfrog-cli/v2/"

  • task: JFrogToolsInstaller@1
    inputs:
    artifactoryConnection: 'JFrog-Artifactory-V2'
    cliInstallationRepo: 'zip.remote.jfrog.cli.v2'
    installCustomVersion: true
    cliVersion: '2.72.3'

Expected behavior

The tool installer task should look for downloading https://xxxxxx.jfrog.io/artifactory/zip.remote.jfrog.cli.v2/[version]/[ostype]/jfrog

Azure DevOps extension name and version

New JFrog Azure Devops Extension

JFrog CLI version

'2.72.3'

Operating system type and version

Ubuntu-latest

JFrog Artifactory version (if relevant)

No response

JFrog Xray version (if relevant)

No response

JFrog Distribution version (if relevant)

No response

@Saba42V Saba42V added the bug Something isn't working label Dec 23, 2024
@Saba42V
Copy link
Author

Saba42V commented Dec 23, 2024

Updating Jfrog remote repo(zip.remote.jfrog.cli.v2) with URL from "https://releases.jfrog.io/artifactory/jfrog-cli/v2/" to https://releases.jfrog.io/artifactory/jfrog-cli/v2-jf/ is fixing the issue.

However, want to check is this how it is expected usage as we are loosing to use CLI cmd jfrog and we have to use jf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant