Re: Runing Groovy scripts on Jenkins on Master

2017-06-26 Thread Oparlescu Vlad
Thank you :)

On Wednesday, June 21, 2017 at 7:35:30 PM UTC+3, jer...@bodycad.com wrote:
>
> if you are into a pipeline, you can swap node by using
> node("master")
> {
> ...
> }
>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0cc6cc1b-ec59-45af-bd2e-b56fb296be6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EXTERNAL] - Runing Groovy scripts on Jenkins on Master

2017-06-26 Thread Oparlescu Vlad
Thank you :)

On Wednesday, June 21, 2017 at 3:25:12 PM UTC+3, Dirk Heinrichs wrote:
>
> Am 21.06.2017 um 13:59 schrieb Oparlescu Vlad:
>
> It seems that due to the fact that I use system groovy script build 
> option, the build still runs on a slave ?
> Is there a mistake or a setting that must be made on the master ?
>
>
> The *job* may run on a slave, but the *script* (since it's a system Groovy 
> script) runs in the masters JVM.
>
> HTH...
>
> Dirk
> -- 
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dirk.he...@recommind.com 
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon 
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/58eadb73-2851-4d11-aa4e-9588f26fa567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Runing Groovy scripts on Jenkins on Master

2017-06-21 Thread jerome
if you are into a pipeline, you can swap node by using
node("master")
{
...
}


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/df913a9a-b259-42a8-9032-26cb6457d520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [EXTERNAL] - Runing Groovy scripts on Jenkins on Master

2017-06-21 Thread Dirk Heinrichs
Am 21.06.2017 um 13:59 schrieb Oparlescu Vlad:

> It seems that due to the fact that I use system groovy script build
> option, the build still runs on a slave ?
> Is there a mistake or a setting that must be made on the master ?

The *job* may run on a slave, but the *script* (since it's a system
Groovy script) runs in the masters JVM.

HTH...

Dirk
-- 
*Dirk Heinrichs*
Senior Systems Engineer, Delivery Pipeline
OpenText^TM Discovery | Recommind
*Email*: dirk.heinri...@recommind.com 
*Website*: www.recommind.de 

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon
Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer
HRB 10646

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail sind nicht gestattet.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/620d6f5f-bb79-9a28-f604-d2c6e7ab3f81%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


Runing Groovy scripts on Jenkins on Master

2017-06-21 Thread Oparlescu Vlad
Hello Jenkins users,

I created a groovy script where I generate some values that I'm reading 
from the builds.
It seems that due to the fact that I use system groovy script build option, 
the build still runs on a slave ?
Is there a mistake or a setting that must be made on the master ?


Building remotely on frv0021g  in 
workspace D:\MB_MFA2_18_SCU\JenkinsWorkspace\workspace\__PMT Collect K1 and 
K1Lite
FATAL: T:\040_PMT_SwEMT\Jenkins\KPIs\EUROPE\K1.csv (The system cannot find the 
path specified)
java.io.FileNotFoundException: T:\040_PMT_SwEMT\Jenkins\KPIs\EUROPE\K1.csv (The 
system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileWriter.(FileWriter.java:107)


*Shouldn't have run exclusively on the master machine and not have this error?*


Thank you,
Vlad

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b4c0d2a0-ea70-4cba-8ed7-c6d28159f377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.