I am running multiple instances of the same job concurrently, and it creates multiple workspaces. However, I am only able to "view" one workspace from the Jenkins web interface.
Example: Let's say the job name is jenkinsJob. Running it concurrently creates workspaces "jenkinsJob", "jenkinsJob@2" and so on. Jenkins web interface only shows "jenkinsJob" workspace at the job level only. Morever, "jenkinsJob" workspace shows only the files of the instance that completed last. So, if "jenkinsJob@2" completed last in the concurrent execution, the "jenkinsJob" will show the files for "jenkinsJob@2".
Could someone tell me how I can "view" all the concurrent workspaces on the Jenkins interface?
I didn't find any available plugin for this, but you can use subfolders in the job's workspace.
Use "Execute Windows batch command" build step with the following content:
%BUILD_NUMBER%
folder under %WORKSPACE%
directory%BUILD_NUMBER%
directory%BUILD_NUMBER%
directoryBuild your project with ant:
%ANT_HOME%/bin/ant {ant_target_list}
Explore result for each build in job's workspace:
Note:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With