batch file - Jenkins How to get the result of a bat command -


i have problem: in pipeline, need know if file exists. here code :

if(...){     bat 'if exist <insert file name here> (              rem file exists         ) else (              rem file doesn't exist         )' } 

i know if can return bat command in if(...) : return true:do... or false:do...

if want implement directly in pipeline script, use code following question:

check if file exists in jenkins pipeline


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -