This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find old workspace folders on any node (master/slave) | |
// currently only look for deleted branches of multibranch (pipeline?) jobs, and remove them | |
// also finds builds older than 90 days. Set flags below to true to actually do deletes | |
import hudson.model.*; | |
import hudson.util.*; | |
import jenkins.model.*; | |
import hudson.FilePath; | |
import hudson.FilePath.FileCallable; | |
import hudson.slaves.OfflineCause; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# An init.d script for running a Node.js process as a service using Forever as | |
# the process monitor. For more configuration options associated with Forever, | |
# see: https://github.com/nodejitsu/forever | |
# | |
# This was written for Debian distributions such as Ubuntu, but should still | |
# work on RedHat, Fedora, or other RPM-based distributions, since none of the | |
# built-in service functions are used. So information is provided for both. | |
# |