CLICK ME
yes, even hidden code blocks!
print("hello world!")
#!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" |
#!/bin/bash | |
# http://stackoverflow.com/a/37730085/12916 | |
if [ $# -ge 1 ] | |
then | |
files="$@" | |
else | |
files=* | |
fi | |
for r in $files | |
do |
// 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(); |
#!/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" ] |
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 🙂.
git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin master
.