On Sun, Jun 9, 2019 at 4:04 PM Rajeev Ranjan <[email protected]> wrote: > it extracts the plugin jar from $JENKINS_HOME to get powershell files > execute it to perform business logic of the plugin on the project
Use https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getResource-java.lang.String- https://javadoc.jenkins.io/hudson/FilePath.html#copyFrom-java.net.URL- to copy a plugin resource to a remote location. You probably also want to use https://javadoc.jenkins.io/hudson/slaves/WorkspaceList.html#tempDir-hudson.FilePath- so that you do not pollute the user’s workspace. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3Fn%2BEPPUp6M6xvfQc95PotdDrYEmVAb-Tg3SYujfNhmQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
