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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -