Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
################################################### | |
## | |
## Alertmanager YAML configuration for routing. | |
## | |
## Will route alerts with a code_owner label to the slack-code-owners receiver | |
## configured above, but will continue processing them to send to both a | |
## central Slack channel (slack-monitoring) and PagerDuty receivers | |
## (pd-warning and pd-critical) | |
## |
FROM perl:5 | |
RUN cpanm -in URI::Escape LWP LWP::Protocol::https JSON Cwd Log::Log4perl | |
ADD packt-sync.pl /packt-sync.pl | |
ENTRYPOINT [ "/packt-sync.pl" ] |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
# http://zookeeper.apache.org/doc/r3.3.4/recipes.html#sc_leaderElection | |
require 'rubygems' | |
require 'bundler/setup' | |
require 'zookeeper' | |
require 'hashie' | |
class ElectionCandidate | |
attr_reader :zookeeper, :children, :root_path, :node_path, :my_path | |
attr_accessor :logger |
This is a Dashing widget and all components needed to port the original radiator information into an Dashing Widget.
##Usage
To use this widget, copy puppet_radiator.html
, puppet_radiator.coffee
, and puppet_radiator.scss
into the /widgets/puppet_radiator
directory. Put the puppet_radiator.rb
file in your /jobs
folder.
Or simply run dashing install c695b22a12259f0809f8
to let dashing do that for you.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
#!/bin/bash | |
set -eu | |
shopt -s nullglob | |
readonly base_dir=/var/lib/docker/registry | |
readonly output_dir=$(mktemp -d -t trace-images-XXXX) | |
readonly jq=/usr/bin/jq | |
readonly repository_dir=$base_dir/repositories |
#!/bin/bash | |
set -eu | |
shopt -s nullglob | |
readonly base_dir=/var/local/docker-registry | |
readonly output_dir=$(mktemp -d -t trace-images-XXXX) | |
readonly jq=/tmp/jq | |
readonly repository_dir=$base_dir/repositories |