I have a source folder that contains a lot of subfolders in it, I need to copy all the files that are in the subpath **\bin\Debug\** to the folder named artifacts. I need to do that in jenkins pipeline stage. I tried the following batch command:
bat """xcopy /S /I /E "${WORKSPACE}\\**\\bin\\Debug**" "${WORKSPACE}\\artifacts" """
But i get the error: File not found - **
Any help on how to do it correctly?