Forum Discussion

Sandyapitester's avatar
Sandyapitester
Frequent Contributor
8 years ago

Groovy scripting - find and attach the file based on the current date and time stamp

Hi All,

 

It's possible to create groovy scripting to find the attachment with current file and folder based on the date and time format.

 

Share your thought. it would be more useful for my automation

 

Ex: Sample Folder :XX__16-08-2016
Sample File : XXX_Report-2016-08-16_21-32-03.PDF

 

Jenkins is not finding and attaching the current date and time file attachment.

 

If u know the syntax plz share it to us

 

Scenario :

 

 

I am looking for a alternative way to find the folder and path use groovy scripting

 

If any one know the solution plz share your thought,