Not to take away from @vaporwave_sailor or @Alex, answers, but to add to..
The basic answer is you MUST upgrade the war first, then the plugins. All plugins depend on a minimum Jenkins version and the Update Centre will give you different information back.
If you don't upgrade often, use the LTS version. READ the Upgrade Guide. READ the Changelog. Re-READ ...
I've gained some experience from f-n up Jenkins a lot of times, here is order I kept sticking to and it saved me a lot of time:
Upgrade Jenkins itself (if needed)
Upgrade Auth plugins (i.e. Github org auth)
Upgrade plugins related to most important pipelines/projects (ssh-agents, ansible, k8s, docker, whatever you guys are using)
Upgrade currently used but ...
I can only speak from personal experience rather than best practices, but in our company we'll make a duplicate jenkins instance, then upgrade that. We do main upgrade first, then plugins second, then run testing to make sure our core jobs still work. If all is good, we'll then upgrade the real jenkins during off-hours.
We have 90+ jobs so testing them all ...
Perhaps you are looking for the Job Cacher plugin?
To quote the plugin page:
Enables caching of files on transient executors for use on subsequent builds to improve performance
Item storage extension point supporting on master storage and AWS S3
Cache Wrapper for free style jobs that manages the cache
Arbitrary File ...
Create and add token to be able to connect to SonarQube.
You have create project in SonarQube and use it as a parameter:
Copied from [StackOverflow] Problem with Connecting Jenkins to SonarQube.
Got the solution :
in the inventory file (/etc/ansible/hosts) :
192.XXX.XXX.XXX ansible_user=ubuntu1(target hostname) ansible_become_password=XXXXXXXX(target pwd)
and in the play we have to set
- hosts: host
-name : Update XYZ app
I have already written a python script for my process so I have ...
I find it strange that nobody mentioned the Configuration as Code plugin. Our solution to this problem is to maintain a base Docker image for jenkins, provisioned with two config files:
The plugins are installed by the install-plugins.sh script provided by the base Jenkins image:
COPY casc_configs/plugins.txt /usr/share/jenkins/ref/...
You should either add ansible_ssh_extra_args="-o StrictHostKeyChecking=no" to inventory or disableHostKeyChecking: true into Jenkins pipeline script (inside ansiblePlaybook block).