Re: Excute powershell script from plugin on remote machine

2019-08-07 Thread Rajeev Ranjan
Thanks Jesse, I will give this a try On Tuesday, August 6, 2019 at 11:46:57 PM UTC+5:30, Jesse Glick wrote: > > On Tue, Aug 6, 2019 at 8:28 AM Rajeev Ranjan > wrote: > > Creating own ProcessBuilder executes the step on current machine instead > of slave, which is

Re: Excute powershell script from plugin on remote machine

2019-08-07 Thread Rajeev Ranjan
s what the powershell > plugin expects, then a fix seems indeed needed there to accept a Run > instead. > If it already does, remove your cast. > > (Cannot check myself, low to no bandwidth connection to Internet currently) > > Le mar. 6 août 2019 à 15:56, Rajeev Ranjan >

Re: Excute powershell script from plugin on remote machine

2019-08-06 Thread Rajeev Ranjan
Currently I am trying to do something like this new PowerShell().perform((AbstractBuild) run, launcher, listener) -- 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

Excute powershell script from plugin on remote machine

2019-08-06 Thread Rajeev Ranjan
Hi team, My plugin is downloading a powershell script and is executing that. I was using Powershell Plugin itself, but problem with this is it fails while executing pipeline script. throwing ClassCastException WorkflowRun cannot be cast to AbstractBuild [image: exception.png] With some basic

Re: How to run tests on slave/agent

2019-07-10 Thread Rajeev Ranjan
Thanks Jesse and Ullrich, Neat and organised at such large scale. :) I did something like this at crux. DumbSlave node = jenkins.createSlave("node", "", null); project.setAssignedNode(node); *project*.getBuildersList().add(*builder*); FreeStyleBuild build =

Re: Working with distributed builds

2019-07-08 Thread Rajeev Ranjan
. Also to execute powershell commands, I took the help of Powershell Plugin's / CommandInterpreter perform step instead of going with your own step, thus can reduce code duplication a lot. Regards, Rajeev Ranjan -- You received this message because you are subscribed to the Google Groups

How to run tests on slave/agent

2019-07-08 Thread Rajeev Ranjan
/testing/ for help but here mocking agent part is marked as todo. Can you please redirect me to documentation for the same. Thanks in advance. Regards Rajeev Ranjan -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubs

Working with distributed builds

2019-06-09 Thread Rajeev Ranjan
, is this the correct way for the whole procedure (extracting the powershell files from jar, copying between slave/master and executing it in slave). Plugin: UiPath plugin <https://github.com/jenkinsci/uipath-automation-package-plugin> Regards, Rajeev Ranjan -- You received this message becau

mvn deploy vs mvn release:prepare release:perform

2019-04-23 Thread Rajeev Ranjan
ession that, plugins will go to " https://repo.jenkins-ci.org/public/;. What is this reo for? Regards, Rajeev Ranjan -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails f

Re: Packing extra files along with depedency jars in hpi

2019-02-16 Thread Rajeev Ranjan
could be added to maven to get the files you want > - ex https://github.com/maven-download-plugin/maven-download-plugin > > On Tue, Feb 12, 2019 at 11:40 AM Rajeev Ranjan > wrote: > >> Hi team, >> There's a issue which is bugging me a lot from a while. Don't know if it

Packing extra files along with depedency jars in hpi

2019-02-12 Thread Rajeev Ranjan
Hi team, There's a issue which is bugging me a lot from a while. Don't know if it has been asked before. I am working on one plugin where I need some powershell files to execute some commands, and is shared across some different projects. These files are placed in public respository in a remote

How to bundle third-party libraries to jenkins artifactory repository?

2019-02-11 Thread Rajeev Ranjan
Hi devs, I have a custom jar, which I want to share across multiple projects. For jenkins plugins to use that I need to upload it to jenkins artifactory if not in maven central repository as mentioned in the doc