Skip to content

Instantly share code, notes, and snippets.

Liam Newman bitwiseman

Block or report user

Report or block bitwiseman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Jenkinsfile.groovy
pipeline {
agent none
stages {
stage("foo") {
matrix {
axes {
axis {
name 'OS_VALUE'
values "linux", "windows", "mac"
}
View cps-log.txt
24.800 [test0 #1] org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject getProperty java.lang.String (__DeclarativePipelineRuntime_Root_2__.env)
24.800 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectMethod(StaticWhitelist.java:267)
24.800 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor$11.reject(SandboxInterceptor.java:358)
24.801 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:409)
24.801 [test0 #1] at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
24.801 [test0 #1] at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
24.801 [test0 #1] at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
24.801 [test0 #1] at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccess
View gist:167b46621fd6ac6316e39a6b54c16fb3
pipeline {
agent none
stages {
stage("BuildAndTest") {
matrix {
agent {
label "${os}"
}
when {
and {
@bitwiseman
bitwiseman / Podcasts.adoc
Last active Sep 13, 2018
Podcasts from DevOpsDays PDX
View Podcasts.adoc
  • Welcome to Night Vale - Community Radio Station from the Town in the Twilight Zone

  • Reply All - Technical answers

  • Hardcore History - In-depth History

  • How Did this Get Made? - Bad Movies

  • Stuff You Should Know - One topic, drill in

    • Stuff to Blow Your Mind

  • Tech Village - DevOps HugOps

  • PodCtl - K8S (and CloudCast)

    • Commandline Heros

@bitwiseman
bitwiseman / comment_less.adoc
Last active Sep 14, 2018
Better code reviews and PRs: Commenting less, doing more and better
View comment_less.adoc

(Note taker arrived late)

Frustrations/Issues:

  1. Commenting when making edits would be more effective - "Be the change you want to see in the code"

  2. Over-broad notification - Stash adds you to everything you ever touched for notifications

  3. Typo and formatting nitpicks - "This whitespace is off."

  4. Non-functional comments - personal or other poorly defined stylistic preferences/suggestion

  5. Friction during code review process

  6. Siloing - reviewers not being familiar with other areas or being unfriendly from reviews outside their prefered colaborators

View gist:3c01d3c6d61490c731786f28f5f4e783
import groovy.json.JsonOutput
/** Tox environment */
def config = 'e2e-tests/tox.ini'
def environment = 'tests'
/** Map of desired capabilities */
def capabilities = [
browserName: 'Firefox',
version: '47.0',
View install_jenkins_plugin.sh
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
You can’t perform that action at this time.