View git functions
# git push force set upstream
branch=$(git symbolic-ref --short HEAD)
git push -f --set-upstream ${1:-origin} $branch
# git commit ammend
#don't want to commit accidental submodule sha changes (eg when switching branches)
git submodule update
View Input
- defaults:
name: global
- parameter:
name: my_params
- bool:
default: "{TEST_BOOL_DEFAULT}"
View console.log
Started by user Hugh Saunders
[Pipeline] node
Running on in /var/lib/jenkins/workspace/scratchpipeline
[Pipeline] {
[Pipeline] sh
[scratchpipeline] Running shell script
+ date
+ pwd
+ ls
View output
ansible-playbook -i inventory/ test.yml
PLAY [localhost] ***************************************************************
TASK [debug] *******************************************************************
skipping: [localhost]
TASK [debug] *******************************************************************
skipping: [localhost]
View gist:f2e191e97bd46976e722a69748ef1cc0
SEVERE: Failed Loading plugin Jenkins Self-Organizing Swarm Plug-in Modules v3.3 (swarm) Unable to load hudson.plugins.swarm.PluginImpl from swarm
at hudson.ClassicPluginStrategy.load(
at hudson.PluginManager$2$1$
at org.jvnet.hudson.reactor.TaskGraphBuilder$
at org.jvnet.hudson.reactor.Reactor.runTask(
at jenkins.model.Jenkins$7.runTask(
at org.jvnet.hudson.reactor.Reactor$
at org.jvnet.hudson.reactor.Reactor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
# This module was found in an ansible-discuss mailing list thread:!msg/ansible-project/7VhqDDtf6Js/EcQ1MVoJRBIJ
# (C) 2013, Stephan Buys, <>
# This file is based on which is a part of Ansible, and is
# a derivative work as per the GPL. All original conditions apply.
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or

Why does the block get the same argument each time when run via parallel? (why does it print [a] c not [a] a ?) When looping over streams sequentially it can be seen that each block has the correct arg encapsulated. This is shown by a,b,c being printed by the last three echo statements.

View gist:20816d478a286d10a3fcdac666effa13
# git remote -v
hugh (fetch)
hugh (push)
origin (fetch)
origin (push)
# git fetch hugh "+refs/pull/*:refs/remotes/hugh/pr/*"
* [new ref] refs/pull/1/head -> hugh/pr/1/head
* [new ref] refs/pull/1/merge -> hugh/pr/1/merge
View Job XML
View gist:63eb46316f067e89c1cf09ede5b7b379
$ dropbearkey -t dss -f foo
Will output 1024 bit dss secret key to 'foo'
Generating key, this may take a while...
Public key portion is:
ssh-dss AAAAB3NzaC1kc3MAAACBAIWw+F0z0G1zT3OUiiU5DU0aURgAWwE4QrAqI0W6COhwqk5TARTpbCh5h6nn9YdEaRNitUfuVplfjTaZH3DQaxhblHWtTH3n6GVCvBKqrlqAbOy70LxNkIoxEwucb+frSe1BmaDLfuuPbPptMxPx65kmvdaEiLc4RUqgQKhVrFAlAAAAFQDbatcjBsIA2OtKWdwNddSFnjdjAwAAAIBnlOPBgStGoYhIP7GE/xenB8hMjbdwwutOONS6ThoDn7rYDO9miuiI/GCBoz8DpNYeUmSZ4priMtNMFIWBqYNIEDhRqVY6ScY7c/PyXm2+qAfHYMjfvOcd4BrvLRWpXQtNn4LDdBC4XJBci3HK6owZ0BeLOudEfficbfjzP+agrAAAAIBp4a3H2ZK8Lm5xw4Mn1e7V+dJ4vPN/+x01T2C/RiniD3ngKBx99n0dhJZzlda5377D7gP0U5vMpj2E71pmgDcwoi5yklWMoZF+GS5YZBNmwdL0PM9pzIFYHPBYiJ8xz2meH6ILryycPFee7iwGNUxkaJL6oCcptz3bsQ5THeZEUw== root@cirros64mod
Fingerprint: md5 d6:4d:a9:0a:e1:31:5d:25:7a:b7:0f:39:9e:bc:e6:d2
$ dropbearkey -t dss -f foo
Will output 1024 bit dss secret key to 'foo'
Generating key, this may take a while...
Couldn't create new file foo