Uploaded image for project: 'TFS Artifactory Plugin'
  1. TFS Artifactory Plugin
  2. TFSAP-9

JFrog Artifactory Deployer Task v2.1.1 does not follow redirects and crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 3 - High
    • Resolution: Unresolved
    • Labels:
    • Environment:

      Artifactory 6.0.x

      TFS 2017.3

       

    • Regression:
      Yes

      Description

      The Visual Studio JFrog Artifactory Integration version 1.2.0 is no longer working in our TFS 2017.3 plaform, since there is a bug in the JFrog Artifactory Deployer Task (version 2.1.1)

       

      Indeed in file ArtifactoryDeploy.ps1 line 79 to 81, there is a download from bintray in order to get the JFrog Cli:

       

      Write-Host "Downloading the JFrog cli from Bintray"
       $source = "https://api.bintray.com/content/jfrog/jfrog-cli-go/1.4.1/jfrog-cli-windows-amd64/jfrog.exe;bt_package=jfrog-cli-windows-amd64"
        $artifactoryCliPath = "$env:SYSTEM_ARTIFACTSDIRECTORY" + "\jfrog.exe"
        Invoke-WebRequest $source -OutFile $artifactoryCliPath
      

       

       

      The provided url returns a 302 redirect which is not handled by Powershell’s Invoke-webrequest

      As a consequence, it is impossible for our projects to build (except by providing a local version of the cli, which in really unpractical)

       

      Could you filx this and make sure that the JFrog Artifactory Deployer Task properly handles redirects please?

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            PatG Patrice GODARD
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: