I am using Jenkins Artifactory Plugin to download files from Artifactory.I want to make jenkins job failed if source directory,value of pattern field in file spec,doesn't exist.Right now it says "No artifact found" but job doesn't fail.
Asked
Active
Viewed 732 times
0
-
1IF you are using pipelines your answer is here: https://stackoverflow.com/a/38539009/1289629 – Vighnesh Pai Aug 16 '19 at 10:30
-
2This functionality does exist, but you can use the "failNoOp" option, as described in the Jenkins Artifactory Plugin documentation, to fail the build if no files were downloaded using the file spec. – Eyal Ben Moshe Aug 17 '19 at 07:30
-
Thanks for all comments.I have done something different to resolve this.I wrote one batch script to check if file exist or not. – Adi Aug 22 '19 at 06:57