This script is located towards the bottom of this page http://jenkins-php.org/ under “Using the Job Template” heading.
cd $JENKINS_HOME/jobs
git clone git://github.com/sebastianbergmann/php-jenkins-template.git php-template
chown -R jenkins:nogroup php-template/
I am just confused what the ‘$’ means in the first line before JENKINS_HOME. I have never seen a dollar sign used like that and have not yet found an explanation for it using Google searches. Thanks.
This means the value stored in the variable named JENKINS_HOME.
This command
will display the value stored in this variable.
This link provides a brief intro/summary about the use of shell variables. Basically one assigns to a variable without the
$, but in order to get to its value, it’s necessary to put the$in front of the variable one is interested in.