1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

Merge pull request #751 from SAP/it/mtafixcodecomment

added comment to explain escaped variable
This commit is contained in:
Thorsten Duda 2019-06-13 17:47:05 +02:00 committed by GitHub
commit 4343891004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,8 @@ void call(Map parameters = [:]) {
echo "[INFO] Executing mta build call: '${mtaCall}'."
//[Q]: Why extending the path? [A]: To be sure e.g. grunt can be found
//[Q]: Why escaping \$PATH ? [A]: We want to extend the PATH variable in e.g. the container and not substituting it with the Jenkins environment when using ${PATH}
sh """#!/bin/bash
export PATH=./node_modules/.bin:\$PATH
$mtaCall