Giter Club home page Giter Club logo

Comments (6)

daniel-beck avatar daniel-beck commented on August 12, 2024 1

Tiered update sites are used to provide plugin releases compatible with the user-specified core version; there is no reason for anyone to ever access the current/ update site in an installation/deployment scenario. The correct URL for that is always /update-center[.actual].json?version=2.xxx[.y].

Besides that, I don't know enough about how this component works to contribute to this conversation.

from plugin-installation-manager-tool.

timja avatar timja commented on August 12, 2024 1

you should just always use the update site directly (https://updates.jenkins.io)
We don't direct update site json files to mirrors at all, (even though the mirror's do have the files)

from plugin-installation-manager-tool.

timja avatar timja commented on August 12, 2024

similar to #169

valid requirement and it's a bug.

from plugin-installation-manager-tool.

timja avatar timja commented on August 12, 2024

Hmm this already seems to work?

wget https://get.jenkins.io/war/2.252/jenkins.war
java -jar plugin-management-cli/target/jenkins-plugin-manager-*.jar --plugins workflow-basic-steps  --war jenkins.war -d plugins

Downloading plugin workflow-basic-steps from url: https://updates.jenkins.io/download/plugins/workflow-basic-steps/2.22/workflow-basic-steps.hpi

Basically we use what's called an update site tier (which includes your core version):

curl --location --silent --fail https://updates.jenkins.io/update-center.actual.json?version=2.252 | jq --raw-output '.plugins["workflow-basic-steps"].version'
2.22
$ curl --location --silent --fail https://updates.jenkins.io/update-center.actual.json?version=2.268 | jq --raw-output '.plugins["workflow-basic-steps"].version'
2.23

See more in the update center docs:
https://updates.jenkins.io/#version-specific-update-sites
and
https://github.com/jenkins-infra/update-center2/tree/master/site#dynamic-update-site-tiers

Is this exactly the issue that you hit, or theoretical in some way?

@daniel-beck in case I missed something

from plugin-installation-manager-tool.

timja avatar timja commented on August 12, 2024

the component doesn't current it uses the tiered update sites.

from plugin-installation-manager-tool.

v1v avatar v1v commented on August 12, 2024

Aha! I see now, thanks for the clarification since I used the current/ update site from one of the mirrors, and it works now by using the default setup:

Although if I use http://mirror.xmission.com/jenkins/updates/update-center.json the issue still persists, so maybe there is something wrong with that particular mirror, while if I use http://mirror.xmission.com/jenkins/updates/stable/update-center.actual.jsonit works.

Other than that, thanks again and sorry for the false alarm.

from plugin-installation-manager-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.