Project

General

Profile

Actions

action #130375

closed

Automatically update jenkins plugins on jenkins.qa.suse.de

Added by okurz 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Target version:
Start date:
2023-06-05
Due date:
% Done:

0%

Estimated time:

Description

Motivation

I unregularly update plugins on jenkins.qa.suse.de. To ensure regular updates we should look for an automatic approach.

Acceptance criteria

Suggestions

  • Research best practices for automatic update application and apply that
Actions #1

Updated by okurz 10 months ago

  • Due date set to 2023-06-19
  • Status changed from New to Feedback
Actions #2

Updated by okurz 10 months ago

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/873/ merged. I added roles: jenkins to jenkins.qa.suse.de:/etc/salt/grains

Actions #3

Updated by okurz 10 months ago

The systemd timer and service is deployed on jenkins.qa.suse.de:

Tue 2023-06-13 03:00:00 CEST 16h left            Mon 2023-06-12 03:00:00 CEST 7h ago            jenkins-plugins-update.timer jenkins-plugins-update.service
# journalctl -u jenkins-plugins-update.service
Jun 10 03:00:00 jenkins systemd[1]: Started Automatically update jenkins plugins..
Jun 10 03:00:05 jenkins systemd[1]: jenkins-plugins-update.service: Main process exited, code=exited, status=1/FAILURE
Jun 10 03:00:05 jenkins systemd[1]: jenkins-plugins-update.service: Failed with result 'exit-code'.
Jun 11 03:00:00 jenkins systemd[1]: Started Automatically update jenkins plugins..
Jun 11 03:00:03 jenkins systemd[1]: jenkins-plugins-update.service: Main process exited, code=exited, status=1/FAILURE
Jun 11 03:00:03 jenkins systemd[1]: jenkins-plugins-update.service: Failed with result 'exit-code'.
-- Boot 1194fe190b0749d28399e2a08afc85f6 --
Jun 12 03:00:00 jenkins systemd[1]: Started Automatically update jenkins plugins..
Jun 12 03:00:02 jenkins systemd[1]: jenkins-plugins-update.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 03:00:02 jenkins systemd[1]: jenkins-plugins-update.service: Failed with result 'exit-code'.

Calling with bash -ex … the ssh port is not properly parsed so added
https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/880

Actions #4

Updated by okurz 10 months ago

  • Due date deleted (2023-06-19)
  • Status changed from Feedback to Resolved

http://jenkins.qa.suse.de/manage/pluginManager/ is empty as the service automatically applied updates so we are good.

Actions

Also available in: Atom PDF