#!/bin/sh

jenkins_host=`@l_prefix@/bin/openpkg rc -q jenkins_host`
jenkins_port=`@l_prefix@/bin/openpkg rc -q jenkins_port`

export JENKINS_URL="http://$jenkins_host:$jenkins_port/"

exec @l_prefix@/bin/java \
    -Vsun-jdk \
    -jar @l_prefix@/lib/jenkins/jenkins-cli.jar \
    ${1+"$@"}

