Plugin download issues

Hi Team,

We are unable to download the plugin `buildtriggerbadge` from the [341.vcd7e3b_7e7612/](https://get.jenkins.io/plugins/buildtriggerbadge/341.vcd7e3b_7e7612/buildtriggerbadge.hpi).

Explanation:

  • We install Jenkins in the respective environment by download LTS jenkins.war and respective plugins
  • Due to network restrictions, we cannot directly install Jenkins on the VM.
  • We prepare the bundle and install the same on the Jenkins machine (Linux VM).
  • For the LTS version `2.528.3`, we are able to download the war.
  • But for the respective plugin download, it is failing to download the `buildtriggerbadge` because of the update-center.json is pointing to wrong version.
  • There is no `341` version for the `buildtriggerbadge` plugin. The correct version is `325`
  • URL used for the update-center.json is

Thanks ~ Senthil

Probably the same as this Documentation for oracle-cloud-infrastructure-compute-plugin is not updating - 1.0.19 · Issue #4976 · jenkins-infra/helpdesk · GitHub

Thanks, I tweaked my logic to look for the current and previous versions.

If the current version is unable to download, then it will download the previous version.

buildtriggerbadge | 341.vcd7e3b_7e7612 | https://updates.jenkins.io/download/plugins/buildtriggerbadge/341.vcd7e3b_7e7612/buildtriggerbadge.hpi
buildtriggerbadge | 325.vdcd8a_826e87a_ | https://updates.jenkins.io/download/plugins/buildtriggerbadge/325.vdcd8a_826e87a_/buildtriggerbadge.hpi

thanks

Senthil