I have a problem: In my pipeline, I need to know if a certain file already exists. Here is my code :
if(...){
bat 'if exist <insert file name here> (
rem file exists
) else (
rem file doesn't exist
)'
}
I would like to know if I can get a return from that bat command so I could do something in my if(...) like : the return is true:do... or false:do...