Project

General

Profile

Feature #1601

use Git for Jenkins Config

Added by Roland Schulz about 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Jenkins
Target version:
-
Close

Description

I suggest we use SCM Sync configuration plugin for Jenkins. That way it is clear who changed what and why. Ideally we could even do review of changes but I don't think that's easily possible. I suggest we nonetheless use gerrit as git server (without review aka "refs/heads/master"). That way we can use Gerrit to comment on changes. Gerrit isn't great for post submit review but for Jenkins config it should be sufficient. I suggest we create a new gerrit repo "jenkins". No one else other than Jenkins should be able to write to that repo. Because the plugin doesn't support two-way sync.


Related issues

Related to Support Platforms - Bug #1731: document jenkins configuration and set up means to track changes In Progress
Related to Support Platforms - Bug #1732: review and extend jeknins tests setups, coverageNew

History

#1 Updated by Roland Schulz over 4 years ago

  • Related to Bug #1731: document jenkins configuration and set up means to track changes added

#2 Updated by Roland Schulz over 4 years ago

  • Related to Bug #1732: review and extend jeknins tests setups, coverage added

#3 Updated by Roland Schulz over 4 years ago

I suggest we make this a priority because it help with the other things with little extra work.

#4 Updated by Szilárd Páll over 4 years ago

Roland Schulz wrote:

I suggest we make this a priority because it help with the other things with little extra work.

If it is indeed little extra work, it would be a great first step, I think.

I've had a brief look, as an example I only found the dummy/test repo of the author from that it's not entirely clear how readable and understandable are real-world jenkins config files and consequently how useful is it to have changes show up in CR. However, if gerrit changes published for every commit do not turn out to be useful, these can be disabled later, independently of the git repo itself.

#5 Updated by Roland Schulz over 4 years ago

Partly working. See http://redmine.gromacs.org/boards/6/topics/497 for details

#6 Updated by Roland Schulz over 4 years ago

If we want to use code review for configuring jobs we can use: http://ci.openstack.org/jenkins-job-builder/

#7 Updated by Roland Schulz over 4 years ago

It is now fully functioning. The changes now show up in gerrit: https://gerrit.gromacs.org/#/q/project:jenkins+is:merged . So far the xml configs of plugins isn't pushed yet.

#8 Updated by Teemu Murtola over 4 years ago

  • Category set to Jenkins

Renaming the nightly documentation job seems to have screwed up the sync, and now it spams the footer of the pages. Plus the commit that for pushed to gerrit seems to be so big that at least Safari hangs trying to open the web page...

Also available in: Atom PDF