Jenkins World
Sunday, 7 June 2020
Check if a file exists in jenkins pipeline
def exists
=
fileExists
'file'
if
(
exists
)
{
echo
'Yes'
}
else
{
echo
'No'
}
from :
https://stackoverflow.com/questions/38534781/check-if-a-file-exists-in-jenkins-pipeline
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment