bash - Configure jenkins job: rm command not found -
i trying configure jenkins job , added following lines shell text area:
path="/home/${user}/reportlogscomparator/"; result_file="target/result.txt"; #remove previous results cd ${path} rm -f ${result_file}
but result is:
+ path=/home/build/reportlogscomparator/ + result_file=target/result.txt + cd /home/build/reportlogscomparator/ + rm -f target/result.txt /tmp/hudson6849808815020420288.sh: line 7: rm: command not found
also, tried
rm -f "$result_file"
and path hardcoded, no success.
path="/home/${user}/reportlogscomparator/"
should
path="$path:/home/${user}/reportlogscomparator"
this way, you're appending directory current path instead of replacing $path entirely.
Comments
Post a Comment