Closed AssafKatz3 closed 1 year ago
Available updates is based off of an input plugins file and not based off of what is installed, it assumes you’re managing all plugins in that file
Available updates is based off of an input plugins file and not based off of what is installed, it assumes you’re managing all plugins in that file
Hi,
So I don't understand, how can (if any) I update all plugins to latest versions by this tool?
Thanks
This is the normal work flow: https://github.com/jenkinsci/docker#updating-plugins-file-preview
This is the normal work flow: https://github.com/jenkinsci/docker#updating-plugins-file-preview
Hi,
Unfortunately, I create docker image for offline so it won't help me, at least as is :-( I will check if I can use the bash command in dockerfile.
Thanks
This is the normal work flow: https://github.com/jenkinsci/docker#updating-plugins-file-preview
Hi,
I checked and /usr/share/jenkins/ref/plugins.txt isn't existed at all, the documentation is wrong :-(... Moreover I used:
jenkins-plugin-cli --plugins
ls /var/jenkins_home/plugins/*.jpi | xargs -I{} basename {} .jpi--available-updates
And still got "No available updates". Actually, I want to force upgrades of plugins that have been manually upgraded during the build, but the instructions in the link refer to case that I run the container, not build the image.
Thanks
Regardless of what's used for updating, this should be resolved. If another user installs a plugin via the UI, it won't be reflected in the cli, which affects using the cli to manage the instance via Infrastructure as Code or orchestration.
If you're managing it via infra as code why is someone installing plugins via the UI?
It also doesn't list plugins that are installed as dependencies of plugins that ARE installed via the CLI. For example "oic-auth" seems to install "JDK Tool Plugin" and "Oracle Java SE Development Kit Installer". The point is, its not in sync and makes it difficult to find dependencies. Installing a plugin via the cli that doesn't report its dependencies makes taking a diff impossible.
We finally found workaround (that I forgot to document here..)
Version report
Jenkins and plugins versions report:
Reproduction steps
jenkins-plugin-cli --available-updates
Results
Expected result:
Get a list of available updates like in GUI
Actual result:
No available updates