I need to print the content of the file in the mail. I am using Multi-Configuration plugin in Jenkins. I have followed this link: https://stackoverflow.com/a/48923742/10220825
But in my case the file name is not fixed, so I need to use the wildcards for file name in Default Content path = "$WORKSPACE/Result/AMDuProf*-Summary-*.txt"
But it is not working. I am getting error in the mail.
ERROR: File '/home/abc/xyz-Jenkins/workspace/pqr/label/cde-SSP-Ubuntu-18/Result/AMDuProf*-Summary-*.txt' does not exist.
So how to use the wildcard for the file name as the file name is not fixed, will change with different slaves. Please suggest me a correct approach.