Hi team,
I am stuck at end which currently I don't have clue how to proceed.
I have a plugin which is having some powershell files as resources in the jar (generated at build time).
During runtime
- it extracts the plugin jar from $JENKINS_HOME to get powershell files
- execute it to perform business logic of the plugin on the project
- generates the output file in the provided path.
It works perfectly fine if it is only master.The problem here with this is it fails in distributed architecture as it won't have .
What solution I can think of is to
- copy the plugin to slave,
- extract the files and execute the powershell files in slave instance,
- and copy back the output to master/slave as per input?
I am not sure how to copy the files between master/slave, any reference would be appreciated.
Also I am not sure even if this would work, is this the correct way for the whole procedure (extracting the powershell files from jar, copying between slave/master and executing it in slave).
Regards,
Rajeev Ranjan