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 -

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

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -