blob: 7cb355f08519dd62924188f883a496e249123fd1 [file] [log] [blame]
Nicolas De Loofd6064382014-10-04 08:17:28 +02001#! /bin/bash
2
Nicolas De Loof07c307d2014-10-07 14:02:42 +02003# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
4if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
5 exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS --prefix=$JENKINS_PREFIX $@
6fi
7
8# As argument is not jenkins, assume user want to run his own process, for sample a `bash` shell to explore this image
9exec $@
Nicolas De Loofd6064382014-10-04 08:17:28 +020010