Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
#!/bin/sh /etc/rc.common | |
# OpenWrt /etc/init.d/ script to backup and restore the rrd (collectd) database, to preserve data across reboots | |
# | |
# | |
# howto: | |
# - upload this file as /etc/init.d/rrdbackup | |
# - (optional) adjust BACKUP_DIR below to point to a different target directory for the backup (e.g., a USB drive) | |
# - # chmod +x /etc/init.d/rrdbackup | |
# - # /etc/init.d/rrdbackup enable |
#!/bin/bash | |
set -e | |
TOKEN=xxx | |
AUTH="Basic $(echo -n $TOKEN: | base64)" | |
SONARAPI="http://sonarqube/api" | |
for projKey in $(curl -s -X GET $SONARAPI/projects/search -H "Authorization: $AUTH" | \ | |
jq -r '.components[].key') |
#!/bin/bash | |
DRY_RUN=1 | |
if [ "$1" != "" ]; then | |
DRY_RUN="$1" | |
fi | |
MAX_VERSION=2 | |
if [ "$2" != "" ]; then | |
MAX_VERSION="$2" | |
fi |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
#!/bin/bash | |
# proxvm | |
# Output in specifed format (default csv) all virtual machines on proxmox 4+ | |
SERVER=localhost | |
USERNAME=apiread@pve | |
PASSWORD=123456 | |
FORMAT=csv | |
while [[ $# > 0 ]]; do | |
key="$1" |