I need to copy this source file to C:\Program Files (x86)\Jenkins\workspace\vocbench\target\vocbench3-5.0-SNAPSHOT.war
In this destination folder: C:\Program Files (x86)\Jenkins\workspace\VB_deploy\semanticturkey-5.0-SNAPSHOT/deploy/
The problem stems from the fact that the internal name of the folder .../.../semanticturkey-5.0-SNAPSHOT/.../... It may vary over time in 5.1 / 5.2 / 6.0, etc.
I had thought of something like this, but it does not work:
copy the file to a variable, but not to the right destination directory. How can I do?