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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -