Skip to content

Instantly share code, notes, and snippets.

View bruinsg's full-sized avatar

Peter Bruin bruinsg

View GitHub Profile
@bruinsg
bruinsg / keep-jenkins-plugins-uptodate.groovy
Created December 5, 2019 13:53 — forked from alecharp/keep-jenkins-plugins-uptodate.groovy
Simple groovy script to upgrade active plugins when new versions are available
jenkins.model.Jenkins.getInstance().getUpdateCenter().getSites().each { site ->
site.updateDirectlyNow(hudson.model.DownloadService.signatureCheck)
}
hudson.model.DownloadService.Downloadable.all().each { downloadable ->
downloadable.updateNow();
}
def plugins = jenkins.model.Jenkins.instance.pluginManager.activePlugins.findAll {
it -> it.hasUpdate()
/* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
<html>
<head>
<title>Gerrit Code Review - Sign In</title>
<style type="text/css">
#error_message {
padding: 5px;
margin: 2em;
width: 20em;
background-color: rgb(255, 255, 116);
font-weight: bold;