Skip to content

Commit 93cbe3e

Browse files
authored
quote $ in Jenkins groovy (#168)
1 parent 071c6c0 commit 93cbe3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.CI/Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,12 @@ SEPARATOR='/'
584584
HISTORY_FILE='00_history.html'
585585
586586
for b in ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_CPP}; do
587-
BRANCH=`echo ${b} | cut -d '/' -f2`
588-
FILE="${HISTORY_DIRECTORY}${BRANCH}${SEPARATOR}${HISTORY_FILE}"
589-
if [ ! -f ${FILE} ]; then
590-
echo "Creating initial history: library.openmodelica.org:${FILE}"
591-
ssh hudson@library.openmodelica.org mkdir -p ${HISTORY_DIRECTORY}${BRANCH}
592-
ssh hudson@library.openmodelica.org touch ${FILE}
587+
BRANCH=`echo \${b} | cut -d '/' -f2`
588+
FILE="\${HISTORY_DIRECTORY}\${BRANCH}\${SEPARATOR}\${HISTORY_FILE}"
589+
if [ ! -f \${FILE} ]; then
590+
echo "Creating initial history: library.openmodelica.org: \${FILE}"
591+
ssh hudson@library.openmodelica.org mkdir -p \${HISTORY_DIRECTORY}\${BRANCH}
592+
ssh hudson@library.openmodelica.org touch \${FILE}
593593
fi
594594
done
595595
"""

0 commit comments

Comments
 (0)