-
Notifications
You must be signed in to change notification settings - Fork 1
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
Package can't be internalized #1
Comments
Hi Mohamed, I received your mail and thanks for your return on C4B I prefer to stay with the version number and not with the latest. Because when you want to install a specific version you don't want the latest... I tried a new approach for the version number. See at the next publication if this bugfix works ... |
@2Deep2Dive The latest version have the modification (2.1.129) is it working? |
Hi Julien, Sorry for the very long delay, life was not easy with Corona jenkins-x v2.1.155 (forced) [Approved] hopefully this will help and you will manage to find a solution to this issue stay safe and stay healthy Cheers, |
Hi,
When attempting to internalize the jenkins-x package I get the following error
Found internalizable Chocolatey functions. Inspecting values for remote resources.
Found 'https://github.com/jenkins-x/jx/releases/download/v$env:ChocolateyPackageVersion/jx-windows-amd64.zip' for replacement.
Found 'https://github.com/jenkins-x/jx/releases/download/v$env:ChocolateyPackageVersion/jx-checksums.txt' for replacement.
Encountered error downloading package jenkins-x v:
System.Exception: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://github.com/jenkins-x/jx/releases/download/v$env:
The remote server returned an error: (404) Not Found.
the error is caused because "$env:ChocolateyPackageVersion" is used to set the version in the path but the variable is only assigned the value when installing the app and not when downloading it
the following approach will solve the issue
$latestRelease = Invoke-WebRequest https://github.com/jenkins-x/jx/releases/latest -Headers @{"Accept"="application/json"}
$json = $latestRelease.Content | ConvertFrom-Json
$version = $json.tag_name
regards,
Mohamed
The text was updated successfully, but these errors were encountered: