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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -