New answers tagged

1

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 ...


1

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 ...


2

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 ...


0

Perhaps you are looking for the Job Cacher plugin? To quote the plugin page: Summary Enables caching of files on transient executors for use on subsequent builds to improve performance Features Item storage extension point supporting on master storage and AWS S3 Cache Wrapper for free style jobs that manages the cache Arbitrary File ...


0

Create and add token to be able to connect to SonarQube. You have create project in SonarQube and use it as a parameter: sh """ ${scannerHome}/bin/sonar-scanner \ -Dsonar.projectKey=your_project_key_created_in_sonarqube_as_project \ -Dsonar.sources=. \ """ Copied from [StackOverflow] Problem with Connecting Jenkins to SonarQube.


1

Got the solution : in the inventory file (/etc/ansible/hosts) : [host] 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 become: yes tasks: -name : Update XYZ app script: update.py I have already written a python script for my process so I have ...


0

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: jenkins.yml plugins.txt 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/...


3

Simple one. You should either add ansible_ssh_extra_args="-o StrictHostKeyChecking=no" to inventory or disableHostKeyChecking: true into Jenkins pipeline script (inside ansiblePlaybook block). Like this: ansiblePlaybook( colorized: true, installation: 'ansible27' inventory: '[hostsfile]' playbook: '[playbook]' disableHostKeyChecking: true )


Top 50 recent answers are included