Skip to content

Instantly share code, notes, and snippets.

View sfrehse's full-sized avatar

Stefan Frehse sfrehse

View GitHub Profile
@sfrehse
sfrehse / jenkins-slave.sh
Created August 2, 2017 14:56
Jenkins slave startup
#!/bin/bash
# if `docker run` first argument start with `-` the user is passing jenkins swarm launcher arguments
if [[ $# -lt 1 ]] || [[ "$1" == "-"* ]]; then
# jenkins swarm slave
JAR=`ls -1 /usr/share/jenkins/swarm-client-*.jar | tail -n 1`
# if -master is not provided and using --link jenkins:jenkins
if [[ "$@" != *"-master "* ]] && [ ! -z "$JENKINS_PORT_8080_TCP_ADDR" ]; then
05a31266729258b65ba847fd247457270b1555532e457ef4e06cc18f7270d84f

Keybase proof

I hereby claim:

  • I am sfrehse on github.
  • I am frehse (https://keybase.io/frehse) on keybase.
  • I have a public key whose fingerprint is DADD 75BA DE88 CDFC 27ED 0B8A 1BA6 2326 04EB A547

To claim this, I am signing this object: