You can run jobs on master, there’s a “specify where to run” option and if
you put master on there the checkout And any scripts should be on master.

On Mon, May 11, 2020 at 17:44 SARDARNI NK <[email protected]> wrote:

> Hi Everyone,
>
>  The checkout will put the files on the agent, I need it on the master
> node.
>
> Could anyone can help me.
>
> Is there anyway to setup another Jenkins job that can copy the code on the
> master?
>
> Currently, I am copy file.sh in manually on the master, and calling that
> file in Jenkins job using
>
> In job, I am using *execute groovy system script plugin* and passing the
> Master node local path  /home/file.sh
>
> def sout = new StringBuilder(), serr = new StringBuilder()
>
> def proc = '/home/file.sh'.execute()
>
> proc.consumeProcessOutput(sout, serr)
>
> I am not sure if in *executed groovy system script *we can so pass svn
> path location.
>
>
> Thanks,
> Nav
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" 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-users/d1dd39b2-4851-4784-a18b-3a6f0fe50e77%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d1dd39b2-4851-4784-a18b-3a6f0fe50e77%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/CADgiF9Kp%2Bs--RmFUhx%2BCSs80P5YfQLqM8M_iz_x3Y%2B38yqEu_Q%40mail.gmail.com.

Reply via email to