先看一个例子,原理,根据命令返回的状态值来判断它的存在与否
pipeline { agent any stages { stage("check file if exists"){ #执行此步的名称 steps{ script{ out=sh(script:"ls /tmp/uu.txt",returnStatus:true) println
先看一个例子,原理,根据命令返回的状态值来判断它的存在与否
pipeline { agent any stages { stage("check file if exists"){ #执行此步的名称 steps{ script{ out=sh(script:"ls /tmp/uu.txt",returnStatus:true) println