- What is the problem?
- What exactly does this problem mean? Spend 5 minutes of quiet time thinking to yourself the implications of what is happening and why it may be happening. Are there recent changes going on? Did someone mention this at standup?
- Does it happen in prod too? (run the build right now, etc.)
- Does it happen consistently or only sometimes?
- If not consistent, what seems to be the variability? (build slave, environment)
- Does the documentation of the project mention anything like this?
- What systems could potentially be involved in this issue?
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Here's an example of the kind of GraphQL query that Code.gov might submit to the GitHub GraphQL endpoint. It also explains why the switch to using GraphQL (in GitHub API version 4) makes things a ton easier than all the REST calls we were doing before (in GitHub API version 3).
This file contains hidden or 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
{ | |
"Ansi 6 Color" : { | |
"Red Component" : 0.49320274265483022, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0.859527587890625, | |
"Alpha Component" : 1, | |
"Green Component" : 0.7948720690417127 | |
}, | |
"Tags" : [ |
This file contains hidden or 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
# Load Homebrew near the top | |
brandon-fryslie/rad-plugins homebrew | |
# Load some dotfile aliases | |
brandon-fryslie/rad-plugins dotfiles | |
# 3rd Party plugins | |
robbyrussell/oh-my-zsh plugins/docker | |
robbyrussell/oh-my-zsh plugins/aws |
This file contains hidden or 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
#Add Groovy Script Permissions: Manage Jenkins » In-process Script Approval and Approve | |
def job = jenkins.model.Jenkins.instance.getItemByFullName('folder//projname') | |
def myBuild = job.getBuild('123') | |
myBuild.keepLog(true) |
This file contains hidden or 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
# Add to any Python script to make logging fun and easy to look at | |
def color_code(code): return '\x1b[%sm' % code | |
def colorize(code, s): return '%s%s%s' % ( | |
color_code(code), str(s).replace(color_code(0), color_code(code)), color_code(0)) | |
def green(s): return colorize(32, s) | |
def yellow(s): return colorize(33, s) | |
def red(s): return colorize('1;31', s) | |
def cyan(s): return colorize(36, s) | |
def magenta(s): return colorize(35, s) |
NewerOlder