Chocolatey - not able to find package from Artifactory
15:44 29 May 2019

I am trying to install package using Chocolatey, and I am stuck at getting the package from artifactory.

I confirmed that my.package.1.0.0.nupkg is available in the URL: https://www.myarti.com/artifactory/packages

The artifactory requires 'access' For example below, username "u1" with correct password "pwd" has access, but "u2" doesn't have access to repo

I tried below choco commands, but no luck yet. You help would be much appreciated!

  1. choco upgrade my.package --version 1.0.0 --source=https://www.myarti.com/artifactory/packages --pre -u u1 -p pwd

    gives error:

    The package was not found with the source listed

  2. choco upgrade my.package --version 1.0.0 --source=https://www.myarti.com/artifactory/packages --pre -u u1 -p wrongpwd

    gives error:

    [NuGet] The remote server returned an error: (403) Forbidden

  3. choco upgrade my.package --version 1.0.0 --source=https://www.myarti.com/artifactory/packages --pre -u u2 -p wrongpwd

    gives error:

    Invalid credentials specified

nuget artifactory chocolatey