Skip to content

Instantly share code, notes, and snippets.

View kshultzCB's full-sized avatar

Karl Shultz kshultzCB

View GitHub Profile
#!groovy
node() {
stage('Setup') {
deleteDir()
checkout scm
sh 'docker build -t blueocean_build_env --build-arg GID=$(id -g ${USER}) --build-arg UID=$(id -u ${USER}) - < Dockerfile.build'
sh "./acceptance-tests/runner/scripts/start-selenium.sh"
sh "./acceptance-tests/runner/scripts/start-bitbucket-server.sh"
@jglick
jglick / find-git-unreleased.sh
Last active July 25, 2019 19:20
run with optional args, e.g., {workflow,pipeline}-*-plugin
#!/bin/bash
# http://stackoverflow.com/a/37730085/12916
if [ $# -ge 1 ]
then
files="$@"
else
files=*
fi
for r in $files
do
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
// Just update token, user, repo as appropriate, then execute in a browser console (e.g. a Chrome snippet)
var token = '<your personal access token here>';
var user = '<your username here>';
var repo = 'jenkinsci/jenkins';
var async = false;
var perPage = 100; // 30 is the default, 100 is max
function xhr(success) {
var x = new XMLHttpRequest();
@jglick
jglick / uc-grep
Last active January 27, 2023 07:06
#!/bin/bash
PLUGIN=$1
VERSION=$2
UC=$3
if [ -z "$PLUGIN" ]
then
echo 'Usage: uc-grep short-name [core-version [https://jenkins-updates.cloudbees.com/update-center/envelope-core-mm/]]'
exit 1
fi
if [ -z "$VERSION" ]
@nepsilon
nepsilon / git-change-commit-messages.md
Last active April 24, 2024 06:30
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.