jufab / jenkins-x-chocolatey Goto Github PK
View Code? Open in Web Editor NEWChocolatey package for Jenkins-x
Home Page: https://chocolatey.org/packages/jenkins-x
License: MIT License
Chocolatey package for Jenkins-x
Home Page: https://chocolatey.org/packages/jenkins-x
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.