Re: Windows slave by ssh

2020-08-27 Thread Ivan Fernandez Calvo
I hate this 
class src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java I 
though to remove it and force configuring the Java path in the plugin or 
have Java in the PATH, it is a requirement to run the remoting process. The 
PR from Alex is a valid workaround meanwhile I think how to remove that 
class.

El jueves, 27 de agosto de 2020 a las 18:10:35 UTC+2, jn...@cloudbees.com 
escribió:

> could this be https://issues.jenkins-ci.org/browse/JENKINS-47510 ?
>
> On Thursday, August 27, 2020 at 3:55:08 PM UTC+1 slide wrote:
>
>> Feel free to open your own PR then. I took the time to try and fix an 
>> immediate issue in the short amount of time I had to look at it. This 
>> should fix for the majority of people I believe, there will definitely be 
>> corner cases that can be addressed in the future.
>>
>> On Thu, Aug 27, 2020 at 7:20 AM Jérôme Godbout  wrote:
>>
>>> Why only escape the command when it contains space, you could always do 
>>> it, so other characters would also be properly escaped, the if is useless.
>>>
>>> if(javaCommand.contains(" ")) {
>>>
>>>  
>>>
>>> javaCommand = "\"" + javaCommand + "\"";
>>>
>>> }
>>>
>>>  
>>>
>>>  
>>>
>>> *From:* jenkins...@googlegroups.com  *On 
>>> Behalf Of *Slide
>>> *Sent:* August 27, 2020 10:11 AM
>>> *To:* Jenkins User Mailing List 
>>> *Subject:* Re: Windows slave by ssh
>>>
>>>  
>>>
>>> I opened this PR against the ssh-agents-plugin  
>>> https://github.com/jenkinsci/ssh-slaves-plugin/pull/183
>>>
>>>  
>>>
>>> On Thu, Aug 27, 2020 at 6:22 AM Jérôme Godbout  
>>> wrote:
>>>
>>> This is exactly what I’m using now, not more need for Cygwin for ssh 
>>> (about time Microsoft ). Remove any space from the JAVA_HOME path 
>>> solve the issue, but the default install path for Java is inside the 
>>> Program Files folders, so by default it has a space. Not supporting spaces 
>>> (and probably other character) is a bug. It’s not a big issue, but this 
>>> should be fix. As for the \ or /, this should be handle by the  source code 
>>> and perform the right conversion to node native format. In my script I 
>>> always use *nix / path and convert them to native before running the actual 
>>> command in a shell. I even made some Groovy pipeline functions to be 
>>> platform agnostic as much as possible, the default implementation force us 
>>> to put if(isUnix()) everywhere and it’s annoying. Having a function to 
>>> manipulate the files and folders (create, remove, touch, move, rename) 
>>> should be there by default for CI pipelines and be platform agnostic. This 
>>> is pretty basic stuff.
>>>
>>>  
>>>
>>> This is where you realize Qt, C# and Python are way ahead into path 
>>> manipulation.  Do a little as possible into Groovy-ish language and use 
>>> Ansible or Python scripts to do the actual work lifting, made my life so 
>>> much less painful.
>>>
>>>  
>>>
>>> *From:* jenkins...@googlegroups.com  *On 
>>> Behalf Of *Slide
>>> *Sent:* August 26, 2020 6:03 PM
>>> *To:* Jenkins User Mailing List 
>>> *Subject:* Re: Windows slave by ssh
>>>
>>>  
>>>
>>> Well, running on Cygwin is almost like running on a *NIX platform. Not 
>>> exactly, but almost. I am referring to the OpenSSH-Win64 port that is now 
>>> supported by MS. 
>>>
>>>  
>>>
>>> On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron  wrote:
>>>
>>> Sorry to be a Johnny come lately – but we have only used SSH launch of 
>>> windows for quite a long time now.
>>>
>>>  
>>>
>>> We use Cygwin to do so. You can use any SSH server though.
>>>
>>>  
>>>
>>> The most important thing is to ensure Java’s home has no spaces in the 
>>> path.
>>>
>>>  
>>>
>>> The second most important thing is to use mixed pathing constructs. E.g. 
>>> javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It 
>>> is a happy middle ground for bash and java.
>>>
>>>  
>>>
>>> *From:* jenkins...@googlegroups.com  *On 
>>> Behalf Of *Slide
>>> *Sent:* Wednesday, August 26, 2020 5:18 PM
>>> *To:* Jenkins User Mailing List 
>>> *Subject:* Re: Wind

Re: Windows slave by ssh

2020-08-27 Thread jn...@cloudbees.com
could this be https://issues.jenkins-ci.org/browse/JENKINS-47510 ?

On Thursday, August 27, 2020 at 3:55:08 PM UTC+1 slide wrote:

> Feel free to open your own PR then. I took the time to try and fix an 
> immediate issue in the short amount of time I had to look at it. This 
> should fix for the majority of people I believe, there will definitely be 
> corner cases that can be addressed in the future.
>
> On Thu, Aug 27, 2020 at 7:20 AM Jérôme Godbout  wrote:
>
>> Why only escape the command when it contains space, you could always do 
>> it, so other characters would also be properly escaped, the if is useless.
>>
>> if(javaCommand.contains(" ")) {
>>
>>  
>>
>> javaCommand = "\"" + javaCommand + "\"";
>>
>> }
>>
>>  
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com  *On 
>> Behalf Of *Slide
>> *Sent:* August 27, 2020 10:11 AM
>> *To:* Jenkins User Mailing List 
>> *Subject:* Re: Windows slave by ssh
>>
>>  
>>
>> I opened this PR against the ssh-agents-plugin  
>> https://github.com/jenkinsci/ssh-slaves-plugin/pull/183
>>
>>  
>>
>> On Thu, Aug 27, 2020 at 6:22 AM Jérôme Godbout  wrote:
>>
>> This is exactly what I’m using now, not more need for Cygwin for ssh 
>> (about time Microsoft ). Remove any space from the JAVA_HOME path 
>> solve the issue, but the default install path for Java is inside the 
>> Program Files folders, so by default it has a space. Not supporting spaces 
>> (and probably other character) is a bug. It’s not a big issue, but this 
>> should be fix. As for the \ or /, this should be handle by the  source code 
>> and perform the right conversion to node native format. In my script I 
>> always use *nix / path and convert them to native before running the actual 
>> command in a shell. I even made some Groovy pipeline functions to be 
>> platform agnostic as much as possible, the default implementation force us 
>> to put if(isUnix()) everywhere and it’s annoying. Having a function to 
>> manipulate the files and folders (create, remove, touch, move, rename) 
>> should be there by default for CI pipelines and be platform agnostic. This 
>> is pretty basic stuff.
>>
>>  
>>
>> This is where you realize Qt, C# and Python are way ahead into path 
>> manipulation.  Do a little as possible into Groovy-ish language and use 
>> Ansible or Python scripts to do the actual work lifting, made my life so 
>> much less painful.
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com  *On 
>> Behalf Of *Slide
>> *Sent:* August 26, 2020 6:03 PM
>> *To:* Jenkins User Mailing List 
>> *Subject:* Re: Windows slave by ssh
>>
>>  
>>
>> Well, running on Cygwin is almost like running on a *NIX platform. Not 
>> exactly, but almost. I am referring to the OpenSSH-Win64 port that is now 
>> supported by MS. 
>>
>>  
>>
>> On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron  wrote:
>>
>> Sorry to be a Johnny come lately – but we have only used SSH launch of 
>> windows for quite a long time now.
>>
>>  
>>
>> We use Cygwin to do so. You can use any SSH server though.
>>
>>  
>>
>> The most important thing is to ensure Java’s home has no spaces in the 
>> path.
>>
>>  
>>
>> The second most important thing is to use mixed pathing constructs. E.g. 
>> javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It 
>> is a happy middle ground for bash and java.
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com  *On 
>> Behalf Of *Slide
>> *Sent:* Wednesday, August 26, 2020 5:18 PM
>> *To:* Jenkins User Mailing List 
>> *Subject:* Re: Windows slave by ssh
>>
>>  
>>
>> Historically, Windows agents couldn't really be run using this plugin, it 
>> is only somewhat recently that Windows had good SSH support. So, there are 
>> probably some leftovers from the plugin only being used on *NIX systems. 
>>
>>  
>>
>> On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout  wrote:
>>
>> Hi,
>>
>> Reinstalling Java into a path like c:\Java work just fine now. Wonder why 
>> the Linux and the Windows master doesn’t show the same behavior on this? Is 
>> this code part only for *nix platform?
>>
>>  
>>
>> Anyway, thanks for the pointer,
>>
>> Jerome
>>
>>  
>>
>> *From:* jenkins...@googlegroups.com  *On 
>> Behalf Of *Slide
>&

Re: Windows slave by ssh

2020-08-27 Thread Slide
Feel free to open your own PR then. I took the time to try and fix an
immediate issue in the short amount of time I had to look at it. This
should fix for the majority of people I believe, there will definitely be
corner cases that can be addressed in the future.

On Thu, Aug 27, 2020 at 7:20 AM Jérôme Godbout  wrote:

> Why only escape the command when it contains space, you could always do
> it, so other characters would also be properly escaped, the if is useless.
>
> if(javaCommand.contains(" ")) {
>
>
>
> javaCommand = "\"" + javaCommand + "\"";
>
> }
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 27, 2020 10:11 AM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> I opened this PR against the ssh-agents-plugin
> https://github.com/jenkinsci/ssh-slaves-plugin/pull/183
>
>
>
> On Thu, Aug 27, 2020 at 6:22 AM Jérôme Godbout  wrote:
>
> This is exactly what I’m using now, not more need for Cygwin for ssh
> (about time Microsoft ). Remove any space from the JAVA_HOME path solve
> the issue, but the default install path for Java is inside the Program
> Files folders, so by default it has a space. Not supporting spaces (and
> probably other character) is a bug. It’s not a big issue, but this should
> be fix. As for the \ or /, this should be handle by the  source code and
> perform the right conversion to node native format. In my script I always
> use *nix / path and convert them to native before running the actual
> command in a shell. I even made some Groovy pipeline functions to be
> platform agnostic as much as possible, the default implementation force us
> to put if(isUnix()) everywhere and it’s annoying. Having a function to
> manipulate the files and folders (create, remove, touch, move, rename)
> should be there by default for CI pipelines and be platform agnostic. This
> is pretty basic stuff.
>
>
>
> This is where you realize Qt, C# and Python are way ahead into path
> manipulation.  Do a little as possible into Groovy-ish language and use
> Ansible or Python scripts to do the actual work lifting, made my life so
> much less painful.
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 6:03 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> Well, running on Cygwin is almost like running on a *NIX platform. Not
> exactly, but almost. I am referring to the OpenSSH-Win64 port that is now
> supported by MS.
>
>
>
> On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron  wrote:
>
> Sorry to be a Johnny come lately – but we have only used SSH launch of
> windows for quite a long time now.
>
>
>
> We use Cygwin to do so. You can use any SSH server though.
>
>
>
> The most important thing is to ensure Java’s home has no spaces in the
> path.
>
>
>
> The second most important thing is to use mixed pathing constructs. E.g.
> javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It
> is a happy middle ground for bash and java.
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* Wednesday, August 26, 2020 5:18 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> Historically, Windows agents couldn't really be run using this plugin, it
> is only somewhat recently that Windows had good SSH support. So, there are
> probably some leftovers from the plugin only being used on *NIX systems.
>
>
>
> On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout  wrote:
>
> Hi,
>
> Reinstalling Java into a path like c:\Java work just fine now. Wonder why
> the Linux and the Windows master doesn’t show the same behavior on this? Is
> this code part only for *nix platform?
>
>
>
> Anyway, thanks for the pointer,
>
> Jerome
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 4:23 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> It looks like this code would need to be updated to handle when there are
> spaces:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
> I have the reverse, a Windows controller and Linux agents. I specify the
> JAVA_HOME environment variable in my agent configuration and that works.
> Can you try that?
>
>
>
>
>
>
>
> On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
> wrote:
>
> Hi,
>
> I’m trying to access a Windows slave with

RE: Windows slave by ssh

2020-08-27 Thread Jérôme Godbout
Why only escape the command when it contains space, you could always do it, so 
other characters would also be properly escaped, the if is useless.
if(javaCommand.contains(" ")) {

javaCommand = "\"" + javaCommand + "\"";
}


From: jenkinsci-users@googlegroups.com  On 
Behalf Of Slide
Sent: August 27, 2020 10:11 AM
To: Jenkins User Mailing List 
Subject: Re: Windows slave by ssh

I opened this PR against the ssh-agents-plugin  
https://github.com/jenkinsci/ssh-slaves-plugin/pull/183

On Thu, Aug 27, 2020 at 6:22 AM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
This is exactly what I’m using now, not more need for Cygwin for ssh (about 
time Microsoft ). Remove any space from the JAVA_HOME path solve the issue, 
but the default install path for Java is inside the Program Files folders, so 
by default it has a space. Not supporting spaces (and probably other character) 
is a bug. It’s not a big issue, but this should be fix. As for the \ or /, this 
should be handle by the  source code and perform the right conversion to node 
native format. In my script I always use *nix / path and convert them to native 
before running the actual command in a shell. I even made some Groovy pipeline 
functions to be platform agnostic as much as possible, the default 
implementation force us to put if(isUnix()) everywhere and it’s annoying. 
Having a function to manipulate the files and folders (create, remove, touch, 
move, rename) should be there by default for CI pipelines and be platform 
agnostic. This is pretty basic stuff.

This is where you realize Qt, C# and Python are way ahead into path 
manipulation.  Do a little as possible into Groovy-ish language and use Ansible 
or Python scripts to do the actual work lifting, made my life so much less 
painful.

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> On 
Behalf Of Slide
Sent: August 26, 2020 6:03 PM
To: Jenkins User Mailing List 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Windows slave by ssh

Well, running on Cygwin is almost like running on a *NIX platform. Not exactly, 
but almost. I am referring to the OpenSSH-Win64 port that is now supported by 
MS.

On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron 
mailto:jpye...@pdinc.us>> wrote:
Sorry to be a Johnny come lately – but we have only used SSH launch of windows 
for quite a long time now.

We use Cygwin to do so. You can use any SSH server though.

The most important thing is to ensure Java’s home has no spaces in the path.

The second most important thing is to use mixed pathing constructs. E.g. 
javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It is 
a happy middle ground for bash and java.

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> On 
Behalf Of Slide
Sent: Wednesday, August 26, 2020 5:18 PM
To: Jenkins User Mailing List 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Windows slave by ssh

Historically, Windows agents couldn't really be run using this plugin, it is 
only somewhat recently that Windows had good SSH support. So, there are 
probably some leftovers from the plugin only being used on *NIX systems.

On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
Reinstalling Java into a path like c:\Java work just fine now. Wonder why the 
Linux and the Windows master doesn’t show the same behavior on this? Is this 
code part only for *nix platform?

Anyway, thanks for the pointer,
Jerome

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> On 
Behalf Of Slide
Sent: August 26, 2020 4:23 PM
To: Jenkins User Mailing List 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Windows slave by ssh

It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external com

Re: Windows slave by ssh

2020-08-27 Thread Slide
I opened this PR against the ssh-agents-plugin
https://github.com/jenkinsci/ssh-slaves-plugin/pull/183

On Thu, Aug 27, 2020 at 6:22 AM Jérôme Godbout  wrote:

> This is exactly what I’m using now, not more need for Cygwin for ssh
> (about time Microsoft ). Remove any space from the JAVA_HOME path solve
> the issue, but the default install path for Java is inside the Program
> Files folders, so by default it has a space. Not supporting spaces (and
> probably other character) is a bug. It’s not a big issue, but this should
> be fix. As for the \ or /, this should be handle by the  source code and
> perform the right conversion to node native format. In my script I always
> use *nix / path and convert them to native before running the actual
> command in a shell. I even made some Groovy pipeline functions to be
> platform agnostic as much as possible, the default implementation force us
> to put if(isUnix()) everywhere and it’s annoying. Having a function to
> manipulate the files and folders (create, remove, touch, move, rename)
> should be there by default for CI pipelines and be platform agnostic. This
> is pretty basic stuff.
>
>
>
> This is where you realize Qt, C# and Python are way ahead into path
> manipulation.  Do a little as possible into Groovy-ish language and use
> Ansible or Python scripts to do the actual work lifting, made my life so
> much less painful.
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 6:03 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> Well, running on Cygwin is almost like running on a *NIX platform. Not
> exactly, but almost. I am referring to the OpenSSH-Win64 port that is now
> supported by MS.
>
>
>
> On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron  wrote:
>
> Sorry to be a Johnny come lately – but we have only used SSH launch of
> windows for quite a long time now.
>
>
>
> We use Cygwin to do so. You can use any SSH server though.
>
>
>
> The most important thing is to ensure Java’s home has no spaces in the
> path.
>
>
>
> The second most important thing is to use mixed pathing constructs. E.g.
> javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It
> is a happy middle ground for bash and java.
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* Wednesday, August 26, 2020 5:18 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> Historically, Windows agents couldn't really be run using this plugin, it
> is only somewhat recently that Windows had good SSH support. So, there are
> probably some leftovers from the plugin only being used on *NIX systems.
>
>
>
> On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout  wrote:
>
> Hi,
>
> Reinstalling Java into a path like c:\Java work just fine now. Wonder why
> the Linux and the Windows master doesn’t show the same behavior on this? Is
> this code part only for *nix platform?
>
>
>
> Anyway, thanks for the pointer,
>
> Jerome
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 4:23 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> It looks like this code would need to be updated to handle when there are
> spaces:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
> I have the reverse, a Windows controller and Linux agents. I specify the
> JAVA_HOME environment variable in my agent configuration and that works.
> Can you try that?
>
>
>
>
>
>
>
> On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
> wrote:
>
> Hi,
>
> I’m trying to access a Windows slave with SSH using Linux master Jenkins
> 2.235.5.
>
> [08/26/20 15:24:48] [SSH] Checking java version of 
> c:\JenkinsSlave/jdk/bin/java
>
> Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
>
> The system cannot find the path specified.
>
>
>
> [08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> Couldn't figure out the Java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> 'C:\Program' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> …
>
>
>
> But when I try it from my other Windows Jenkins master 2.251 (my
> development server for testing purpose) it does connect without issue and
> find the proper java into the same path.
>
>
>
> [08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\Jenkins

RE: Windows slave by ssh

2020-08-27 Thread Jérôme Godbout
This is exactly what I’m using now, not more need for Cygwin for ssh (about 
time Microsoft ). Remove any space from the JAVA_HOME path solve the issue, 
but the default install path for Java is inside the Program Files folders, so 
by default it has a space. Not supporting spaces (and probably other character) 
is a bug. It’s not a big issue, but this should be fix. As for the \ or /, this 
should be handle by the  source code and perform the right conversion to node 
native format. In my script I always use *nix / path and convert them to native 
before running the actual command in a shell. I even made some Groovy pipeline 
functions to be platform agnostic as much as possible, the default 
implementation force us to put if(isUnix()) everywhere and it’s annoying. 
Having a function to manipulate the files and folders (create, remove, touch, 
move, rename) should be there by default for CI pipelines and be platform 
agnostic. This is pretty basic stuff.

This is where you realize Qt, C# and Python are way ahead into path 
manipulation.  Do a little as possible into Groovy-ish language and use Ansible 
or Python scripts to do the actual work lifting, made my life so much less 
painful.

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Slide
Sent: August 26, 2020 6:03 PM
To: Jenkins User Mailing List 
Subject: Re: Windows slave by ssh

Well, running on Cygwin is almost like running on a *NIX platform. Not exactly, 
but almost. I am referring to the OpenSSH-Win64 port that is now supported by 
MS.

On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron 
mailto:jpye...@pdinc.us>> wrote:
Sorry to be a Johnny come lately – but we have only used SSH launch of windows 
for quite a long time now.

We use Cygwin to do so. You can use any SSH server though.

The most important thing is to ensure Java’s home has no spaces in the path.

The second most important thing is to use mixed pathing constructs. E.g. 
javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It is 
a happy middle ground for bash and java.

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> On 
Behalf Of Slide
Sent: Wednesday, August 26, 2020 5:18 PM
To: Jenkins User Mailing List 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Windows slave by ssh

Historically, Windows agents couldn't really be run using this plugin, it is 
only somewhat recently that Windows had good SSH support. So, there are 
probably some leftovers from the plugin only being used on *NIX systems.

On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
Reinstalling Java into a path like c:\Java work just fine now. Wonder why the 
Linux and the Windows master doesn’t show the same behavior on this? Is this 
code part only for *nix platform?

Anyway, thanks for the pointer,
Jerome

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
mailto:jenkinsci-users@googlegroups.com>> On 
Behalf Of Slide
Sent: August 26, 2020 4:23 PM
To: Jenkins User Mailing List 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Windows slave by ssh

It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.
…

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this?
Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

I’m tryi

Re: Windows slave by ssh

2020-08-26 Thread Slide
Well, running on Cygwin is almost like running on a *NIX platform. Not
exactly, but almost. I am referring to the OpenSSH-Win64 port that is now
supported by MS.

On Wed, Aug 26, 2020 at 2:50 PM Jason Pyeron  wrote:

> Sorry to be a Johnny come lately – but we have only used SSH launch of
> windows for quite a long time now.
>
>
>
> We use Cygwin to do so. You can use any SSH server though.
>
>
>
> The most important thing is to ensure Java’s home has no spaces in the
> path.
>
>
>
> The second most important thing is to use mixed pathing constructs. E.g.
> javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It
> is a happy middle ground for bash and java.
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* Wednesday, August 26, 2020 5:18 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> Historically, Windows agents couldn't really be run using this plugin, it
> is only somewhat recently that Windows had good SSH support. So, there are
> probably some leftovers from the plugin only being used on *NIX systems.
>
>
>
> On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout  wrote:
>
> Hi,
>
> Reinstalling Java into a path like c:\Java work just fine now. Wonder why
> the Linux and the Windows master doesn’t show the same behavior on this? Is
> this code part only for *nix platform?
>
>
>
> Anyway, thanks for the pointer,
>
> Jerome
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 4:23 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> It looks like this code would need to be updated to handle when there are
> spaces:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
> I have the reverse, a Windows controller and Linux agents. I specify the
> JAVA_HOME environment variable in my agent configuration and that works.
> Can you try that?
>
>
>
>
>
>
>
> On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
> wrote:
>
> Hi,
>
> I’m trying to access a Windows slave with SSH using Linux master Jenkins
> 2.235.5.
>
> [08/26/20 15:24:48] [SSH] Checking java version of 
> c:\JenkinsSlave/jdk/bin/java
>
> Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
>
> The system cannot find the path specified.
>
>
>
> [08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> Couldn't figure out the Java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> 'C:\Program' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> …
>
>
>
> But when I try it from my other Windows Jenkins master 2.251 (my
> development server for testing purpose) it does connect without issue and
> find the proper java into the same path.
>
>
>
> [08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" &&
> "C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar
> -workDir c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
>
> Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager
> initializeWorkDir
>
>
>
> Seem like the c:\Program Files\Java… is not escaped properly under Linux
> master. How to fix that? How can I fix this?
>
> Should I escape the env var JAVA_HOME and add quote into it? will it break
> something else?
>
>
>
> I’m trying to move the slave execution from my development Windows laptop
> to our official Linux master.
>
>
>
> Thanks,
>
> Jerome
>
> --
> 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/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
>
>
>
>
> --
>
> Website: http://earl-of-code.com
>
> --
> 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 d

RE: Windows slave by ssh

2020-08-26 Thread Jason Pyeron
Sorry to be a Johnny come lately – but we have only used SSH launch of windows 
for quite a long time now.

 

We use Cygwin to do so. You can use any SSH server though.

 

The most important thing is to ensure Java’s home has no spaces in the path.

 

The second most important thing is to use mixed pathing constructs. E.g. 
javaPath='C:/programs.x64/Java/jdk-14/bin/java note the forward slashes. It is 
a happy middle ground for bash and java.

 

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Slide
Sent: Wednesday, August 26, 2020 5:18 PM
To: Jenkins User Mailing List 
Subject: Re: Windows slave by ssh

 

Historically, Windows agents couldn't really be run using this plugin, it is 
only somewhat recently that Windows had good SSH support. So, there are 
probably some leftovers from the plugin only being used on *NIX systems. 

 

On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout mailto:godbo...@amotus.ca> > wrote:

Hi,

Reinstalling Java into a path like c:\Java work just fine now. Wonder why the 
Linux and the Windows master doesn’t show the same behavior on this? Is this 
code part only for *nix platform?

 

Anyway, thanks for the pointer,

Jerome

 

From: jenkinsci-users@googlegroups.com 
<mailto:jenkinsci-users@googlegroups.com>  mailto:jenkinsci-users@googlegroups.com> > On Behalf Of Slide
Sent: August 26, 2020 4:23 PM
To: Jenkins User Mailing List mailto:jenkinsci-users@googlegroups.com> >
Subject: Re: Windows slave by ssh

 

It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?

 

 

 

On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout mailto:godbo...@amotus.ca> > wrote:

Hi,

I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java
Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
The system cannot find the path specified.
 
[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java
Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

…

 

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

 

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache

Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

 

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this? 

Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

 

I’m trying to move the slave execution from my development Windows laptop to 
our official Linux master.

 

Thanks,

Jerome

-- 
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
 
<https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
 .




 

-- 

Website: http://earl-of-code.com

-- 
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com
 
<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com 
<mailto:je

Re: Windows slave by ssh

2020-08-26 Thread Slide
Historically, Windows agents couldn't really be run using this plugin, it
is only somewhat recently that Windows had good SSH support. So, there are
probably some leftovers from the plugin only being used on *NIX systems.

On Wed, Aug 26, 2020 at 2:07 PM Jérôme Godbout  wrote:

> Hi,
>
> Reinstalling Java into a path like c:\Java work just fine now. Wonder why
> the Linux and the Windows master doesn’t show the same behavior on this? Is
> this code part only for *nix platform?
>
>
>
> Anyway, thanks for the pointer,
>
> Jerome
>
>
>
> *From:* jenkinsci-users@googlegroups.com 
> *On Behalf Of *Slide
> *Sent:* August 26, 2020 4:23 PM
> *To:* Jenkins User Mailing List 
> *Subject:* Re: Windows slave by ssh
>
>
>
> It looks like this code would need to be updated to handle when there are
> spaces:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
> I have the reverse, a Windows controller and Linux agents. I specify the
> JAVA_HOME environment variable in my agent configuration and that works.
> Can you try that?
>
>
>
>
>
>
>
> On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
> wrote:
>
> Hi,
>
> I’m trying to access a Windows slave with SSH using Linux master Jenkins
> 2.235.5.
>
> [08/26/20 15:24:48] [SSH] Checking java version of 
> c:\JenkinsSlave/jdk/bin/java
>
> Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
>
> The system cannot find the path specified.
>
>
>
> [08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> Couldn't figure out the Java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> 'C:\Program' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> …
>
>
>
> But when I try it from my other Windows Jenkins master 2.251 (my
> development server for testing purpose) it does connect without issue and
> find the proper java into the same path.
>
>
>
> [08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" &&
> "C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar
> -workDir c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
>
> Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager
> initializeWorkDir
>
>
>
> Seem like the c:\Program Files\Java… is not escaped properly under Linux
> master. How to fix that? How can I fix this?
>
> Should I escape the env var JAVA_HOME and add quote into it? will it break
> something else?
>
>
>
> I’m trying to move the slave execution from my development Windows laptop
> to our official Linux master.
>
>
>
> Thanks,
>
> Jerome
>
> --
> 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/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
>
>
>
>
> --
>
> Website: http://earl-of-code.com
>
> --
> 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/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315DF8810480BC8915BEAF8CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315DF8810480BC8915BEAF8CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
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/CAPiUgVfES%3Dr9KLU37ZFfV7ujuS4gjDmPccEuk%2BNnGmg0GvYZCw%40mail.gmail.com.


RE: Windows slave by ssh

2020-08-26 Thread Jérôme Godbout
Hi,
Reinstalling Java into a path like c:\Java work just fine now. Wonder why the 
Linux and the Windows master doesn’t show the same behavior on this? Is this 
code part only for *nix platform?

Anyway, thanks for the pointer,
Jerome

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Slide
Sent: August 26, 2020 4:23 PM
To: Jenkins User Mailing List 
Subject: Re: Windows slave by ssh

It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.
…

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this?
Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

I’m trying to move the slave execution from my development Windows laptop to 
our official Linux master.

Thanks,
Jerome
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>.


--
Website: http://earl-of-code.com
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315DF8810480BC8915BEAF8CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM.


RE: Windows slave by ssh

2020-08-26 Thread Jérôme Godbout
WARNING, the following message contain strong opinion, if that do not suit you, 
stop reading now.

Don’t worry, I hate all Java equally... they fail the only promise they ever 
had, run everywhere… I hope this language rot in hell.

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Mark Waite
Sent: August 26, 2020 4:52 PM
To: Jenkins Users 
Subject: Re: Windows slave by ssh

I've preferred to install AdoptOpenJDK in a location that does not include 
spaces.  Oracle JDK licensing is more restrictive than I'm willing to accept 
and I want the latest Java 8 fixes.

On Wed, Aug 26, 2020 at 2:23 PM Slide 
mailto:slide.o@gmail.com>> wrote:
It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.
…

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this?
Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

I’m trying to move the slave execution from my development Windows laptop to 
our official Linux master.

Thanks,
Jerome
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>.


--
Website: http://earl-of-code.com
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGh_FntpKrRaEDCCtD-Xx59g8gKGvhQdmGV0tH4_MmvYw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGh_FntpKrRaEDCCtD-Xx59g8gKGvhQdmGV0tH4_MmvYw%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315064C40D28859D8BFB0DECD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM.


Re: Windows slave by ssh

2020-08-26 Thread Mark Waite
I've preferred to install AdoptOpenJDK in a location that does not include
spaces.  Oracle JDK licensing is more restrictive than I'm willing to
accept and I want the latest Java 8 fixes.

On Wed, Aug 26, 2020 at 2:23 PM Slide  wrote:

> It looks like this code would need to be updated to handle when there are
> spaces:
> https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
> I have the reverse, a Windows controller and Linux agents. I specify the
> JAVA_HOME environment variable in my agent configuration and that works.
> Can you try that?
>
>
>
> On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
> wrote:
>
>> Hi,
>>
>> I’m trying to access a Windows slave with SSH using Linux master Jenkins
>> 2.235.5.
>>
>> [08/26/20 15:24:48] [SSH] Checking java version of 
>> c:\JenkinsSlave/jdk/bin/java
>>
>> Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
>>
>> The system cannot find the path specified.
>>
>>
>>
>> [08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
>> Files\Java\jdk1.8.0_161/bin/java
>>
>> Couldn't figure out the Java version of C:\Program 
>> Files\Java\jdk1.8.0_161/bin/java
>>
>> 'C:\Program' is not recognized as an internal or external command,
>>
>> operable program or batch file.
>>
>> …
>>
>>
>>
>> But when I try it from my other Windows Jenkins master 2.251 (my
>> development server for testing purpose) it does connect without issue and
>> find the proper java into the same path.
>>
>>
>>
>> [08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" &&
>> "C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar
>> -workDir c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
>>
>> Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager
>> initializeWorkDir
>>
>>
>>
>> Seem like the c:\Program Files\Java… is not escaped properly under Linux
>> master. How to fix that? How can I fix this?
>>
>> Should I escape the env var JAVA_HOME and add quote into it? will it
>> break something else?
>>
>>
>>
>> I’m trying to move the slave execution from my development Windows laptop
>> to our official Linux master.
>>
>>
>>
>> Thanks,
>>
>> Jerome
>>
>> --
>> 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/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
>> <https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> 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/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGh_FntpKrRaEDCCtD-Xx59g8gKGvhQdmGV0tH4_MmvYw%40mail.gmail.com.


RE: Windows slave by ssh

2020-08-26 Thread Jérôme Godbout
Well, that doesn’t really help to put quote into the JAVA_HOME variable either:
[08/26/20 16:48:23] [SSH] Checking java version of "C:\Program 
Files\Java\jdk1.8.0_161"/bin/java
Couldn't figure out the Java version of "C:\Program 
Files\Java\jdk1.8.0_161"/bin/java
'"C:\Program Files\Java\jdk1.8.0_161"' is not recognized as an internal or 
external command,
operable program or batch file.

I guess I will just install Java into a non space path, feel like the 90’ avoid 
all space in path for bad path handling… I hardly believe I’m the first one to 
install Java into default Program Files folder for this?! Anyway copy time to 
c:\Java

From: jenkinsci-users@googlegroups.com  On 
Behalf Of Slide
Sent: August 26, 2020 4:23 PM
To: Jenkins User Mailing List 
Subject: Re: Windows slave by ssh

It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.
…

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this?
Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

I’m trying to move the slave execution from my development Windows laptop to 
our official Linux master.

Thanks,
Jerome
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>.


--
Website: http://earl-of-code.com
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB23151EA416B834D721DDCD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM.


Re: Windows slave by ssh

2020-08-26 Thread Slide
It looks like this code would need to be updated to handle when there are
spaces:
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
I have the reverse, a Windows controller and Linux agents. I specify the
JAVA_HOME environment variable in my agent configuration and that works.
Can you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout  wrote:

> Hi,
>
> I’m trying to access a Windows slave with SSH using Linux master Jenkins
> 2.235.5.
>
> [08/26/20 15:24:48] [SSH] Checking java version of 
> c:\JenkinsSlave/jdk/bin/java
>
> Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java
>
> The system cannot find the path specified.
>
>
>
> [08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> Couldn't figure out the Java version of C:\Program 
> Files\Java\jdk1.8.0_161/bin/java
>
> 'C:\Program' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> …
>
>
>
> But when I try it from my other Windows Jenkins master 2.251 (my
> development server for testing purpose) it does connect without issue and
> find the proper java into the same path.
>
>
>
> [08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" &&
> "C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar
> -workDir c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
>
> Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager
> initializeWorkDir
>
>
>
> Seem like the c:\Program Files\Java… is not escaped properly under Linux
> master. How to fix that? How can I fix this?
>
> Should I escape the env var JAVA_HOME and add quote into it? will it break
> something else?
>
>
>
> I’m trying to move the slave execution from my development Windows laptop
> to our official Linux master.
>
>
>
> Thanks,
>
> Jerome
>
> --
> 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/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM
> <https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
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/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com.


Re: Windows slave error

2019-08-29 Thread Anetta van der Walt
Also had to alow it on the master. So problem is now fixed.

On Thu, Aug 29, 2019 at 12:42 PM Anetta van der Walt 
wrote:

> Hey Emilo,
>
> Thanks for your response.
> I opened the port
>
> [image: Port.PNG]
> but still no luck
>
> [image: error.PNG]
> Any suggestions?
>
> Regards
> Anetta
>
> On Thursday, August 29, 2019 at 10:44:20 AM UTC+2, Emilio Escobar Reyero
> wrote:
>>
>> Hi,
>>
>> It seems that you cannot reach 10.17.23.30 (port:39677) from the slave
>> host. You need to check that before. Also seems to be a random port
>> (configured in the master at Manage Jenkins / Configure Global Security).
>> You probably prefer to use a fixed one (choosing one port like 5) and
>> opening it in your firewalls.
>>
>> Regards.
>>
>> On Thu, Aug 29, 2019 at 10:07 AM Anetta van der Walt 
>> wrote:
>>
>>> Good day
>>>
>>>
>>>
>>> I am trying to setup a windows slave, but keep getting this error
>>>
>>> [image: slave.png]
>>>
>>>
>>>
>>>
>>>
>>> I tried to solve it by setting “TCP port for inbound agents” to a
>>> specific port, but that is not helping.
>>>
>>> Any suggestions?
>>>
>>>
>>>
>>>
>>>
>>> Regards
>>>
>>> Anetta
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>>
>> Emilio Escobar
>> Software Engineer
>>
>> CloudBees, Inc.
>>
>> [image: CloudBees-Logo.png] <http://www.cloudbees.com>
>>
>>
>> E: eescoba...@cloudbees.com
>> Skype: escoem
>>
> --
> 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/d33847c8-f990-483a-bedf-b5a40f7af523%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d33847c8-f990-483a-bedf-b5a40f7af523%40googlegroups.com?utm_medium=email_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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADUMJYuxMGd4usb1F3NhVw8LweJKmPrb6B640ra%2BUzC7kLU_PA%40mail.gmail.com.


Re: Windows slave error

2019-08-29 Thread Anetta van der Walt
Hey Emilo,

Thanks for your response.
I opened the port

[image: Port.PNG]
but still no luck

[image: error.PNG]
Any suggestions?

Regards
Anetta

On Thursday, August 29, 2019 at 10:44:20 AM UTC+2, Emilio Escobar Reyero 
wrote:
>
> Hi,
>
> It seems that you cannot reach 10.17.23.30 (port:39677) from the slave 
> host. You need to check that before. Also seems to be a random port 
> (configured in the master at Manage Jenkins / Configure Global Security). 
> You probably prefer to use a fixed one (choosing one port like 5) and 
> opening it in your firewalls.
>
> Regards.
>
> On Thu, Aug 29, 2019 at 10:07 AM Anetta van der Walt  > wrote:
>
>> Good day
>>
>>  
>>
>> I am trying to setup a windows slave, but keep getting this error
>>
>> [image: slave.png]
>>
>>  
>>
>>  
>>
>> I tried to solve it by setting “TCP port for inbound agents” to a 
>> specific port, but that is not helping.
>>
>> Any suggestions?
>>
>>  
>>
>>  
>>
>> Regards
>>
>> Anetta
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
>
> Emilio Escobar
> Software Engineer
>
> CloudBees, Inc.
>
> [image: CloudBees-Logo.png] <http://www.cloudbees.com>
>
>
> E: eescoba...@cloudbees.com 
> Skype: escoem
>

-- 
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/d33847c8-f990-483a-bedf-b5a40f7af523%40googlegroups.com.


Re: Windows slave error

2019-08-29 Thread Emilio Escobar Reyero
Hi,

It seems that you cannot reach 10.17.23.30 (port:39677) from the slave
host. You need to check that before. Also seems to be a random port
(configured in the master at Manage Jenkins / Configure Global Security).
You probably prefer to use a fixed one (choosing one port like 5) and
opening it in your firewalls.

Regards.

On Thu, Aug 29, 2019 at 10:07 AM Anetta van der Walt 
wrote:

> Good day
>
>
>
> I am trying to setup a windows slave, but keep getting this error
>
> [image: slave.png]
>
>
>
>
>
> I tried to solve it by setting “TCP port for inbound agents” to a specific
> port, but that is not helping.
>
> Any suggestions?
>
>
>
>
>
> Regards
>
> Anetta
>
> --
> 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/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 

Emilio Escobar
Software Engineer

CloudBees, Inc.

[image: CloudBees-Logo.png] <http://www.cloudbees.com>


E: eescobarrey...@cloudbees.com
Skype: escoem

-- 
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/CAEVizn%2BmqqRojAR19%3DCA2pHTve6U1MoEf07ZsDMQigyF-VS8uQ%40mail.gmail.com.


Windows slave error

2019-08-29 Thread Anetta van der Walt


Good day

 

I am trying to setup a windows slave, but keep getting this error

[image: slave.png]

 

 

I tried to solve it by setting “TCP port for inbound agents” to a specific 
port, but that is not helping.

Any suggestions?

 

 

Regards

Anetta

-- 
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/c19448de-c6a6-4c0d-a69d-ff1c918d5ae9%40googlegroups.com.


Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Mark Waite
On Mon, Aug 5, 2019 at 9:33 AM Shubham Bansal  wrote:

>
> https://pastebin.com/yzL2vE9g
> Did you see these logs?
>
>
Yes. Did you see my quote from those logs in my reply 5 August 2019
18:17:05 UTC+5:30?

I don't have anything else to offer.  There are thousands of installations
successfully running Jenkins masters and Jenkins agents on different
machines using the same connection technique you're using.  I've made my
guesses about what might be different in your environment compared to those
other installations.

Mark Waite


>
> On Monday, 5 August 2019 21:01:46 UTC+5:30, Mark Waite wrote:
>>
>>
>>
>> On Mon, Aug 5, 2019 at 6:54 AM Shubham Bansal  wrote:
>>
>>> The protocol is chosen as "Inbound TCP Agent Protocol/4 (TLS
>>> encryption)" with fixed port "5378".
>>>
>>
>> That's a reasonable configuration.  That is listed as an unassigned port
>> in at least one of the ports databases
>> <https://www.speedguide.net/port.php?port=5378>, so it should be
>> reasonable to use that port number.
>>
>>
>>> What can possibly be an issue here?
>>>
>>
>> Something on the agent could be killing the agent process.
>> Something on the network between the agent and the master could be
>> breaking or damaging the communication.
>> Something on the master could be breaking or damaging the communication
>> between the agent and the master.
>>
>>
>>> And you have mentioned that something is changing the configuration, is
>>> there a way to figure that out what is the cause?
>>>
>>
>> Unless you see protocol 4 listed as disabled, then it is unlikely that
>> anything has changed the configuration.  I was speculating that something
>> might be changing the configuration, but if something is changing the
>> configuration, then you should see the protocol listed as 'disabled'
>> instead of 'enabled'.
>>
>> Mark Waite
>>
>>
>>>
>>> On Monday, 5 August 2019 18:17:05 UTC+5:30, Mark Waite wrote:
>>>>
>>>> When the master log says:
>>>>
>>>>
>>>>1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener
>>>>error
>>>>2. SEVERE: The server rejected the connection: None of the
>>>>protocols were accepted
>>>>3. java.lang.Exception: The server rejected the connection: None of
>>>>the protocols were accepted
>>>>4. at
>>>>hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
>>>>5. at hudson.remoting.Engine.innerRun(Engine.java:639)
>>>>6. at hudson.remoting.Engine.run(Engine.java:474)
>>>>
>>>>
>>>> that might hint that either something is damaging the communication
>>>> between the agent or something is changing the configuration of the master
>>>> to reject agent protocols that were previously accepted.  The protocols
>>>> which are accepted can be modified from a "Configure Global Security" page
>>>> of "Manage Jenkins".  The "Agents" section of that page includes a link to
>>>> enable and disable specific protocols.
>>>>
>>>> On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal 
>>>> wrote:
>>>>
>>>>> https://pastebin.com/ib0PK5af
>>>>>
>>>>> Can you tell me more from these logs of the slave windows machine?
>>>>>
>>>>>
>>>>> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>>>>>
>>>>>> Connecting the agent to the master *is* a robust way to connect.
>>>>>> Many users around the world use that method to connect agents to masters,
>>>>>> including Windows masters, Linux masters, and other platforms.
>>>>>>
>>>>>> If the agent is being disconnected after some time, there may be
>>>>>> something on the agent computer which kills the client process that runs 
>>>>>> on
>>>>>> the agent (for example, some program that won't allow Java programs to 
>>>>>> run
>>>>>> for an extended period).  If the agent process dies or is killed on the
>>>>>> agent computer, the agent will be disconnected.  If you're running the
>>>>>> agent process from the command line, then you may find hints to the cause
>>>>>> of the command line failure in the command prompt window that launched 
>>>

Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Shubham Bansal

https://pastebin.com/yzL2vE9g
Did you see these logs?


On Monday, 5 August 2019 21:01:46 UTC+5:30, Mark Waite wrote:
>
>
>
> On Mon, Aug 5, 2019 at 6:54 AM Shubham Bansal  > wrote:
>
>> The protocol is chosen as "Inbound TCP Agent Protocol/4 (TLS 
>> encryption)" with fixed port "5378". 
>>
>
> That's a reasonable configuration.  That is listed as an unassigned port 
> in at least one of the ports databases 
> <https://www.speedguide.net/port.php?port=5378>, so it should be 
> reasonable to use that port number.
>  
>
>> What can possibly be an issue here?
>>
>
> Something on the agent could be killing the agent process.
> Something on the network between the agent and the master could be 
> breaking or damaging the communication.
> Something on the master could be breaking or damaging the communication 
> between the agent and the master.
>  
>
>> And you have mentioned that something is changing the configuration, is 
>> there a way to figure that out what is the cause?
>>
>
> Unless you see protocol 4 listed as disabled, then it is unlikely that 
> anything has changed the configuration.  I was speculating that something 
> might be changing the configuration, but if something is changing the 
> configuration, then you should see the protocol listed as 'disabled' 
> instead of 'enabled'.
>
> Mark Waite
>  
>
>>
>> On Monday, 5 August 2019 18:17:05 UTC+5:30, Mark Waite wrote:
>>>
>>> When the master log says:
>>>
>>>
>>>1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener 
>>>error
>>>2. SEVERE: The server rejected the connection: None of the protocols 
>>>were accepted
>>>3. java.lang.Exception: The server rejected the connection: None of 
>>>the protocols were accepted
>>>4. at 
>>>hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
>>>5. at hudson.remoting.Engine.innerRun(Engine.java:639)
>>>6. at hudson.remoting.Engine.run(Engine.java:474)
>>>
>>>
>>> that might hint that either something is damaging the communication 
>>> between the agent or something is changing the configuration of the master 
>>> to reject agent protocols that were previously accepted.  The protocols 
>>> which are accepted can be modified from a "Configure Global Security" page 
>>> of "Manage Jenkins".  The "Agents" section of that page includes a link to 
>>> enable and disable specific protocols.
>>>
>>> On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal  
>>> wrote:
>>>
>>>> https://pastebin.com/ib0PK5af
>>>>
>>>> Can you tell me more from these logs of the slave windows machine?
>>>>
>>>>
>>>> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>>>>
>>>>> Connecting the agent to the master *is* a robust way to connect.  
>>>>> Many users around the world use that method to connect agents to masters, 
>>>>> including Windows masters, Linux masters, and other platforms.
>>>>>
>>>>> If the agent is being disconnected after some time, there may be 
>>>>> something on the agent computer which kills the client process that runs 
>>>>> on 
>>>>> the agent (for example, some program that won't allow Java programs to 
>>>>> run 
>>>>> for an extended period).  If the agent process dies or is killed on the 
>>>>> agent computer, the agent will be disconnected.  If you're running the 
>>>>> agent process from the command line, then you may find hints to the cause 
>>>>> of the command line failure in the command prompt window that launched 
>>>>> the 
>>>>> agent.  If you're running the agent process by clicking the "Launch" 
>>>>> button 
>>>>> to launch the agent from the browser, you may want to try running the 
>>>>> agent 
>>>>> from the command line instead, just in case some diagnostic messages 
>>>>> might 
>>>>> help you.
>>>>>
>>>>> There may be something in the networking definition between the master 
>>>>> and the agents which is causing the agent process to die.  Usually, when 
>>>>> the network connection is interrupted between a master and  agent 
>>>>> launched 
>>>>> to connect to the master.  Th

Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Mark Waite
On Mon, Aug 5, 2019 at 6:54 AM Shubham Bansal  wrote:

> The protocol is chosen as "Inbound TCP Agent Protocol/4 (TLS encryption)"
> with fixed port "5378".
>

That's a reasonable configuration.  That is listed as an unassigned port in
at least one of the ports databases
<https://www.speedguide.net/port.php?port=5378>, so it should be reasonable
to use that port number.


> What can possibly be an issue here?
>

Something on the agent could be killing the agent process.
Something on the network between the agent and the master could be breaking
or damaging the communication.
Something on the master could be breaking or damaging the communication
between the agent and the master.


> And you have mentioned that something is changing the configuration, is
> there a way to figure that out what is the cause?
>

Unless you see protocol 4 listed as disabled, then it is unlikely that
anything has changed the configuration.  I was speculating that something
might be changing the configuration, but if something is changing the
configuration, then you should see the protocol listed as 'disabled'
instead of 'enabled'.

Mark Waite


>
> On Monday, 5 August 2019 18:17:05 UTC+5:30, Mark Waite wrote:
>>
>> When the master log says:
>>
>>
>>1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener error
>>2. SEVERE: The server rejected the connection: None of the protocols
>>were accepted
>>3. java.lang.Exception: The server rejected the connection: None of
>>the protocols were accepted
>>4. at hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
>>5. at hudson.remoting.Engine.innerRun(Engine.java:639)
>>6. at hudson.remoting.Engine.run(Engine.java:474)
>>
>>
>> that might hint that either something is damaging the communication
>> between the agent or something is changing the configuration of the master
>> to reject agent protocols that were previously accepted.  The protocols
>> which are accepted can be modified from a "Configure Global Security" page
>> of "Manage Jenkins".  The "Agents" section of that page includes a link to
>> enable and disable specific protocols.
>>
>> On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal  wrote:
>>
>>> https://pastebin.com/ib0PK5af
>>>
>>> Can you tell me more from these logs of the slave windows machine?
>>>
>>>
>>> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>>>
>>>> Connecting the agent to the master *is* a robust way to connect.  Many
>>>> users around the world use that method to connect agents to masters,
>>>> including Windows masters, Linux masters, and other platforms.
>>>>
>>>> If the agent is being disconnected after some time, there may be
>>>> something on the agent computer which kills the client process that runs on
>>>> the agent (for example, some program that won't allow Java programs to run
>>>> for an extended period).  If the agent process dies or is killed on the
>>>> agent computer, the agent will be disconnected.  If you're running the
>>>> agent process from the command line, then you may find hints to the cause
>>>> of the command line failure in the command prompt window that launched the
>>>> agent.  If you're running the agent process by clicking the "Launch" button
>>>> to launch the agent from the browser, you may want to try running the agent
>>>> from the command line instead, just in case some diagnostic messages might
>>>> help you.
>>>>
>>>> There may be something in the networking definition between the master
>>>> and the agents which is causing the agent process to die.  Usually, when
>>>> the network connection is interrupted between a master and  agent launched
>>>> to connect to the master.  This seems less likely to be the problem, since
>>>> you mentioned that the when running as a restart, the service restarted
>>>> frequently.
>>>>
>>>> On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal 
>>>> wrote:
>>>>
>>>>> I have a Linux Azure machine as master and it connects to the windows
>>>>> slave machine using the option "Launch Agent by connecting it to master"
>>>>>
>>>>> This connects the agent fine but gets disconnected after some time
>>>>> (around 20-30 minutes). I tried running the agent as windows service but
>>>>> the service keeps restarting freque

Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Shubham Bansal
https://pastebin.com/yzL2vE9g

On Monday, 5 August 2019 18:17:05 UTC+5:30, Mark Waite wrote:
>
> When the master log says:
>
>
>1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener error
>2. SEVERE: The server rejected the connection: None of the protocols 
>were accepted
>3. java.lang.Exception: The server rejected the connection: None of 
>the protocols were accepted
>4. at hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
>5. at hudson.remoting.Engine.innerRun(Engine.java:639)
>6. at hudson.remoting.Engine.run(Engine.java:474)
>
>
> that might hint that either something is damaging the communication 
> between the agent or something is changing the configuration of the master 
> to reject agent protocols that were previously accepted.  The protocols 
> which are accepted can be modified from a "Configure Global Security" page 
> of "Manage Jenkins".  The "Agents" section of that page includes a link to 
> enable and disable specific protocols.
>
> On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal  > wrote:
>
>> https://pastebin.com/ib0PK5af
>>
>> Can you tell me more from these logs of the slave windows machine?
>>
>>
>> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>>
>>> Connecting the agent to the master *is* a robust way to connect.  Many 
>>> users around the world use that method to connect agents to masters, 
>>> including Windows masters, Linux masters, and other platforms.
>>>
>>> If the agent is being disconnected after some time, there may be 
>>> something on the agent computer which kills the client process that runs on 
>>> the agent (for example, some program that won't allow Java programs to run 
>>> for an extended period).  If the agent process dies or is killed on the 
>>> agent computer, the agent will be disconnected.  If you're running the 
>>> agent process from the command line, then you may find hints to the cause 
>>> of the command line failure in the command prompt window that launched the 
>>> agent.  If you're running the agent process by clicking the "Launch" button 
>>> to launch the agent from the browser, you may want to try running the agent 
>>> from the command line instead, just in case some diagnostic messages might 
>>> help you.
>>>
>>> There may be something in the networking definition between the master 
>>> and the agents which is causing the agent process to die.  Usually, when 
>>> the network connection is interrupted between a master and  agent launched 
>>> to connect to the master.  This seems less likely to be the problem, since 
>>> you mentioned that the when running as a restart, the service restarted 
>>> frequently.
>>>
>>> On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal  
>>> wrote:
>>>
>>>> I have a Linux Azure machine as master and it connects to the windows 
>>>> slave machine using the option "Launch Agent by connecting it to master"
>>>>
>>>> This connects the agent fine but gets disconnected after some time 
>>>> (around 20-30 minutes). I tried running the agent as windows service but 
>>>> the service keeps restarting frequently causing the build to fail of it is 
>>>> triggered at this time of restart process. 
>>>>
>>>> Can someone here suggest a more robust way to connect?
>>>>
>>>>
>>>> -- 
>>>> 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 jenkins...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Thanks!
>>> Mark Waite
>>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/a1bcedbd-1fa4-4bf2-866e-7652d4d6c98e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/a1bcedbd-1fa4-4bf2-866e-7652d4d6c98e%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Thanks!
> Mark Waite
>

-- 
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/a84ee633-920b-462c-9243-cd5e56542bd0%40googlegroups.com.


Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Shubham Bansal
The protocol is chosen as "Inbound TCP Agent Protocol/4 (TLS encryption)" 
with fixed port "5378". 
What can possibly be an issue here?
And you have mentioned that something is changing the configuration, is 
there a way to figure that out what is the cause?

On Monday, 5 August 2019 18:17:05 UTC+5:30, Mark Waite wrote:
>
> When the master log says:
>
>
>1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener error
>2. SEVERE: The server rejected the connection: None of the protocols 
>were accepted
>3. java.lang.Exception: The server rejected the connection: None of 
>the protocols were accepted
>4. at hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
>5. at hudson.remoting.Engine.innerRun(Engine.java:639)
>6. at hudson.remoting.Engine.run(Engine.java:474)
>
>
> that might hint that either something is damaging the communication 
> between the agent or something is changing the configuration of the master 
> to reject agent protocols that were previously accepted.  The protocols 
> which are accepted can be modified from a "Configure Global Security" page 
> of "Manage Jenkins".  The "Agents" section of that page includes a link to 
> enable and disable specific protocols.
>
> On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal  > wrote:
>
>> https://pastebin.com/ib0PK5af
>>
>> Can you tell me more from these logs of the slave windows machine?
>>
>>
>> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>>
>>> Connecting the agent to the master *is* a robust way to connect.  Many 
>>> users around the world use that method to connect agents to masters, 
>>> including Windows masters, Linux masters, and other platforms.
>>>
>>> If the agent is being disconnected after some time, there may be 
>>> something on the agent computer which kills the client process that runs on 
>>> the agent (for example, some program that won't allow Java programs to run 
>>> for an extended period).  If the agent process dies or is killed on the 
>>> agent computer, the agent will be disconnected.  If you're running the 
>>> agent process from the command line, then you may find hints to the cause 
>>> of the command line failure in the command prompt window that launched the 
>>> agent.  If you're running the agent process by clicking the "Launch" button 
>>> to launch the agent from the browser, you may want to try running the agent 
>>> from the command line instead, just in case some diagnostic messages might 
>>> help you.
>>>
>>> There may be something in the networking definition between the master 
>>> and the agents which is causing the agent process to die.  Usually, when 
>>> the network connection is interrupted between a master and  agent launched 
>>> to connect to the master.  This seems less likely to be the problem, since 
>>> you mentioned that the when running as a restart, the service restarted 
>>> frequently.
>>>
>>> On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal  
>>> wrote:
>>>
>>>> I have a Linux Azure machine as master and it connects to the windows 
>>>> slave machine using the option "Launch Agent by connecting it to master"
>>>>
>>>> This connects the agent fine but gets disconnected after some time 
>>>> (around 20-30 minutes). I tried running the agent as windows service but 
>>>> the service keeps restarting frequently causing the build to fail of it is 
>>>> triggered at this time of restart process. 
>>>>
>>>> Can someone here suggest a more robust way to connect?
>>>>
>>>>
>>>> -- 
>>>> 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 jenkins...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Thanks!
>>> Mark Waite
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>

Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Mark Waite
When the master log says:


   1. Aug 05, 2019 8:54:51 AM hudson.remoting.jnlp.Main$CuiListener error
   2. SEVERE: The server rejected the connection: None of the protocols
   were accepted
   3. java.lang.Exception: The server rejected the connection: None of the
   protocols were accepted
   4. at hudson.remoting.Engine.onConnectionRejected(Engine.java:682)
   5. at hudson.remoting.Engine.innerRun(Engine.java:639)
   6. at hudson.remoting.Engine.run(Engine.java:474)


that might hint that either something is damaging the communication between
the agent or something is changing the configuration of the master to
reject agent protocols that were previously accepted.  The protocols which
are accepted can be modified from a "Configure Global Security" page of
"Manage Jenkins".  The "Agents" section of that page includes a link to
enable and disable specific protocols.

On Mon, Aug 5, 2019 at 6:29 AM Shubham Bansal  wrote:

> https://pastebin.com/ib0PK5af
>
> Can you tell me more from these logs of the slave windows machine?
>
>
> On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>>
>> Connecting the agent to the master *is* a robust way to connect.  Many
>> users around the world use that method to connect agents to masters,
>> including Windows masters, Linux masters, and other platforms.
>>
>> If the agent is being disconnected after some time, there may be
>> something on the agent computer which kills the client process that runs on
>> the agent (for example, some program that won't allow Java programs to run
>> for an extended period).  If the agent process dies or is killed on the
>> agent computer, the agent will be disconnected.  If you're running the
>> agent process from the command line, then you may find hints to the cause
>> of the command line failure in the command prompt window that launched the
>> agent.  If you're running the agent process by clicking the "Launch" button
>> to launch the agent from the browser, you may want to try running the agent
>> from the command line instead, just in case some diagnostic messages might
>> help you.
>>
>> There may be something in the networking definition between the master
>> and the agents which is causing the agent process to die.  Usually, when
>> the network connection is interrupted between a master and  agent launched
>> to connect to the master.  This seems less likely to be the problem, since
>> you mentioned that the when running as a restart, the service restarted
>> frequently.
>>
>> On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal  wrote:
>>
>>> I have a Linux Azure machine as master and it connects to the windows
>>> slave machine using the option "Launch Agent by connecting it to master"
>>>
>>> This connects the agent fine but gets disconnected after some time
>>> (around 20-30 minutes). I tried running the agent as windows service but
>>> the service keeps restarting frequently causing the build to fail of it is
>>> triggered at this time of restart process.
>>>
>>> Can someone here suggest a more robust way to connect?
>>>
>>>
>>> --
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks!
>> Mark Waite
>>
> --
> 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/a1bcedbd-1fa4-4bf2-866e-7652d4d6c98e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a1bcedbd-1fa4-4bf2-866e-7652d4d6c98e%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Thanks!
Mark Waite

-- 
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/CAO49JtEKRT8eYNUkoRTmMf%2B4sjKtbyCuBHp6TkVm%2B06JJFjSaA%40mail.gmail.com.


Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Shubham Bansal
https://pastebin.com/ib0PK5af

Can you tell me more from these logs of the slave windows machine?


On Monday, 5 August 2019 17:42:23 UTC+5:30, Mark Waite wrote:
>
> Connecting the agent to the master *is* a robust way to connect.  Many 
> users around the world use that method to connect agents to masters, 
> including Windows masters, Linux masters, and other platforms.
>
> If the agent is being disconnected after some time, there may be something 
> on the agent computer which kills the client process that runs on the agent 
> (for example, some program that won't allow Java programs to run for an 
> extended period).  If the agent process dies or is killed on the agent 
> computer, the agent will be disconnected.  If you're running the agent 
> process from the command line, then you may find hints to the cause of the 
> command line failure in the command prompt window that launched the agent.  
> If you're running the agent process by clicking the "Launch" button to 
> launch the agent from the browser, you may want to try running the agent 
> from the command line instead, just in case some diagnostic messages might 
> help you.
>
> There may be something in the networking definition between the master and 
> the agents which is causing the agent process to die.  Usually, when the 
> network connection is interrupted between a master and  agent launched to 
> connect to the master.  This seems less likely to be the problem, since you 
> mentioned that the when running as a restart, the service restarted 
> frequently.
>
> On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal  > wrote:
>
>> I have a Linux Azure machine as master and it connects to the windows 
>> slave machine using the option "Launch Agent by connecting it to master"
>>
>> This connects the agent fine but gets disconnected after some time 
>> (around 20-30 minutes). I tried running the agent as windows service but 
>> the service keeps restarting frequently causing the build to fail of it is 
>> triggered at this time of restart process. 
>>
>> Can someone here suggest a more robust way to connect?
>>
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> Thanks!
> Mark Waite
>

-- 
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/a1bcedbd-1fa4-4bf2-866e-7652d4d6c98e%40googlegroups.com.


Re: Azure windows slave keeps disconnecting

2019-08-05 Thread Mark Waite
Connecting the agent to the master *is* a robust way to connect.  Many
users around the world use that method to connect agents to masters,
including Windows masters, Linux masters, and other platforms.

If the agent is being disconnected after some time, there may be something
on the agent computer which kills the client process that runs on the agent
(for example, some program that won't allow Java programs to run for an
extended period).  If the agent process dies or is killed on the agent
computer, the agent will be disconnected.  If you're running the agent
process from the command line, then you may find hints to the cause of the
command line failure in the command prompt window that launched the agent.
If you're running the agent process by clicking the "Launch" button to
launch the agent from the browser, you may want to try running the agent
from the command line instead, just in case some diagnostic messages might
help you.

There may be something in the networking definition between the master and
the agents which is causing the agent process to die.  Usually, when the
network connection is interrupted between a master and  agent launched to
connect to the master.  This seems less likely to be the problem, since you
mentioned that the when running as a restart, the service restarted
frequently.

On Mon, Aug 5, 2019 at 5:46 AM Shubham Bansal  wrote:

> I have a Linux Azure machine as master and it connects to the windows
> slave machine using the option "Launch Agent by connecting it to master"
>
> This connects the agent fine but gets disconnected after some time (around
> 20-30 minutes). I tried running the agent as windows service but the
> service keeps restarting frequently causing the build to fail of it is
> triggered at this time of restart process.
>
> Can someone here suggest a more robust way to connect?
>
>
> --
> 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/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Thanks!
Mark Waite

-- 
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/CAO49JtGOi2C1UjaNb-9w%2B7Tk4OCeNenTDSQjDcac-i8KuDRi%2Bg%40mail.gmail.com.


Jenkins agent keeps disconnecting on windows slave

2019-08-05 Thread Shubham Bansal
I have a Jenkins master on Azure linux machine and have an Azure Windows VM 
as a slave. The slave connects using the option ""Launch agent by 
connecting it to the master". 
When the launch command is run on the Windows machine, the agent does 
connect but it disconnects after some time (around 20-30 minutes).  I tried 
running the agent as a windows service but the service keeps restarting 
very frequently and if the master makes any request to this slave during 
this restart time, the build fails. 

Can someone here give me a more robust solution to this issue?

-- 
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/b1cbe7c0-c88e-42d5-95a4-da7a53761e03%40googlegroups.com.


Azure windows slave keeps disconnecting

2019-08-05 Thread Shubham Bansal
I have a Linux Azure machine as master and it connects to the windows slave 
machine using the option "Launch Agent by connecting it to master"

This connects the agent fine but gets disconnected after some time (around 
20-30 minutes). I tried running the agent as windows service but the 
service keeps restarting frequently causing the build to fail of it is 
triggered at this time of restart process. 

Can someone here suggest a more robust way to connect?


-- 
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/245d1ca6-c04a-469d-a3c3-5ee1e96ba966%40googlegroups.com.


Re: Unable to add a windows slave into Jenkins 2.177

2019-06-17 Thread Mark Waite
The "Unsupported major/minor version" message means that you are attempting
to run Java code that requires a Java 8 virtual machine on a Java version
that is less than Java 8.  It could be a configuration error in your PATH.
It could be an installation error on the computer.  It could be that the
default Java installed on the computer is older than Java 8.

Refer to
https://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0

On Mon, Jun 17, 2019 at 5:41 AM ANKUSH CHANDEL 
wrote:

> Hello All,
>
> Please help me out with adding a Windows slave into Jenkins.
> I am using Launch Method as "Launch agent by connecting it to the master".
>
> Which provides me three options to connect the slave machine.
>
> Connect agent to Jenkins one of these ways:
>
>-
>
>[image: launch agent]
>
> <https://phlox-dv.itn.intraorange:4443/computer/WIN_10_Ankush/slave-agent.jnlp>
>  Launch
>agent from browser
>-
>
>Run from agent command line:
>
>javaws http://Location:Port/computer/WIN_10_X/slave-agent.jnlp
>
>-
>
>Or if the agent is headless:
>
>java -jar agent.jar 
> <https://phlox-dv.itn.intraorange:4443/jnlpJars/agent.jar> -jnlpUrl 
> http://Location:Port/computer/WIN_10_X/slave-agent.jnlp -workDir 
> "C:\Jenkins\
>
>
> I have tired these steps but it saying unable to launch the application.
>
> C:\Jenkins>java -jar agent.jar -jnlpUrl 
> http://Location:Port/computer/WIN_10_X/slave-agent.jnlp
> -workDir "C:\Jenkins"
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> hudson/remoting/Launcher : Unsupported major.minor version 52.0
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
>
> C:\Jenkins>javaws http://Location:Port
> /computer/WIN_10_X/slave-agent.jnlp
>
> C:\Jenkins>java -jar agent.jar -jnlpUrl 
> http://Location:Port/computer/WIN_10_X/slave-agent.jnlp
> -workDir "C:\Jenkins"
> Error: Registry key 'Software\JavaSoft\Java Runtime
> Environment'\CurrentVersion'
> has value '1.8', but '1.7' is required.
> Error: could not find java.dll
> Error: Could not find Java SE Runtime Environment.
>
>
> Please help me out with this.
>
> --
> 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/35fd8d79-455b-4f35-8f27-ee5135b71893%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/35fd8d79-455b-4f35-8f27-ee5135b71893%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks!
Mark Waite

-- 
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/CAO49JtEGKoKeed47FezwLQsTWaRqqUsR1PKDqfSVqsiVy8zTZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Unable to add a windows slave into Jenkins 2.177

2019-06-17 Thread ANKUSH CHANDEL
Hello All,

Please help me out with adding a Windows slave into Jenkins.
I am using Launch Method as "Launch agent by connecting it to the master".

Which provides me three options to connect the slave machine.

Connect agent to Jenkins one of these ways:

   - 
   
   [image: launch agent] 
   
<https://phlox-dv.itn.intraorange:4443/computer/WIN_10_Ankush/slave-agent.jnlp> 
Launch 
   agent from browser
   - 
   
   Run from agent command line:
   
   javaws http://Location:Port/computer/WIN_10_X/slave-agent.jnlp
   
   - 
   
   Or if the agent is headless:
   
   java -jar agent.jar 
<https://phlox-dv.itn.intraorange:4443/jnlpJars/agent.jar> -jnlpUrl 
http://Location:Port/computer/WIN_10_X/slave-agent.jnlp -workDir 
"C:\Jenkins\
   
   
I have tired these steps but it saying unable to launch the application.

C:\Jenkins>java -jar agent.jar -jnlpUrl 
http://Location:Port/computer/WIN_10_X/slave-agent.jnlp -workDir 
"C:\Jenkins"
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
hudson/remoting/Launcher : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

C:\Jenkins>javaws 
http://Location:Port/computer/WIN_10_X/slave-agent.jnlp

C:\Jenkins>java -jar agent.jar -jnlpUrl 
http://Location:Port/computer/WIN_10_X/slave-agent.jnlp -workDir 
"C:\Jenkins"
Error: Registry key 'Software\JavaSoft\Java Runtime 
Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.


Please help me out with this.

-- 
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/35fd8d79-455b-4f35-8f27-ee5135b71893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem when trying to connect to GitHub from a Windows slave

2019-05-27 Thread Sébastien Hinderer
Hello David,

Many thanks for your response!

eyal david (2019/05/27 18:37 +0300):
> Hi
> Try to recreate new keys from the windows slave using the git bash ...

What do you mean by git bash ?

> than create credentails id in jenkins master based on the your private key
> created on the windows slave

And hten of course the public key needs to be added on GitHub. Well
since the manual clone worked I'm a bit reluctant to do all this, I have
to say.

Sébastien.

-- 
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/20190527204254.GA2102%40prajna.paris.inria.fr.
For more options, visit https://groups.google.com/d/optout.


Re: Problem when trying to connect to GitHub from a Windows slave

2019-05-27 Thread Sébastien Hinderer
Hi,

Many thanks for your response.

Geoffroy J (2019/05/27 09:18 -0700):
> Hello
> 
> Have you tried cloning manually using the ssh key on windows?

Yes, and it worked.
Sorry I forgot to mention this.

> Also, what username have you configured for your git credential on
> Jenkins?

The GitHub user name. But the 'git@' part in the URL of the repository.
Additionnally, as I mentionned, this setting works perfectly well for
the Unix machines.

> I faced ssh issues on windows because of change in SSH/GIT and it was 
> necessary to set credential username to 'git' instead of the real github 
> username. See https://issues.jenkins-ci.org/browse/JENKINS-50573

Thanks! Actually, my GitHub plugin is up-to-date so I'd expect this to
be fixed, right?

Also my error message is different from the one reported in the bug,
mine explicitly mentions an "invalid format" in the keyfile.

But many thanks for helping out, I really appreciate and hope we willl
find the problem!

Sébastien.

-- 
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/20190527203246.GB1939%40prajna.paris.inria.fr.
For more options, visit https://groups.google.com/d/optout.


Re: Problem when trying to connect to GitHub from a Windows slave

2019-05-27 Thread Geoffroy J
Hello

Have you tried cloning manually using the ssh key on windows?

Also, what username have you configured for your git credential on Jenkins?
I faced ssh issues on windows because of change in SSH/GIT and it was 
necessary to set credential username to 'git' instead of the real github 
username. See https://issues.jenkins-ci.org/browse/JENKINS-50573

BR

On Monday, 27 May 2019 16:50:59 UTC+2, Sébastien Hinderer wrote:
>
> Dear all, 
>
> Recently, I wanted my slaves to fetch our GitHub repository through 
> authenticated ssh coneections rather than through HTTPS unauthenticated 
> connections. 
>
> I created the appropriate Jenkins credential with ssh keys, replaced the 
> HTTPS URL of the repo by an ssh-based one and requested the use of the 
> newly created credential. 
>
> On our Unix machines everything works like a charm. 
>
> On our Windows machines, though, I get an "invalid format" message while 
> trying to read a .key file. 
>
> In case it's useful, our Windows hosts are running git 2.17.0 and 
> OpenSSH 7.8p1. 
>
> Many thanks in advance for any hint! 
>
> Sébastien. 
>

>

-- 
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/ddb9de8e-9a6d-4c3a-892d-4a08c9501322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problem when trying to connect to GitHub from a Windows slave

2019-05-27 Thread Sébastien Hinderer
Dear all,

Recently, I wanted my slaves to fetch our GitHub repository through
authenticated ssh coneections rather than through HTTPS unauthenticated
connections.

I created the appropriate Jenkins credential with ssh keys, replaced the
HTTPS URL of the repo by an ssh-based one and requested the use of the
newly created credential.

On our Unix machines everything works like a charm.

On our Windows machines, though, I get an "invalid format" message while
trying to read a .key file.

In case it's useful, our Windows hosts are running git 2.17.0 and
OpenSSH 7.8p1.

Many thanks in advance for any hint!

Sébastien.

-- 
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/20190527135323.GA32420%40prajna.paris.inria.fr.
For more options, visit https://groups.google.com/d/optout.


Re: SSH vs java web start for windows slave and Linux master in jenkins

2019-05-02 Thread rausalinas
ssh lets you only use resources while you need that node.  (unless you 
chose "Use this node as much as possible")

If I remember correctly, an agent can use around 80 MB of RAM. If your 
machine is quite resource-constrained, such as a Raspberry Pi that you use 
only sometimes for building for that platform, you may well want to save 
resources in case you use that machine for other purposes.

-- 
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/0c941b23-b884-4a72-9900-b4cb4ffb2116%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
created ssh keys using ssh-keygen from git bash on windows, it works, Thank
you very much Mark

Regards,
Venkat

On Wed, Apr 10, 2019 at 1:54 PM Mark Waite 
wrote:

> I'd create the keys on Windows using the ssh-keygen command on Windows.
> OpenSSH on Windows will be consuming the keys.
>
> On Wed, Apr 10, 2019 at 11:43 AM Venkatapathi Jaligama <
> jvenkat...@gmail.com> wrote:
>
>> Hello Mark,
>>
>> First time i created key on linux, second-time I created on windows slave
>> from putty gen and convert to openssh format and then use the keys, even
>> these keys work for linux slaves but not for windows slave, gives invalid
>> format
>>
>> On Wed, Apr 10, 2019 at 1:38 PM Mark Waite 
>> wrote:
>>
>>> I've seen problems in the past where I needed to generate the private
>>> key / public key pair on the machine that would be using the key.  When you
>>> created the private key, did you run ssh-keygen on the Windows computer
>>> that is using the key?  If not, you might try that.
>>>
>>> On Wed, Apr 10, 2019 at 11:23 AM Venkatapathi Jaligama <
>>> jvenkat...@gmail.com> wrote:
>>>
>>>> Hello Mark,
>>>> Thank you for you prompt response, I have already tested this scenario
>>>> also removed all the jeys from windows slave and only use the jenkins
>>>> credentials still does not work, I generated new keys and added the private
>>>> key in the jenkins credentials and public key in Gitlab still same issue.
>>>> Could you think of anything else.
>>>>
>>>> Thanks,
>>>> Venkat
>>>>
>>>> On Wed, Apr 10, 2019 at 11:43 AM Mark Waite 
>>>> wrote:
>>>>
>>>>> Compare the contents of the private key definition in the Jenkins
>>>>> credentials UI with the private key that is being used on the Windows
>>>>> agent.  If the key is incorrectly defined in the Jenkins credentials, that
>>>>> might cause the problem you're seeing.
>>>>>
>>>>> Move (or hide) all other private keys on the Windows agent to be sure
>>>>> that your successful interactive test was not using a different private 
>>>>> key
>>>>> than the private key used in the Jenkins credential.
>>>>>
>>>>> On Wed, Apr 10, 2019 at 3:47 AM  wrote:
>>>>>
>>>>>> Hello Users,
>>>>>>
>>>>>> I have Jenkins with master slave configuration, I have linux slaves
>>>>>> and windows slaves
>>>>>> I am unable to use the Gitlab  SSH credentials on Windows Slave
>>>>>> Fails on scm checkout, The scm checkout works fine for the linux
>>>>>> slaves
>>>>>> To test the id_rsa key, I put the id_rsa in .ssh of home directory
>>>>>> and do git clone, it works fine, but somehow from git credentials it seem
>>>>>> to have a problem
>>>>>> Is there a workaround for this issue any help is very much appreciated
>>>>>>
>>>>>> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
>>>>>> Wiping out workspace first.
>>>>>> Cloning the remote Git repository
>>>>>> Cloning repository ssh://g...@gitlab-.com/xx.git
>>>>>>  > git init 
>>>>>> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>>>>>>  # timeout=10
>>>>>> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>>>>>>  > git --version # timeout=10
>>>>>> using GIT_SSH to set credentials Jenkins private ssh key
>>>>>>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
>>>>>> +refs/heads/*:refs/remotes/origin/* # timeout=7
>>>>>> ERROR: Error cloning remote repo 'origin'
>>>>>> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
>>>>>> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
>>>>>> returned status code 128:
>>>>>> stdout:
>>>>>> stderr: Load key 
>>>>>> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>>>>>>  invalid format
>>>>>> Permission denied, please try again.
>>>>>> Permission denied, please try again@gitlab-.com/xx.gi

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
I'd create the keys on Windows using the ssh-keygen command on Windows.
OpenSSH on Windows will be consuming the keys.

On Wed, Apr 10, 2019 at 11:43 AM Venkatapathi Jaligama 
wrote:

> Hello Mark,
>
> First time i created key on linux, second-time I created on windows slave
> from putty gen and convert to openssh format and then use the keys, even
> these keys work for linux slaves but not for windows slave, gives invalid
> format
>
> On Wed, Apr 10, 2019 at 1:38 PM Mark Waite 
> wrote:
>
>> I've seen problems in the past where I needed to generate the private key
>> / public key pair on the machine that would be using the key.  When you
>> created the private key, did you run ssh-keygen on the Windows computer
>> that is using the key?  If not, you might try that.
>>
>> On Wed, Apr 10, 2019 at 11:23 AM Venkatapathi Jaligama <
>> jvenkat...@gmail.com> wrote:
>>
>>> Hello Mark,
>>> Thank you for you prompt response, I have already tested this scenario
>>> also removed all the jeys from windows slave and only use the jenkins
>>> credentials still does not work, I generated new keys and added the private
>>> key in the jenkins credentials and public key in Gitlab still same issue.
>>> Could you think of anything else.
>>>
>>> Thanks,
>>> Venkat
>>>
>>> On Wed, Apr 10, 2019 at 11:43 AM Mark Waite 
>>> wrote:
>>>
>>>> Compare the contents of the private key definition in the Jenkins
>>>> credentials UI with the private key that is being used on the Windows
>>>> agent.  If the key is incorrectly defined in the Jenkins credentials, that
>>>> might cause the problem you're seeing.
>>>>
>>>> Move (or hide) all other private keys on the Windows agent to be sure
>>>> that your successful interactive test was not using a different private key
>>>> than the private key used in the Jenkins credential.
>>>>
>>>> On Wed, Apr 10, 2019 at 3:47 AM  wrote:
>>>>
>>>>> Hello Users,
>>>>>
>>>>> I have Jenkins with master slave configuration, I have linux slaves
>>>>> and windows slaves
>>>>> I am unable to use the Gitlab  SSH credentials on Windows Slave
>>>>> Fails on scm checkout, The scm checkout works fine for the linux
>>>>> slaves
>>>>> To test the id_rsa key, I put the id_rsa in .ssh of home directory
>>>>> and do git clone, it works fine, but somehow from git credentials it seem
>>>>> to have a problem
>>>>> Is there a workaround for this issue any help is very much appreciated
>>>>>
>>>>> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
>>>>> Wiping out workspace first.
>>>>> Cloning the remote Git repository
>>>>> Cloning repository ssh://g...@gitlab-.com/xx.git
>>>>>  > git init 
>>>>> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>>>>>  # timeout=10
>>>>> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>>>>>  > git --version # timeout=10
>>>>> using GIT_SSH to set credentials Jenkins private ssh key
>>>>>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
>>>>> +refs/heads/*:refs/remotes/origin/* # timeout=7
>>>>> ERROR: Error cloning remote repo 'origin'
>>>>> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
>>>>> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
>>>>> returned status code 128:
>>>>> stdout:
>>>>> stderr: Load key 
>>>>> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>>>>>  invalid format
>>>>> Permission denied, please try again.
>>>>> Permission denied, please try again@gitlab-.com/xx.git: 
>>>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
>>>>> fatal: Could not read from remote repository.
>>>>>
>>>>> Please make sure you have the correct access rights
>>>>> and the repository exists.
>>>>>
>>>>>   at 
>>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
>>>>>   at 
>>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launch

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
Hello Mark,

First time i created key on linux, second-time I created on windows slave
from putty gen and convert to openssh format and then use the keys, even
these keys work for linux slaves but not for windows slave, gives invalid
format

On Wed, Apr 10, 2019 at 1:38 PM Mark Waite 
wrote:

> I've seen problems in the past where I needed to generate the private key
> / public key pair on the machine that would be using the key.  When you
> created the private key, did you run ssh-keygen on the Windows computer
> that is using the key?  If not, you might try that.
>
> On Wed, Apr 10, 2019 at 11:23 AM Venkatapathi Jaligama <
> jvenkat...@gmail.com> wrote:
>
>> Hello Mark,
>> Thank you for you prompt response, I have already tested this scenario
>> also removed all the jeys from windows slave and only use the jenkins
>> credentials still does not work, I generated new keys and added the private
>> key in the jenkins credentials and public key in Gitlab still same issue.
>> Could you think of anything else.
>>
>> Thanks,
>> Venkat
>>
>> On Wed, Apr 10, 2019 at 11:43 AM Mark Waite 
>> wrote:
>>
>>> Compare the contents of the private key definition in the Jenkins
>>> credentials UI with the private key that is being used on the Windows
>>> agent.  If the key is incorrectly defined in the Jenkins credentials, that
>>> might cause the problem you're seeing.
>>>
>>> Move (or hide) all other private keys on the Windows agent to be sure
>>> that your successful interactive test was not using a different private key
>>> than the private key used in the Jenkins credential.
>>>
>>> On Wed, Apr 10, 2019 at 3:47 AM  wrote:
>>>
>>>> Hello Users,
>>>>
>>>> I have Jenkins with master slave configuration, I have linux slaves and
>>>> windows slaves
>>>> I am unable to use the Gitlab  SSH credentials on Windows Slave
>>>> Fails on scm checkout, The scm checkout works fine for the linux slaves
>>>> To test the id_rsa key, I put the id_rsa in .ssh of home directory  and
>>>> do git clone, it works fine, but somehow from git credentials it seem to
>>>> have a problem
>>>> Is there a workaround for this issue any help is very much appreciated
>>>>
>>>> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
>>>> Wiping out workspace first.
>>>> Cloning the remote Git repository
>>>> Cloning repository ssh://g...@gitlab-.com/xx.git
>>>>  > git init 
>>>> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>>>>  # timeout=10
>>>> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>>>>  > git --version # timeout=10
>>>> using GIT_SSH to set credentials Jenkins private ssh key
>>>>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
>>>> +refs/heads/*:refs/remotes/origin/* # timeout=7
>>>> ERROR: Error cloning remote repo 'origin'
>>>> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
>>>> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
>>>> returned status code 128:
>>>> stdout:
>>>> stderr: Load key 
>>>> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>>>>  invalid format
>>>> Permission denied, please try again.
>>>> Permission denied, please try again@gitlab-.com/xx.git: Permission 
>>>> denied (publickey,gssapi-keyex,gssapi-with-mic,password).
>>>> fatal: Could not read from remote repository.
>>>>
>>>> Please make sure you have the correct access rights
>>>> and the repository exists.
>>>>
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614)
>>>>at 
>>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
I've seen problems in the past where I needed to generate the private key /
public key pair on the machine that would be using the key.  When you
created the private key, did you run ssh-keygen on the Windows computer
that is using the key?  If not, you might try that.

On Wed, Apr 10, 2019 at 11:23 AM Venkatapathi Jaligama 
wrote:

> Hello Mark,
> Thank you for you prompt response, I have already tested this scenario
> also removed all the jeys from windows slave and only use the jenkins
> credentials still does not work, I generated new keys and added the private
> key in the jenkins credentials and public key in Gitlab still same issue.
> Could you think of anything else.
>
> Thanks,
> Venkat
>
> On Wed, Apr 10, 2019 at 11:43 AM Mark Waite 
> wrote:
>
>> Compare the contents of the private key definition in the Jenkins
>> credentials UI with the private key that is being used on the Windows
>> agent.  If the key is incorrectly defined in the Jenkins credentials, that
>> might cause the problem you're seeing.
>>
>> Move (or hide) all other private keys on the Windows agent to be sure
>> that your successful interactive test was not using a different private key
>> than the private key used in the Jenkins credential.
>>
>> On Wed, Apr 10, 2019 at 3:47 AM  wrote:
>>
>>> Hello Users,
>>>
>>> I have Jenkins with master slave configuration, I have linux slaves and
>>> windows slaves
>>> I am unable to use the Gitlab  SSH credentials on Windows Slave
>>> Fails on scm checkout, The scm checkout works fine for the linux slaves
>>> To test the id_rsa key, I put the id_rsa in .ssh of home directory  and
>>> do git clone, it works fine, but somehow from git credentials it seem to
>>> have a problem
>>> Is there a workaround for this issue any help is very much appreciated
>>>
>>> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
>>> Wiping out workspace first.
>>> Cloning the remote Git repository
>>> Cloning repository ssh://g...@gitlab-.com/xx.git
>>>  > git init 
>>> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>>>  # timeout=10
>>> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>>>  > git --version # timeout=10
>>> using GIT_SSH to set credentials Jenkins private ssh key
>>>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
>>> +refs/heads/*:refs/remotes/origin/* # timeout=7
>>> ERROR: Error cloning remote repo 'origin'
>>> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
>>> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
>>> returned status code 128:
>>> stdout:
>>> stderr: Load key 
>>> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>>>  invalid format
>>> Permission denied, please try again.
>>> Permission denied, please try again@gitlab-.com/xx.git: Permission 
>>> denied (publickey,gssapi-keyex,gssapi-with-mic,password).
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>>
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
>>> at 
>>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614)
>>> at 
>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>>> at 
>>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>>> at hudson.remoting.UserRequest.perform(UserRequest.java:212)
>>> at hudson.remoting.UserRequest.perform(UserRequest.java:54)
>>> at hudson.remoting.Request$2.run(Request.java:369)
>>> at 
>>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>> at java.util.concurrent.FutureTask.run(Unknown Source)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Sour

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Venkatapathi Jaligama
Hello Mark,
Thank you for you prompt response, I have already tested this scenario also
removed all the jeys from windows slave and only use the jenkins
credentials still does not work, I generated new keys and added the private
key in the jenkins credentials and public key in Gitlab still same issue.
Could you think of anything else.

Thanks,
Venkat

On Wed, Apr 10, 2019 at 11:43 AM Mark Waite 
wrote:

> Compare the contents of the private key definition in the Jenkins
> credentials UI with the private key that is being used on the Windows
> agent.  If the key is incorrectly defined in the Jenkins credentials, that
> might cause the problem you're seeing.
>
> Move (or hide) all other private keys on the Windows agent to be sure that
> your successful interactive test was not using a different private key than
> the private key used in the Jenkins credential.
>
> On Wed, Apr 10, 2019 at 3:47 AM  wrote:
>
>> Hello Users,
>>
>> I have Jenkins with master slave configuration, I have linux slaves and
>> windows slaves
>> I am unable to use the Gitlab  SSH credentials on Windows Slave
>> Fails on scm checkout, The scm checkout works fine for the linux slaves
>> To test the id_rsa key, I put the id_rsa in .ssh of home directory  and
>> do git clone, it works fine, but somehow from git credentials it seem to
>> have a problem
>> Is there a workaround for this issue any help is very much appreciated
>>
>> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
>> Wiping out workspace first.
>> Cloning the remote Git repository
>> Cloning repository ssh://g...@gitlab-.com/xx.git
>>  > git init 
>> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>>  # timeout=10
>> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>>  > git --version # timeout=10
>> using GIT_SSH to set credentials Jenkins private ssh key
>>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
>> +refs/heads/*:refs/remotes/origin/* # timeout=7
>> ERROR: Error cloning remote repo 'origin'
>> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
>> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
>> returned status code 128:
>> stdout:
>> stderr: Load key 
>> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>>  invalid format
>> Permission denied, please try again.
>> Permission denied, please try again@gitlab-.com/xx.git: Permission 
>> denied (publickey,gssapi-keyex,gssapi-with-mic,password).
>> fatal: Could not read from remote repository.
>>
>> Please make sure you have the correct access rights
>> and the repository exists.
>>
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
>>  at 
>> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614)
>>  at 
>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>>  at 
>> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>>  at hudson.remoting.UserRequest.perform(UserRequest.java:212)
>>  at hudson.remoting.UserRequest.perform(UserRequest.java:54)
>>  at hudson.remoting.Request$2.run(Request.java:369)
>>  at 
>> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>>  at java.util.concurrent.FutureTask.run(Unknown Source)
>>  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>  at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
>>  at java.lang.Thread.run(Unknown Source)
>>  Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
>> JNLP4-connect connection from 10.171.1.123/10.171.1.123:1035
>>  at 
>> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
>>  at 
>> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
>>  at hudson.remoting.Channel.call(Channel.java:955)
>>  at 

Re: Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread Mark Waite
Compare the contents of the private key definition in the Jenkins
credentials UI with the private key that is being used on the Windows
agent.  If the key is incorrectly defined in the Jenkins credentials, that
might cause the problem you're seeing.

Move (or hide) all other private keys on the Windows agent to be sure that
your successful interactive test was not using a different private key than
the private key used in the Jenkins credential.

On Wed, Apr 10, 2019 at 3:47 AM  wrote:

> Hello Users,
>
> I have Jenkins with master slave configuration, I have linux slaves and
> windows slaves
> I am unable to use the Gitlab  SSH credentials on Windows Slave
> Fails on scm checkout, The scm checkout works fine for the linux slaves
> To test the id_rsa key, I put the id_rsa in .ssh of home directory  and do
> git clone, it works fine, but somehow from git credentials it seem to have
> a problem
> Is there a workaround for this issue any help is very much appreciated
>
> using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
> Wiping out workspace first.
> Cloning the remote Git repository
> Cloning repository ssh://g...@gitlab-.com/xx.git
>  > git init 
> E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
>  # timeout=10
> Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
>  > git --version # timeout=10
> using GIT_SSH to set credentials Jenkins private ssh key
>  > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
> +refs/heads/*:refs/remotes/origin/* # timeout=7
> ERROR: Error cloning remote repo 'origin'
> hudson.plugins.git.GitException: Command "git fetch --tags --progress 
> ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" 
> returned status code 128:
> stdout:
> stderr: Load key 
> "E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
>  invalid format
> Permission denied, please try again.
> Permission denied, please try again@gitlab-.com/xx.git: Permission 
> denied (publickey,gssapi-keyex,gssapi-with-mic,password).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
>   at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
>   at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
>   at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
>   at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
>   at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614)
>   at 
> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>   at 
> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:212)
>   at hudson.remoting.UserRequest.perform(UserRequest.java:54)
>   at hudson.remoting.Request$2.run(Request.java:369)
>   at 
> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
>   at java.util.concurrent.FutureTask.run(Unknown Source)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>   at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
>   at java.lang.Thread.run(Unknown Source)
>   Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
> JNLP4-connect connection from 10.171.1.123/10.171.1.123:1035
>   at 
> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
>   at 
> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
>   at hudson.remoting.Channel.call(Channel.java:955)
>   at 
> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
>   at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:498)
>   at 
> org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
>   at com.sun.proxy.$Proxy94.execute(Unknown Source)
>   at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
> 

Jenkins Windows Slave GIT_SSH Invalid format

2019-04-10 Thread jvenkat099
Hello Users,

I have Jenkins with master slave configuration, I have linux slaves and 
windows slaves
I am unable to use the Gitlab  SSH credentials on Windows Slave
Fails on scm checkout, The scm checkout works fine for the linux slaves 
To test the id_rsa key, I put the id_rsa in .ssh of home directory  and do 
git clone, it works fine, but somehow from git credentials it seem to have 
a problem
Is there a workaround for this issue any help is very much appreciated

using credential 2090ffbd-ddc3-45a9-adfb-e9c0e5ca4c75
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository ssh://g...@gitlab-.com/xx.git
 > git init 
 > E:\workspace\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ
 >  # timeout=10
Fetching upstream changes from ssh://g...@gitlab-.com/xx.git
 > git --version # timeout=10
using GIT_SSH to set credentials Jenkins private ssh key
 > git fetch --tags --progress ssh://g...@gitlab-.com/xx.git 
 > +refs/heads/*:refs/remotes/origin/* # timeout=7
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress 
ssh://g...@gitlab-.com/xx.git +refs/heads/*:refs/remotes/origin/*" returned 
status code 128:
stdout: 
stderr: Load key 
"E:\\workspace\\Main_Build_master-HAJ7MPMVYIUEWROZ6RHLXJYVT3JUCE7ZDT7PHAOWUKJQYMDSW5KQ@tmp\\ssh8872120221702825356.key":
 invalid format
Permission denied, please try again.
Permission denied, please try again.
g...@gitlab-.com/xx.git: Permission denied 
(publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:614)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Unknown Source)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
JNLP4-connect connection from 10.171.1.123/10.171.1.123:1035
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy94.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
at 
org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
at 
org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)
at 
org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75)
at 
org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:290)
at 
org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at 
java.util.concurrent.Executors$R

Re: Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
Yes Jeff.  That's where I configured. 
JVM Options - "-Xmx3072m"



On Tuesday, November 27, 2018 at 1:07:10 PM UTC-5, Jeff Thompson wrote:
>
> I suggest you try configuring it at the configuration page for the node in 
> Jenkins. Look under the Advanced button for JVM options.
>
> Jeff Thompson 
>
> On Nov 27, 2018, at 7:32 AM, gotvi...@gmail.com  wrote:
>
> We have a Windows 2016 Slave.  The slave gets disconnected due to heap 
> memory maxing out.  How to increase the heap size to tackle this issue?  
> This is a bit urgent please.
>
> -- 
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/c1393ce1-03c2-43f4-b7df-58a14bb80ebc%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/9dad0670-29bd-4597-b40c-578cb1a0ef97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Increase Java heap size of Windows Slave

2018-11-27 Thread Jeff Thompson
I suggest you try configuring it at the configuration page for the node in 
Jenkins. Look under the Advanced button for JVM options.

Jeff Thompson

> On Nov 27, 2018, at 7:32 AM, gotviser...@gmail.com wrote:
> 
> We have a Windows 2016 Slave.  The slave gets disconnected due to heap memory 
> maxing out.  How to increase the heap size to tackle this issue?  This is a 
> bit urgent please.
> 
> -- 
> 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/c1393ce1-03c2-43f4-b7df-58a14bb80ebc%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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/978DF48F-1E34-49DA-8908-FF099846D9BA%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.


Re: Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
Thanks a lot Victor.  This helps.

On Tuesday, November 27, 2018 at 12:51:31 PM UTC-5, Victor Martinez wrote:
>
> It does depend on how that particular windows agent is launched. The below 
> references can help you:
> - https://issues.jenkins-ci.org/browse/JENKINS-3554
> - 
> https://support.cloudbees.com/hc/en-us/articles/204264000-Why-do-I-receive-java-lang-OutOfMemoryError-PermGen-space
>  
> might also help
>
>

-- 
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/b2bc2d80-d853-4420-97ad-717d35d6ea45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Increase Java heap size of Windows Slave

2018-11-27 Thread Victor Martinez
It does depend on how that particular windows agent is launched. The below 
references can help you:
- https://issues.jenkins-ci.org/browse/JENKINS-3554
- 
https://support.cloudbees.com/hc/en-us/articles/204264000-Why-do-I-receive-java-lang-OutOfMemoryError-PermGen-space
 
might also help

-- 
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/839b8567-041d-470e-afeb-14ac87c3043d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
We have a Windows 2016 Slave.  The slave gets disconnected due to heap 
memory maxing out.  How to increase the heap size to tackle this issue?  
This is a bit urgent please.

-- 
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/c1393ce1-03c2-43f4-b7df-58a14bb80ebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Just found it.  In the Slave configuration section, below "Launch method" 
in "Advanced" there is a section called "JVM options".  We can pass it as a 
parameter here.  Need to test it and see if it works.

On Monday, November 26, 2018 at 4:33:11 PM UTC-5, slide wrote:
>
> There should be a way to pass parameters to the JVM in the .xml file 
> (slave.xml or something similar).
>
> On Mon, Nov 26, 2018 at 1:38 PM > wrote:
>
>> Found a log file on the slave machine.  It's Java heap size error.
>>
>> INFO: HttpClient configured for $URL, authenticating as USER
>> Nov 20, 2018 6:25:09 PM 
>> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser run
>> SEVERE: unexpected error
>> java.lang.OutOfMemoryError: Java heap space
>> at java.util.Arrays.copyOf(Unknown Source)
>> at java.util.Arrays.copyOf(Unknown Source)
>> at java.util.ArrayList.grow(Unknown Source)
>> at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
>> at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
>> at java.util.ArrayList.add(Unknown Source)
>> at 
>> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser.run(IdleHTTPConnectionCloser.java:109)
>>
>> Nov 20, 2018 6:25:12 PM 
>> org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
>> SEVERE: [JNLP4-connect connection to JENKINS_URL/IP:35351] Reader thread 
>> killed by OutOfMemoryError
>> java.lang.OutOfMemoryError: Java heap space
>>
>> Exception in thread "pool-1-thread-3" java.lang.OutOfMemoryError: Java 
>> heap space
>> Nov 20, 2018 6:29:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756332316 
>> hasn't completed by 1542756572331
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 6:34:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756632868 
>> hasn't completed by 1542756872880
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 6:39:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756932704 
>> hasn't completed by 1542757172726
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main createEngine
>> INFO: Setting up agent: HOST_NAME
>> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main$CuiListener 
>> INFO: Jenkins agent is running in headless mode.
>>
>> Trying to figure out way to increase the heap size.
>>
>> Thanks to all those threw in suggestion.
>>
>> On Monday, November 26, 2018 at 12:44:47 PM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> The agent port is selected as 'fixed' in the Jenkins master 
>>> configuration.
>>>
>>> On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:

 Did you checked your port number?My be it is an arbitrary selection. So 
 better to configure the port as fixed number on your master configuration.

 Regards
 Pranav

 On Mon, 26 Nov 2018, 10:52 pm >>>
> Any help/suggestion on this?
>
> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
> wrote:
>>
>> When I looked in Windows Server event logs, I see this error - 
>> sigint to 81192 failed - killing as feedback
>>
>> I see this message multiple times and the number (81192) is defferent 
>> in every error.
>>
>> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> We have couple of more Windows Slaves, but we don't have any issue 
>>> with those.  Just this one slave going down often.
>>>
>>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:

 We have that problem all the time. IMHO the JNLP connectivity to 
 the master is not robust enough to be used.

 I have tried setting up the agent connection as a service per the 
 Jenkins doc, but it still cannot survive momentary network or 
 performance 
 outages. The only way that I have managed to get this machine 
 consistent, 
 is to reboot the Windows machine and the service will shortly 
 re-establish 
 connectivity. JNLP connections are just-plain defective.



 On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:

 Hello, 

 We have a Windows Server 2016 Jenkins Slave.  The Jenkins service 
 

Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
There should be a way to pass parameters to the JVM in the .xml file
(slave.xml or something similar).

On Mon, Nov 26, 2018 at 1:38 PM  wrote:

> Found a log file on the slave machine.  It's Java heap size error.
>
> INFO: HttpClient configured for $URL, authenticating as USER
> Nov 20, 2018 6:25:09 PM
> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser run
> SEVERE: unexpected error
> java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Unknown Source)
> at java.util.Arrays.copyOf(Unknown Source)
> at java.util.ArrayList.grow(Unknown Source)
> at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
> at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
> at java.util.ArrayList.add(Unknown Source)
> at
> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser.run(IdleHTTPConnectionCloser.java:109)
>
> Nov 20, 2018 6:25:12 PM
> org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
> SEVERE: [JNLP4-connect connection to JENKINS_URL/IP:35351] Reader thread
> killed by OutOfMemoryError
> java.lang.OutOfMemoryError: Java heap space
>
> Exception in thread "pool-1-thread-3" java.lang.OutOfMemoryError: Java
> heap space
> Nov 20, 2018 6:29:32 PM hudson.slaves.ChannelPinger$1 onDead
> INFO: Ping failed. Terminating the channel JNLP4-connect connection to
> JENKINS_URL/IP:35351.
> java.util.concurrent.TimeoutException: Ping started at 1542756332316
> hasn't completed by 1542756572331
> at hudson.remoting.PingThread.ping(PingThread.java:134)
> at hudson.remoting.PingThread.run(PingThread.java:90)
>
> Nov 20, 2018 6:34:32 PM hudson.slaves.ChannelPinger$1 onDead
> INFO: Ping failed. Terminating the channel JNLP4-connect connection to
> JENKINS_URL/IP:35351.
> java.util.concurrent.TimeoutException: Ping started at 1542756632868
> hasn't completed by 1542756872880
> at hudson.remoting.PingThread.ping(PingThread.java:134)
> at hudson.remoting.PingThread.run(PingThread.java:90)
>
> Nov 20, 2018 6:39:32 PM hudson.slaves.ChannelPinger$1 onDead
> INFO: Ping failed. Terminating the channel JNLP4-connect connection to
> JENKINS_URL/IP:35351.
> java.util.concurrent.TimeoutException: Ping started at 1542756932704
> hasn't completed by 1542757172726
> at hudson.remoting.PingThread.ping(PingThread.java:134)
> at hudson.remoting.PingThread.run(PingThread.java:90)
>
> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main createEngine
> INFO: Setting up agent: HOST_NAME
> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main$CuiListener 
> INFO: Jenkins agent is running in headless mode.
>
> Trying to figure out way to increase the heap size.
>
> Thanks to all those threw in suggestion.
>
> On Monday, November 26, 2018 at 12:44:47 PM UTC-5, gotvi...@gmail.com
> wrote:
>>
>> The agent port is selected as 'fixed' in the Jenkins master configuration.
>>
>> On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:
>>>
>>> Did you checked your port number?My be it is an arbitrary selection. So
>>> better to configure the port as fixed number on your master configuration.
>>>
>>> Regards
>>> Pranav
>>>
>>> On Mon, 26 Nov 2018, 10:52 pm >>
 Any help/suggestion on this?

 On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com
 wrote:
>
> When I looked in Windows Server event logs, I see this error -
> sigint to 81192 failed - killing as feedback
>
> I see this message multiple times and the number (81192) is defferent
> in every error.
>
> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com
> wrote:
>>
>> We have couple of more Windows Slaves, but we don't have any issue
>> with those.  Just this one slave going down often.
>>
>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>>
>>> We have that problem all the time. IMHO the JNLP connectivity to the
>>> master is not robust enough to be used.
>>>
>>> I have tried setting up the agent connection as a service per the
>>> Jenkins doc, but it still cannot survive momentary network or 
>>> performance
>>> outages. The only way that I have managed to get this machine 
>>> consistent,
>>> is to reboot the Windows machine and the service will shortly 
>>> re-establish
>>> connectivity. JNLP connections are just-plain defective.
>>>
>>>
>>>
>>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>>
>>> Hello,
>>>
>>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in
>>> this slave goes down at times.  We then go back and start it manually
>>> though the service is set to start automatically.  Need help figuring 
>>> out
>>> what's causing it to go down and why it isn't coming back online on its 
>>> own.
>>>
>>> --
 You received this message because you are subscribed to the Google
 Groups "Jenkins Users" group.
 To unsubscribe from this group and 

Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Found a log file on the slave machine.  It's Java heap size error.

INFO: HttpClient configured for $URL, authenticating as USER
Nov 20, 2018 6:25:09 PM 
com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser run
SEVERE: unexpected error
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.util.Arrays.copyOf(Unknown Source)
at java.util.ArrayList.grow(Unknown Source)
at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
at java.util.ArrayList.add(Unknown Source)
at 
com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser.run(IdleHTTPConnectionCloser.java:109)

Nov 20, 2018 6:25:12 PM 
org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
SEVERE: [JNLP4-connect connection to JENKINS_URL/IP:35351] Reader thread 
killed by OutOfMemoryError
java.lang.OutOfMemoryError: Java heap space

Exception in thread "pool-1-thread-3" java.lang.OutOfMemoryError: Java heap 
space
Nov 20, 2018 6:29:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756332316 hasn't 
completed by 1542756572331
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 6:34:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756632868 hasn't 
completed by 1542756872880
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 6:39:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756932704 hasn't 
completed by 1542757172726
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: HOST_NAME
Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main$CuiListener 
INFO: Jenkins agent is running in headless mode.

Trying to figure out way to increase the heap size.

Thanks to all those threw in suggestion.

On Monday, November 26, 2018 at 12:44:47 PM UTC-5, gotvi...@gmail.com wrote:
>
> The agent port is selected as 'fixed' in the Jenkins master configuration.
>
> On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:
>>
>> Did you checked your port number?My be it is an arbitrary selection. So 
>> better to configure the port as fixed number on your master configuration.
>>
>> Regards
>> Pranav
>>
>> On Mon, 26 Nov 2018, 10:52 pm >
>>> Any help/suggestion on this?
>>>
>>> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
>>> wrote:

 When I looked in Windows Server event logs, I see this error - 
 sigint to 81192 failed - killing as feedback

 I see this message multiple times and the number (81192) is defferent 
 in every error.

 On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
 wrote:
>
> We have couple of more Windows Slaves, but we don't have any issue 
> with those.  Just this one slave going down often.
>
> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the 
>> Jenkins doc, but it still cannot survive momentary network or 
>> performance 
>> outages. The only way that I have managed to get this machine 
>> consistent, 
>> is to reboot the Windows machine and the service will shortly 
>> re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
>> this slave goes down at times.  We then go back and start it manually 
>> though the service is set to start automatically.  Need help figuring 
>> out 
>> what's causing it to go down and why it isn't coming back online on its 
>> own.
>>
>> -- 
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com
>>>  
>>> 

Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
The agent port is selected as 'fixed' in the Jenkins master configuration.

On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:
>
> Did you checked your port number?My be it is an arbitrary selection. So 
> better to configure the port as fixed number on your master configuration.
>
> Regards
> Pranav
>
> On Mon, 26 Nov 2018, 10:52 pm  wrote:
>
>> Any help/suggestion on this?
>>
>> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> When I looked in Windows Server event logs, I see this error - 
>>> sigint to 81192 failed - killing as feedback
>>>
>>> I see this message multiple times and the number (81192) is defferent in 
>>> every error.
>>>
>>> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
>>> wrote:

 We have couple of more Windows Slaves, but we don't have any issue with 
 those.  Just this one slave going down often.

 On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>
> We have that problem all the time. IMHO the JNLP connectivity to the 
> master is not robust enough to be used.
>
> I have tried setting up the agent connection as a service per the 
> Jenkins doc, but it still cannot survive momentary network or performance 
> outages. The only way that I have managed to get this machine consistent, 
> is to reboot the Windows machine and the service will shortly 
> re-establish 
> connectivity. JNLP connections are just-plain defective.
>
>
>
> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>
> Hello, 
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
> this slave goes down at times.  We then go back and start it manually 
> though the service is set to start automatically.  Need help figuring out 
> what's causing it to go down and why it isn't coming back online on its 
> own.
>
> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/7e622ae9-df97-4d9a-a8d1-9d65cd5d8ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Pranav Kv
Did you checked your port number?My be it is an arbitrary selection. So
better to configure the port as fixed number on your master configuration.

Regards
Pranav

On Mon, 26 Nov 2018, 10:52 pm  Any help/suggestion on this?
>
> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com
> wrote:
>>
>> When I looked in Windows Server event logs, I see this error -
>> sigint to 81192 failed - killing as feedback
>>
>> I see this message multiple times and the number (81192) is defferent in
>> every error.
>>
>> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com
>> wrote:
>>>
>>> We have couple of more Windows Slaves, but we don't have any issue with
>>> those.  Just this one slave going down often.
>>>
>>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:

 We have that problem all the time. IMHO the JNLP connectivity to the
 master is not robust enough to be used.

 I have tried setting up the agent connection as a service per the
 Jenkins doc, but it still cannot survive momentary network or performance
 outages. The only way that I have managed to get this machine consistent,
 is to reboot the Windows machine and the service will shortly re-establish
 connectivity. JNLP connections are just-plain defective.



 On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:

 Hello,

 We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in
 this slave goes down at times.  We then go back and start it manually
 though the service is set to start automatically.  Need help figuring out
 what's causing it to go down and why it isn't coming back online on its 
 own.

 --
> 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/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHwQEkKzS4VBF3LrYAXhKpE2v%2BVM86%3DqnWgxKsyFQQ47ih0f1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Any help/suggestion on this?

On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com wrote:
>
> When I looked in Windows Server event logs, I see this error - 
> sigint to 81192 failed - killing as feedback
>
> I see this message multiple times and the number (81192) is defferent in 
> every error.
>
> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
> wrote:
>>
>> We have couple of more Windows Slaves, but we don't have any issue with 
>> those.  Just this one slave going down often.
>>
>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>>
>>> We have that problem all the time. IMHO the JNLP connectivity to the 
>>> master is not robust enough to be used.
>>>
>>> I have tried setting up the agent connection as a service per the 
>>> Jenkins doc, but it still cannot survive momentary network or performance 
>>> outages. The only way that I have managed to get this machine consistent, 
>>> is to reboot the Windows machine and the service will shortly re-establish 
>>> connectivity. JNLP connections are just-plain defective.
>>>
>>>
>>>
>>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>>
>>> Hello, 
>>>
>>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
>>> this slave goes down at times.  We then go back and start it manually 
>>> though the service is set to start automatically.  Need help figuring out 
>>> what's causing it to go down and why it isn't coming back online on its own.
>>>
>>>

-- 
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/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
When I looked in Windows Server event logs, I see this error - 
sigint to 81192 failed - killing as feedback

I see this message multiple times and the number (81192) is defferent in 
every error.

On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com wrote:
>
> We have couple of more Windows Slaves, but we don't have any issue with 
> those.  Just this one slave going down often.
>
> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the Jenkins 
>> doc, but it still cannot survive momentary network or performance outages. 
>> The only way that I have managed to get this machine consistent, is to 
>> reboot the Windows machine and the service will shortly re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>>

-- 
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/8e3018ab-b95d-47f0-9433-24ac44861005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
We have couple of more Windows Slaves, but we don't have any issue with 
those.  Just this one slave going down often.

On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>
> We have that problem all the time. IMHO the JNLP connectivity to the 
> master is not robust enough to be used.
>
> I have tried setting up the agent connection as a service per the Jenkins 
> doc, but it still cannot survive momentary network or performance outages. 
> The only way that I have managed to get this machine consistent, is to 
> reboot the Windows machine and the service will shortly re-establish 
> connectivity. JNLP connections are just-plain defective.
>
>
>
> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com  wrote:
>
> Hello, 
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
> slave goes down at times.  We then go back and start it manually though the 
> service is set to start automatically.  Need help figuring out what's 
> causing it to go down and why it isn't coming back online on its own.
>
>

-- 
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/b4d92c64-a769-42c0-90d4-e9df7e1210d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Any idea on where else I can look for details?

On Monday, November 26, 2018 at 10:24:10 AM UTC-5, slide wrote:
>
> Weird, I have had ZERO issues with JNLP agents. It works flawlessly for me.
>
> On Mon, Nov 26, 2018 at 8:21 AM John Mellor  > wrote:
>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the Jenkins 
>> doc, but it still cannot survive momentary network or performance outages. 
>> The only way that I have managed to get this machine consistent, is to 
>> reboot the Windows machine and the service will shortly re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com  
>> wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/cc698142-b557-4ce9-ac69-8aa85a7ed476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread John Mellor
Hi Slide,

We run our worker nodes mostly on sometimes-overloaded VMware hosts. We also 
interrupt the undersized network fairly routinely, for other reasons. Can you 
try hooking in a network degradation service, so that you see network outages, 
for instance.

JNLP connections fail in these circumstances, while ssh connections do not. 
Unfortunately, Windows essentially requires JNLP-only connections.



On Mon, 2018-11-26 at 08:23 -0700, Slide wrote:
Weird, I have had ZERO issues with JNLP agents. It works flawlessly for me.

On Mon, Nov 26, 2018 at 8:21 AM John Mellor 
mailto:john.mel...@esentire.com>> wrote:
We have that problem all the time. IMHO the JNLP connectivity to the master is 
not robust enough to be used.

I have tried setting up the agent connection as a service per the Jenkins doc, 
but it still cannot survive momentary network or performance outages. The only 
way that I have managed to get this machine consistent, is to reboot the 
Windows machine and the service will shortly re-establish connectivity. JNLP 
connections are just-plain defective.



On Mon, 2018-11-26 at 07:06 -0800, 
gotviser...@gmail.com wrote:
Hello,

We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this slave 
goes down at times.  We then go back and start it manually though the service 
is set to start automatically.  Need help figuring out what's causing it to go 
down and why it isn't coming back online on its own.

--
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/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


--
Website: http://earl-of-code.com

-- 
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/94638a861184c792de1d164a7b17eef0fa402b41.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
Weird, I have had ZERO issues with JNLP agents. It works flawlessly for me.

On Mon, Nov 26, 2018 at 8:21 AM John Mellor 
wrote:

> We have that problem all the time. IMHO the JNLP connectivity to the
> master is not robust enough to be used.
>
> I have tried setting up the agent connection as a service per the Jenkins
> doc, but it still cannot survive momentary network or performance outages.
> The only way that I have managed to get this machine consistent, is to
> reboot the Windows machine and the service will shortly re-establish
> connectivity. JNLP connections are just-plain defective.
>
>
>
> On Mon, 2018-11-26 at 07:06 -0800, gotviser...@gmail.com wrote:
>
> Hello,
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this
> slave goes down at times.  We then go back and start it manually though the
> service is set to start automatically.  Need help figuring out what's
> causing it to go down and why it isn't coming back online on its own.
>
> --
> 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/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
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/CAPiUgVc-xHbnxYWjnpScOZWxOb8Y2qc0TduQ%3DK%2B%3DNskehQZZ2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
This is all I see in the log section of the Slave.  Is there anywhere else 
to see?

JNLP agent connected from IP/IP
Remoting version: 3.17
This is a Windows agent
Agent successfully connected and online




On Monday, November 26, 2018 at 10:16:59 AM UTC-5, slide wrote:
>
> Did you check the logs on the agent or via the Jenkins UI? (FYI, agent is 
> the preferred term instead of "slave").
>
> On Mon, Nov 26, 2018 at 8:06 AM > wrote:
>
>> Hello,
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/fd7cf10d-fd69-4c20-be36-804f6256890a%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Website: http://earl-of-code.com
>

-- 
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/580f8ba5-1b81-4198-9335-034964390f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread John Mellor
We have that problem all the time. IMHO the JNLP connectivity to the master is 
not robust enough to be used.

I have tried setting up the agent connection as a service per the Jenkins doc, 
but it still cannot survive momentary network or performance outages. The only 
way that I have managed to get this machine consistent, is to reboot the 
Windows machine and the service will shortly re-establish connectivity. JNLP 
connections are just-plain defective.



On Mon, 2018-11-26 at 07:06 -0800, gotviser...@gmail.com wrote:
Hello,

We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this slave 
goes down at times.  We then go back and start it manually though the service 
is set to start automatically.  Need help figuring out what's causing it to go 
down and why it isn't coming back online on its own.

-- 
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/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
Did you check the logs on the agent or via the Jenkins UI? (FYI, agent is
the preferred term instead of "slave").

On Mon, Nov 26, 2018 at 8:06 AM  wrote:

> Hello,
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this
> slave goes down at times.  We then go back and start it manually though the
> service is set to start automatically.  Need help figuring out what's
> causing it to go down and why it isn't coming back online on its own.
>
> --
> 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/fd7cf10d-fd69-4c20-be36-804f6256890a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Website: http://earl-of-code.com

-- 
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/CAPiUgVe6keqT58yMu%3Da10FiWUQOwKxDakWbNNg0%3DL-hA_tBfPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Hello,

We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
slave goes down at times.  We then go back and start it manually though the 
service is set to start automatically.  Need help figuring out what's 
causing it to go down and why it isn't coming back online on its own.

-- 
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/fd7cf10d-fd69-4c20-be36-804f6256890a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure Linux and Windows slave node

2018-10-17 Thread gotviseryon
Hi,

Thanks for the link.  For Windows, I found this link more helpful 
- https://wiki.jenkins.io/pages/viewpage.action?pageId=75893612

On Monday, October 8, 2018 at 10:00:20 AM UTC-4, Pavel Novák wrote:
>
> Hi,
> there is a link with which describes step by step, how to add the agent , 
> new node 
> https://linuxacademy.com/blog/devops/adding-a-jenkins-agent-node/
>
> It seems to be possible add it via pipeline as well
>
> https://support.cloudbees.com/hc/en-us/articles/218154667-Create-a-Permanent-Agent-from-Groovy-Console
>
> launch methods are:
> - via ssh
> - via webstart
> - via execution command on master
> - control windows slave as windows service
>
> I have linux slaves made by ssh access and windows via webstart, eg. 
>
> Dne čtvrtek 4. října 2018 15:35:53 UTC+2 gotvi...@gmail.com napsal(a):
>>
>> What are the methods to configure a Linux and Windows slave node?
>>
>> Is there a runbook for it?
>>
>

-- 
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/cd8619b4-9bf5-4d0c-9d2d-51b6974773be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure Linux and Windows slave node

2018-10-08 Thread Pavel Novák
Hi,
there is a link with which describes step by step, how to add the agent , 
new node 
https://linuxacademy.com/blog/devops/adding-a-jenkins-agent-node/

It seems to be possible add it via pipeline as well
https://support.cloudbees.com/hc/en-us/articles/218154667-Create-a-Permanent-Agent-from-Groovy-Console

launch methods are:
- via ssh
- via webstart
- via execution command on master
- control windows slave as windows service

I have linux slaves made by ssh access and windows via webstart, eg. 

Dne čtvrtek 4. října 2018 15:35:53 UTC+2 gotvi...@gmail.com napsal(a):
>
> What are the methods to configure a Linux and Windows slave node?
>
> Is there a runbook for it?
>

-- 
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/4b7a213c-1a59-4555-9d2e-f5b02cb76091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Configure Linux and Windows slave node

2018-10-04 Thread gotviseryon
What are the methods to configure a Linux and Windows slave node?

Is there a runbook for it?

-- 
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/7569e5ed-93a8-458a-afd5-9fa34a9bf4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


running jar on remote windows slave

2017-11-21 Thread danish siddiqui


Hi,


I have jenkins setup on linux and am trying to run a jar file on a remote 
windows machine. I have no problem launching the jar file through jenkins, 
but the problem is the jar file does not exit out of a command prompt so 
this translates into the console output in jenkins (the job never finishes).

Can someone please advise how to do I launch the jar and exit out cleanly)

Apologies I am new to jenkins so do not know much. I have tried to search 
all over the internet and though I did find out by using javaw (but that 
returns successfully if I am manually run the command on the windows box)


Please let me know if you need any other information.


Thanks

-- 
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/59898116-f7bd-46de-891e-06a39f7e0fc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Maven: Running on Windows slave

2017-10-04 Thread Sverre Moe
Here follows an update of some observations and configurations I have done 
to get building on Windows to work.

The Windows node is connected in Jenkins with SSH started by sshd in Cygwin.
Using this 
guide: 
https://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/

The Windows node's "Remote root directory" is set to 
"C:\cygwin64\home\build", because "/home/build" would not work.
Step withMaven woulld fail with use of the latter:

[myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ] 
Running shell script
sh: 
/home/build/workspace/myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-e1932da9/pid:
 No such file or directory
sh: 
/home/build/workspace/myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-e1932da9/jenkins-log.txt:
 No such file or directory
sh: 
/home/build/workspace/myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-e1932da9/jenkins-result.txt:
 No such file or directory


I have also added an additional Windows JDK in Jenkins pointing to 
C:\Program Files\Java\jdk1.8.0_144.
Creating a symlink in cygwin at /usr/java/jdk1.8.0_144 to 
/cygdrive/c/Program\ Files/jdk1.8.0_144 allowed me to use the same Jenkins 
JDK tool for both Windows and Linux (though only with the sh step).

For the time being I have been using the pipeline step bat after checking 
!isUnix().
However with the bat step I must use a different JDK that points to the 
real directory in Windows C:\Program Files\Java\jdk1.8.0_144.
Otherwise withMaven fails to find the JDK at /usr/java/jdk1.8.0_144

[myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ] 
Running batch script

C:\cygwin64\home\build\workspace\myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ>mvn
 clean install  
- withMaven Wrapper script -
The JAVA_HOME environment variable is not defined correctly 
This environment variable is needed to run this program 
NB: JAVA_HOME should point to a JDK not a JRE 



Using the sh step instead of the bat step in pipeline kinda works. However 
with one Exception.

[withMaven] use Maven installation provided by the build agent with executable 
C:\Program Files\apache-maven-3.5.0\bin\mvn.cmd
[Pipeline] {

[Pipeline] sh
[C:\cygwin64\home\build\workspace\myApp_sverre_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ]
 Running shell script
Cannot contact master-windows7-x86_64: java.io.IOException: Remote call on 
master-windows7-x86_64 failed

+ mvn clean install

The build continues never the less with success, so I am not sure what 
failed here and what it tried to do on the remote node that caused the 
IOException.


tirsdag 12. september 2017 10.51.46 UTC+2 skrev Cyrille Le Clerc følgende:
>
> Hello Svere,
>
> It seems that we have some work to make withMaven(){} more friendly to 
> Windows+Cygwin users.
>
> We have already tracked:
>
>- JENKINS-44089 Request that withMaven pipeline step produce both mvn 
>and mvn.cmd wrappers on Windows 
><https://issues.jenkins-ci.org/browse/JENKINS-44089>
>- JENKINS-44276 Maven fails in pipeline + cygwin 
><https://issues.jenkins-ci.org/browse/JENKINS-44276>
>
> Some refactoring of the code will be needed to generate both standard 
> Windows and Cygwin friendly scripts on Windows agents.
>
> Please feel free to give us hints on what a smooth integration with 
> Windows and Cygwin should look like.
>
> Cyrille
>
> On Monday, September 11, 2017 at 9:08:53 AM UTC+2, Baptiste Mathus wrote:
>>
>> Hello,
>> I know the developers of that plugin would like to make it as good as 
>> possible. To that, if so, could you please try and summarize what you think 
>> could be made easier/better? And even if possibly a config error, if you 
>> think the error could help more quickly understand what is wrong?
>>
>> Thanks!
>>
>> Le 11 sept. 2017 09:03, "Sverre Moe" <sverr...@gmail.com> a écrit :
>>
>>> The fix was to set the Windows slave Remote Root Directory to Windows URI
>>> C:\cygwin64\home\username
>>>
>>> mandag 11. september 2017 08.35.29 UTC+2 skrev Sverre Moe følgende:
>>>>
>>>> Well, adding a new JDK in Jenkins Tools pointing to the Windows path of 
>>>> Java worked
>>>> Then withMaven(jdk: "jdk1.8-win")
>>>>
>>>> I have though hit another snag. Lots of ERROR after build success.
>>>> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting 
>>>> MavenArtifact{no.spacetec:myApp:jar:1.0.0-SNAPSHOT 
>>>> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\

Re: Pipeline Maven: Running on Windows slave

2017-09-12 Thread Cyrille Le Clerc
Hello Svere,

It seems that we have some work to make withMaven(){} more friendly to 
Windows+Cygwin users.

We have already tracked:

   - JENKINS-44089 Request that withMaven pipeline step produce both mvn 
   and mvn.cmd wrappers on Windows 
   <https://issues.jenkins-ci.org/browse/JENKINS-44089>
   - JENKINS-44276 Maven fails in pipeline + cygwin 
   <https://issues.jenkins-ci.org/browse/JENKINS-44276>
   
Some refactoring of the code will be needed to generate both standard 
Windows and Cygwin friendly scripts on Windows agents.

Please feel free to give us hints on what a smooth integration with Windows 
and Cygwin should look like.

Cyrille

On Monday, September 11, 2017 at 9:08:53 AM UTC+2, Baptiste Mathus wrote:
>
> Hello,
> I know the developers of that plugin would like to make it as good as 
> possible. To that, if so, could you please try and summarize what you think 
> could be made easier/better? And even if possibly a config error, if you 
> think the error could help more quickly understand what is wrong?
>
> Thanks!
>
> Le 11 sept. 2017 09:03, "Sverre Moe" <sverr...@gmail.com > a 
> écrit :
>
>> The fix was to set the Windows slave Remote Root Directory to Windows URI
>> C:\cygwin64\home\username
>>
>> mandag 11. september 2017 08.35.29 UTC+2 skrev Sverre Moe følgende:
>>>
>>> Well, adding a new JDK in Jenkins Tools pointing to the Windows path of 
>>> Java worked
>>> Then withMaven(jdk: "jdk1.8-win")
>>>
>>> I have though hit another snag. Lots of ERROR after build success.
>>> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting 
>>> MavenArtifact{no.spacetec:myApp:jar:1.0.0-SNAPSHOT 
>>> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\myApp-1.0.0-SNAPSHOT.jar},
>>>  
>>> skip archiving of the artifacts
>>>
>>> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting 
>>> MavenArtifact{no.spacetec:myApp:rpm:1.0.0-SNAPSHOT 
>>> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\rpm\myApp-windows-installer\RPMS\noarch\myApp-windows-installer-1.0.0-SNAPSHOT20170911082120.noarch.rpm},
>>>  
>>> skip archiving of the artifacts
>>>
>>> ERROR: [withMaven] WARNING Exception executing Maven reporter 'Junit 
>>> Publisher' / 
>>> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher. Please 
>>> report a bug associated for the component 'pipeline-maven-plugin' at 
>>> https://issues.jenkins-ci.org 
>>> java.lang.IllegalArgumentException: Cannot relativize 
>>> 'C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target/surefire-reports'
>>>  
>>> relatively to 
>>> '/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ'
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.util.XmlUtils.getPathInWorkspace(XmlUtils.java:226)
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.executeReporter(JunitTestsPublisher.java:234)
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.process(JunitTestsPublisher.java:181)
>>> at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.pr
>>> ocessMavenSpyLogs(MavenSpyLogProcessor.java:109)
>>> at 
>>> org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:864)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
>>> at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
>>> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:165)
>>> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:162)
>>> at org.codehaus.groovy.runtime.Gr
>>> oovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
>>> at org.codehaus.groovy.runtime.Gr
>>> oovyCategorySupport.use(GroovyCategorySupport.java:261)
>>> at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:162)
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19)
>>> at 
>>> org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35)
>>

Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Baptiste Mathus
Hello,
I know the developers of that plugin would like to make it as good as
possible. To that, if so, could you please try and summarize what you think
could be made easier/better? And even if possibly a config error, if you
think the error could help more quickly understand what is wrong?

Thanks!

Le 11 sept. 2017 09:03, "Sverre Moe" <sverre@gmail.com> a écrit :

> The fix was to set the Windows slave Remote Root Directory to Windows URI
> C:\cygwin64\home\username
>
> mandag 11. september 2017 08.35.29 UTC+2 skrev Sverre Moe følgende:
>>
>> Well, adding a new JDK in Jenkins Tools pointing to the Windows path of
>> Java worked
>> Then withMaven(jdk: "jdk1.8-win")
>>
>> I have though hit another snag. Lots of ERROR after build success.
>> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting
>> MavenArtifact{no.spacetec:myApp:jar:1.0.0-SNAPSHOT
>> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TM
>> OZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\myApp-1.0.0-SNAPSHOT.jar},
>> skip archiving of the artifacts
>>
>> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting
>> MavenArtifact{no.spacetec:myApp:rpm:1.0.0-SNAPSHOT
>> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TM
>> OZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\rpm\myApp-
>> windows-installer\RPMS\noarch\myApp-windows-installer-1.0.0-
>> SNAPSHOT20170911082120.noarch.rpm}, skip archiving of the artifacts
>>
>> ERROR: [withMaven] WARNING Exception executing Maven reporter 'Junit
>> Publisher' / 
>> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.
>> Please report a bug associated for the component 'pipeline-maven-plugin' at
>> https://issues.jenkins-ci.org
>> java.lang.IllegalArgumentException: Cannot relativize
>> 'C:\home\username\workspace\myApp_username_work-3U54DPE57F6T
>> MOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target/surefire-reports'
>> relatively to '/home/username/workspace/myAp
>> p_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ'
>> at org.jenkinsci.plugins.pipeline.maven.util.XmlUtils.getPathIn
>> Workspace(XmlUtils.java:226)
>> at org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPu
>> blisher.executeReporter(JunitTestsPublisher.java:234)
>> at org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPu
>> blisher.process(JunitTestsPublisher.java:181)
>> at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.pr
>> ocessMavenSpyLogs(MavenSpyLogProcessor.java:109)
>> at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$
>> Callback.finished(WithMavenStepExecution.java:864)
>> at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$T
>> ailCall.onSuccess(BodyExecutionCallback.java:114)
>> at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessA
>> dapter.receive(CpsBodyExecution.java:362)
>> at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
>> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:165)
>> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:162)
>> at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCate
>> goryInfo.use(GroovyCategorySupport.java:122)
>> at org.codehaus.groovy.runtime.GroovyCategorySupport.use(Groovy
>> CategorySupport.java:261)
>> at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:162)
>> at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.
>> access$001(SandboxContinuable.java:19)
>> at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.
>> call(SandboxContinuable.java:35)
>> at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.
>> call(SandboxContinuable.java:32)
>> at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySa
>> ndbox.runInSandbox(GroovySandbox.java:108)
>> at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(S
>> andboxContinuable.java:32)
>> at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(
>> CpsThread.java:174)
>> at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(
>> CpsThreadGroup.java:330)
>> at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$
>> 100(CpsThreadGroup.java:82)
>> at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(
>> CpsThreadGroup.java:242)
>> at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(
>> CpsThreadGroup.java:230)
>> at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.
>> call(CpsVmExecutorService.java:64)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at hudson.remoting.SingleLan

Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Sverre Moe
The fix was to set the Windows slave Remote Root Directory to Windows URI
C:\cygwin64\home\username

mandag 11. september 2017 08.35.29 UTC+2 skrev Sverre Moe følgende:
>
> Well, adding a new JDK in Jenkins Tools pointing to the Windows path of 
> Java worked
> Then withMaven(jdk: "jdk1.8-win")
>
> I have though hit another snag. Lots of ERROR after build success.
> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting 
> MavenArtifact{no.spacetec:myApp:jar:1.0.0-SNAPSHOT 
> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\myApp-1.0.0-SNAPSHOT.jar},
>  
> skip archiving of the artifacts
>
> ERROR: [withMaven] WARNING: Exception archiving and fingerprinting 
> MavenArtifact{no.spacetec:myApp:rpm:1.0.0-SNAPSHOT 
> C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target\rpm\myApp-windows-installer\RPMS\noarch\myApp-windows-installer-1.0.0-SNAPSHOT20170911082120.noarch.rpm},
>  
> skip archiving of the artifacts
>
> ERROR: [withMaven] WARNING Exception executing Maven reporter 'Junit 
> Publisher' / 
> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher. Please 
> report a bug associated for the component 'pipeline-maven-plugin' at 
> https://issues.jenkins-ci.org 
> java.lang.IllegalArgumentException: Cannot relativize 
> 'C:\home\username\workspace\myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ\target/surefire-reports'
>  
> relatively to 
> '/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ'
> at 
> org.jenkinsci.plugins.pipeline.maven.util.XmlUtils.getPathInWorkspace(XmlUtils.java:226)
> at 
> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.executeReporter(JunitTestsPublisher.java:234)
> at 
> org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher.process(JunitTestsPublisher.java:181)
> at 
> org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:109)
> at 
> org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:864)
> at 
> org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onSuccess(BodyExecutionCallback.java:114)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$SuccessAdapter.receive(CpsBodyExecution.java:362)
> at com.cloudbees.groovy.cps.Outcome.resumeFrom(Outcome.java:73)
> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:165)
> at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:162)
> at 
> org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
> at 
> org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
> at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:162)
> at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19)
> at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35)
> at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32)
> at 
> org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
> at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:32)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230)
> at 
> org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
> at 
> jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> ERROR: [withMaven] WARNING Exception executing Maven reporter 'Open Task 
> Scanner Publisher' / 
> org.jenkinsci.plugins.pipeline.maven.publishers.Task

Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Sverre Moe
 JAVA_HOME = "/usr/java/jdk1.8.0_102" 
> Please set the JAVA_HOME variable in your environment to match the 
> location of your Java installation. 
>
>
> Jenkins have jdk set at /usr/java/jdk1.8.0_102 and I have created a 
> symlink in my Cygwin
> jdk1.8.0_102 -> /cygdrive/c/Program Files/Java/jdk1.8.0_121
> Windows environment variable JAVA_HOME is set to C:\Program 
> Files\Java\jdk1.8.0_121
>
> mandag 11. september 2017 08.07.21 UTC+2 skrev Sverre Moe følgende:
>>
>> I have connected a Windows slave to Jenkins with SSH+Cygwin.
>> So running shell scripts like "sh 'mvn'" should work as I do it locally 
>> on the Windows.
>>
>> Running withMaven fails, and I cannot figure our why.
>>
>> [Pipeline] node
>> Running on master-windows-x86_64 in 
>> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ
>> [Pipeline] {
>> [Pipeline] stage
>> [Pipeline] { (Checkout-Windows)
>> [Pipeline] checkout
>>  > git rev-parse --is-inside-work-tree # timeout=10
>> Fetching changes from the remote Git repository
>>  > git config remote.origin.url ssh://
>> g...@git.company.com/software/myApp.git # timeout=10
>> Fetching without tags
>> Fetching upstream changes from ssh://
>> g...@git.company.com/software/myApp.git
>>  > git --version # timeout=10
>>  > git fetch --no-tags --progress ssh://
>> g...@git.company.com/software/myApp.git 
>> +refs/heads/*:refs/remotes/origin/*
>> Checking out Revision 05cf171deb903a01b5880c30de28d4b1865e3ed5 
>> (username/work)
>> Commit message: "Test Windows build on Jenkins"
>>  > git config core.sparsecheckout # timeout=10
>>  > git checkout -f 05cf171deb903a01b5880c30de28d4b1865e3ed5
>>  > git rev-list f9db8914f5688ca74e571dd1104c279f207bf435 # timeout=10
>> [Pipeline] }
>> [Pipeline] // stage
>> [Pipeline] stage
>> [Pipeline] { (Build-Windows)
>> [Pipeline] withMaven
>> [withMaven] Options: []
>> [withMaven] Available options: 
>> [withMaven] use JDK installation jdk1.8
>> $ where mvn.cmd
>> [withMaven] use Maven installation provided by the build agent with 
>> executable 
>> C:\Users\username.POLAR\Downloads\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin\mvn.cmd
>> [Pipeline] {
>> [Pipeline] sh
>> [myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ] 
>> Running shell script
>> sh: 
>> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/pid:
>>  
>> No such file or directory
>> sh: 
>> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-log.txt:
>>  
>> No such file or directory
>> sh: 
>> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-result.txt:
>>  
>> No such file or directory
>>
>>
>>

-- 
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/cd9eb59b-d6f0-45db-abfb-e1f64b1f7212%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Sverre Moe
I took a look at the Maven Pipeline documentation again.
For Windows it says to use bat, not sh. I tried that, and got a little bit 
closer, but now it cannot find JAVA_HOME

- withMaven Wrapper script -

Error: JAVA_HOME is set to an invalid directory. 
JAVA_HOME = "/usr/java/jdk1.8.0_102" 
Please set the JAVA_HOME variable in your environment to match the 
location of your Java installation. 


Jenkins have jdk set at /usr/java/jdk1.8.0_102 and I have created a symlink 
in my Cygwin
jdk1.8.0_102 -> /cygdrive/c/Program Files/Java/jdk1.8.0_121
Windows environment variable JAVA_HOME is set to C:\Program 
Files\Java\jdk1.8.0_121

mandag 11. september 2017 08.07.21 UTC+2 skrev Sverre Moe følgende:
>
> I have connected a Windows slave to Jenkins with SSH+Cygwin.
> So running shell scripts like "sh 'mvn'" should work as I do it locally on 
> the Windows.
>
> Running withMaven fails, and I cannot figure our why.
>
> [Pipeline] node
> Running on master-windows-x86_64 in 
> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ
> [Pipeline] {
> [Pipeline] stage
> [Pipeline] { (Checkout-Windows)
> [Pipeline] checkout
>  > git rev-parse --is-inside-work-tree # timeout=10
> Fetching changes from the remote Git repository
>  > git config remote.origin.url ssh://
> g...@git.company.com/software/myApp.git # timeout=10
> Fetching without tags
> Fetching upstream changes from ssh://
> g...@git.company.com/software/myApp.git
>  > git --version # timeout=10
>  > git fetch --no-tags --progress ssh://
> g...@git.company.com/software/myApp.git +refs/heads/*:refs/remotes/origin/*
> Checking out Revision 05cf171deb903a01b5880c30de28d4b1865e3ed5 
> (username/work)
> Commit message: "Test Windows build on Jenkins"
>  > git config core.sparsecheckout # timeout=10
>  > git checkout -f 05cf171deb903a01b5880c30de28d4b1865e3ed5
>  > git rev-list f9db8914f5688ca74e571dd1104c279f207bf435 # timeout=10
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] stage
> [Pipeline] { (Build-Windows)
> [Pipeline] withMaven
> [withMaven] Options: []
> [withMaven] Available options: 
> [withMaven] use JDK installation jdk1.8
> $ where mvn.cmd
> [withMaven] use Maven installation provided by the build agent with 
> executable 
> C:\Users\username.POLAR\Downloads\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin\mvn.cmd
> [Pipeline] {
> [Pipeline] sh
> [myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ] 
> Running shell script
> sh: 
> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/pid:
>  
> No such file or directory
> sh: 
> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-log.txt:
>  
> No such file or directory
> sh: 
> /home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-result.txt:
>  
> No such file or directory
>
>
>

-- 
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/96c3a3ff-30c5-4646-991c-495c529657aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline Maven: Running on Windows slave

2017-09-11 Thread Sverre Moe
I have connected a Windows slave to Jenkins with SSH+Cygwin.
So running shell scripts like "sh 'mvn'" should work as I do it locally on 
the Windows.

Running withMaven fails, and I cannot figure our why.

[Pipeline] node
Running on master-windows-x86_64 in 
/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout-Windows)
[Pipeline] checkout
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url 
ssh://g...@git.company.com/software/myApp.git # timeout=10
Fetching without tags
Fetching upstream changes from ssh://g...@git.company.com/software/myApp.git
 > git --version # timeout=10
 > git fetch --no-tags --progress 
ssh://g...@git.company.com/software/myApp.git 
+refs/heads/*:refs/remotes/origin/*
Checking out Revision 05cf171deb903a01b5880c30de28d4b1865e3ed5 
(username/work)
Commit message: "Test Windows build on Jenkins"
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 05cf171deb903a01b5880c30de28d4b1865e3ed5
 > git rev-list f9db8914f5688ca74e571dd1104c279f207bf435 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build-Windows)
[Pipeline] withMaven
[withMaven] Options: []
[withMaven] Available options: 
[withMaven] use JDK installation jdk1.8
$ where mvn.cmd
[withMaven] use Maven installation provided by the build agent with 
executable 
C:\Users\username.POLAR\Downloads\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin\mvn.cmd
[Pipeline] {
[Pipeline] sh
[myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ] 
Running shell script
sh: 
/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/pid:
 
No such file or directory
sh: 
/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-log.txt:
 
No such file or directory
sh: 
/home/username/workspace/myApp_username_work-3U54DPE57F6TMOZM2O6QBWDQ2LNRU2QHAXT6INC3UPGWF2ERMXAQ@tmp/durable-ff9c24b3/jenkins-result.txt:
 
No such file or directory


-- 
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/8705f243-0417-459c-9627-e00ed7ebd314%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clearcase Polling with Linux master and windows slave not working

2017-07-27 Thread Amit Dar
Hi,

I have the exact same environment (though I use jenkins and not hudson).
master on linux, slave on windows.

same results (changes are detected, plugin reports "no changes" at the end).

is there an update for this issue?

On Tuesday, February 1, 2011 at 5:00:25 PM UTC+2, Vincent Latombe wrote:
>
> There is some matching done based on the view path base folder, maybe in 
> mixed environment, paths are parsed incorrectly and therefore changeset 
> cannot be determined.
>
> Could you please open a JIRA issue for this, the important part being 
> Master on UNIX, Slave on Windows ?
>
> Vincent
>
>
> 2011/1/31 John 
>
>> Hi all.  I've run into an issue with my Hudson install.  We've
>> successfully got hudson running on a linux server as a master polling
>> clearcase and kicking off builds.  I also was able to get Hudson
>> running on a Windoiws XP machine as a master polling clearcase and
>> kicking off builds.
>>
>> Now I've tried to switch the Windows build over as a slave to the Unix
>> master.  If I hit the build now button it will successfully build on
>> the Windows XP machine, but the clearcase polling keeps saying no
>> changes.
>>
>> Can anyone point me in a direction where I might be going wrong?
>>
>> Here's a copy of the polling log showing changes:
>>
>>
>> 
>> [Med_Desktop_Client_11.02] $ cleartool lsview jarmenia_med-win-
>> slave_Med_Desktop_Client_11.02_hudson
>>  jarmenia_med-win-slave_Med_Desktop_Client_11.02_hudson \\gnvccnas
>> \winviewstore2\mmrd\jarmenia\view.2.vws
>> [view] $ cleartool lshistory -all -since 31-jan-11.21:35:55utc+ -
>> fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -minor -nco
>> med_desktop
>> "20110131.163817" "vobadm" "WO94919.4" "" "rename branch type"
>> "rename"
>> Changed name of branch type from "WO94919" to "WO94919.4".
>>
>> "20110131.163814" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\WO94919.4\1" "remove
>> label "RFM" from version" "rmlabel"
>>
>> "20110131.163812" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\17" "make attribute
>> "WONum" on version" "mkattr"
>> Added attribute "WONum" with value 94919.
>>
>> "20110131.163810" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\17" "create version"
>> "checkin"
>>
>> Comment History:
>>
>> John Armenia,   Monday, January 31, 2011 4:34:17 PM
>>
>> "20110131.163755" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\Desktop\Properties
>> \AssemblyInfo.cs" "\main\rel11.02\32" "make attribute "WONum" on
>> version" "mkattr"
>> Added attribute "WONum" with value 94919.
>>
>> "20110131.163754" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\Desktop\Properties
>> \AssemblyInfo.cs" "\main\rel11.02\32" "create version" "checkin"
>> Bumping the version number.
>>
>> "20110131.163735" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\17" "make hyperlink
>> "Merge" on version" "mkhlink"
>> Attached hyperlink "Merge@135124@\med_desktop".
>>
>> "20110131.163735" "vobadm" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\WO94919.4\1" "make
>> hyperlink "Merge" on version" "mkhlink"
>> Attached hyperlink "Merge@135124@\med_desktop".
>>
>> "20110131.163735" "vobadm" "Merge@135124@\med_desktop" "" "create
>> hyperlink" "mkhlink"
>>
>> "20110131.163607" "jarmenia" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\WO94919.4\1" "remove
>> label "RFL" from version" "rmlabel"
>>
>> "20110131.163606" "jarmenia" "c:\hudson\workspace
>> \Med_Desktop_Client_11.02\view\med_desktop\Desktop\DesktopTest
>> \BalanceDuePresenterTest.cs" "\main\rel11.02\WO94919.4\1" "make label
>> "RFM" on version" "mklabel"
>>
>> Done. Took 1.6 sec
>> No changes
>>
>> 
>>
>>
>> Thanks,
>>
>> John
>
>
>

-- 
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/6903c81a-7489-4ee9-8416-42242577a559%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error connecting windows slave

2017-06-23 Thread Ryan Brown
That did it. thank you so much!

On Friday, June 23, 2017 at 1:05:53 PM UTC-6, slide wrote:
>
> Here's a document that looks pretty good
>
>
> https://support.cloudbees.com/hc/en-us/articles/217423827-How-to-Install-Several-Windows-Slaves-as-a-Service
>
> On Fri, Jun 23, 2017 at 10:43 AM Ryan Brown  > wrote:
>
>> Ok thanks so much. I was just following the instructions here 
>> .
>>  
>> I will try the jnlp agent method. Any good guidance? I am not finding a lot 
>> online.
>>
>>
>> On Friday, June 23, 2017 at 9:46:18 AM UTC-6, slide wrote:
>>
>>> Agreed, the DCOM stuff has never worked well for me. 
>>>
>>> On Fri, Jun 23, 2017, 01:01 James Nord  wrote:
>>>
>> You will find less pain if you launch the agent by hand using the jnlp 
 agent method and then using the install as service option.

 The error you are seeing looks like a firewall blocking the CIFS ports 
 (file sharing)

 --
 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-use...@googlegroups.com.
>>>
>>>
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/39001a9c-d9f4-495f-a415-0c791962bd06%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/94b461cf-3571-489c-9504-f9ea9edfbe7e%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/350affbe-a7ea-4fd1-9c6b-e41904c910e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error connecting windows slave

2017-06-23 Thread Slide
Here's a document that looks pretty good

https://support.cloudbees.com/hc/en-us/articles/217423827-How-to-Install-Several-Windows-Slaves-as-a-Service

On Fri, Jun 23, 2017 at 10:43 AM Ryan Brown  wrote:

> Ok thanks so much. I was just following the instructions here
> .
> I will try the jnlp agent method. Any good guidance? I am not finding a lot
> online.
>
>
> On Friday, June 23, 2017 at 9:46:18 AM UTC-6, slide wrote:
>
>> Agreed, the DCOM stuff has never worked well for me.
>>
>> On Fri, Jun 23, 2017, 01:01 James Nord  wrote:
>>
> You will find less pain if you launch the agent by hand using the jnlp
>>> agent method and then using the install as service option.
>>>
>>> The error you are seeing looks like a firewall blocking the CIFS ports
>>> (file sharing)
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/39001a9c-d9f4-495f-a415-0c791962bd06%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/94b461cf-3571-489c-9504-f9ea9edfbe7e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPiUgVf1rGhs8BjtK_Mrx2GULdZus3cOwLXd%3DviAzGi0%3DnzcwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error connecting windows slave

2017-06-23 Thread Ryan Brown
Ok thanks so much. I was just following the instructions here 
.
 
I will try the jnlp agent method. Any good guidance? I am not finding a lot 
online.

On Friday, June 23, 2017 at 9:46:18 AM UTC-6, slide wrote:
>
> Agreed, the DCOM stuff has never worked well for me. 
>
> On Fri, Jun 23, 2017, 01:01 James Nord  
> wrote:
>
>> You will find less pain if you launch the agent by hand using the jnlp 
>> agent method and then using the install as service option.
>>
>> The error you are seeing looks like a firewall blocking the CIFS ports 
>> (file sharing)
>>
>> --
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/39001a9c-d9f4-495f-a415-0c791962bd06%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/94b461cf-3571-489c-9504-f9ea9edfbe7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error connecting windows slave

2017-06-23 Thread James Nord
You will find less pain if you launch the agent by hand using the jnlp agent 
method and then using the install as service option. 

The error you are seeing looks like a firewall blocking the CIFS ports (file 
sharing) 

-- 
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/39001a9c-d9f4-495f-a415-0c791962bd06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error connecting windows slave

2017-06-23 Thread Ryan Brown


Hello all-


I have been working to create a jenkins slave on a windows 10 box. After 
resolving a number of issues opening ports and such I seem to be now connecting 
but an getting the following error:



[2017-06-22 21:09:43] [windows-slaves] Connecting to 172.17.10.70

ERROR: Message not found for errorCode: 
0xC001org.jinterop.dcom.common.JIException 
:
 Message not found for errorCode: 0xC001
at 
org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKCR(JIWinRegStub.java:121) 

at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:479) 

at org.jinterop.dcom.core.JIComServer.(JIComServer.java:427) 

at org.jvnet.hudson.wmi.WMI.connect(WMI.java:59) 

at 
hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:208)
 

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261) 

at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
 

at java.util.concurrent.FutureTask.run(FutureTask.java:266) 

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 

at java.lang.Thread.run(Thread.java:745) 

Caused by: jcifs.smb.SmbException 
: Failed 
to connect: 0.0.0.0<00>/172.17.10.70
jcifs.util.transport.TransportException: Connection timeout
at jcifs.util.transport.Transport.connect(Transport.java:174)
at jcifs.smb.SmbTransport.connect(SmbTransport.java:307)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFileInputStream.(SmbFileInputStream.java:77)
at jcifs.smb.SmbFileInputStream.(SmbFileInputStream.java:66)
at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2844)
at rpc.ncacn_np.RpcTransport.attach(RpcTransport.java:90)
at rpc.Stub.attach(Stub.java:104)
at rpc.Stub.call(Stub.java:109)
at 
org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKCR(JIWinRegStub.java:119)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:479)
at org.jinterop.dcom.core.JIComServer.(JIComServer.java:427)
at org.jvnet.hudson.wmi.WMI.connect(WMI.java:59)
at 
hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:208)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)
at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

at jcifs.smb.SmbTransport.connect(SmbTransport.java:309)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFileInputStream.(SmbFileInputStream.java:77)
at jcifs.smb.SmbFileInputStream.(SmbFileInputStream.java:66)
at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2844)
at rpc.ncacn_np.RpcTransport.attach(RpcTransport.java:90)
at rpc.Stub.attach(Stub.java:104)
at rpc.Stub.call(Stub.java:109)
at 

Re: Windows Slave / LinuxMaster hang

2017-04-27 Thread jerome
I open a tickets: 
https://issues.jenkins-ci.org/browse/JENKINS-42988

-- 
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/478621ea-f5c4-4ab4-8f3b-ee067cc7870f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Windows Slave / LinuxMaster hang

2017-03-01 Thread jerome
I wonder if this is related:

   1. https://issues.jenkins-ci.org/browse/JENKINS-28759
   2. https://issues.jenkins-ci.org/browse/JENKINS-33164

So I'm not the only one who have issue with the bat command hanging it 
seem. Wonder if it will ever get fixed?

-- 
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/712fbb9c-992a-4a2d-a0a9-aa3a7a6d2c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Windows Slave / LinuxMaster hang

2017-02-27 Thread Dirk Heinrichs
Am 27.02.2017 um 18:03 schrieb jer...@bodycad.com:

> Yes the server build info are locate on a CIFS share.

Sounds wrong to me. Did you try with a local directory?

Bye...

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/ce184529-a49e-17c2-11e5-3cc0bda1cf29%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


Windows Slave / LinuxMaster hang

2017-02-27 Thread jerome
Hi,

I still got some trouble with my Linux master and Windows slave that often 
hang.

I don't have anything into the jenkins.log to help
Feb 25, 2017 3:05:41 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Workspace clean-up
Feb 25, 2017 3:05:41 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Workspace clean-up. 29 ms
Feb 25, 2017 6:03:12 AM hudson.triggers.SCMTrigger$Runner run
INFO: SCM changes detected in Bodycad cpp projects » 
CAD_CPP_ContinuousBuild. Triggering  #105
Feb 25, 2017 11:31:25 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Feb 25, 2017 11:31:30 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default


The dmesg -T on the server doesn't help much either but I got the following 
error after forcing restart Jenkins:
[Mon Feb 27 11:43:37 2017] CIFS VFS: Send error in Close = -512
Yes the server build info are locate on a CIFS share. I had some CFIS error 
before, I increased the VM memory and tweak the vm_dirty* parameters to get 
ride of those.

This often occur right after a bat command on the slave
bat returnStatus: false, script: "\"${bcad.msbuild_current}\" 
${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build"

The command seem to have successfully completed into the output log but 
then nothing happen and I cannot kill the build, the Web GUI is accessible 
but nothing can be done to un jam them, I have to restart Jenkins, which 
try to recover the build and fail since it a sequential sequence at at that 
point.

This doesn't show up when starting the build manually. Any way to debug 
this? It's really interfering with our build system and lock Porject and 
Slave.

Jerome

-- 
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/450edafc-2a19-4bdd-a2d0-cc5ac27a27ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Windows slave: Unable to produce a script file

2017-02-16 Thread 'jmohre' via Jenkins Users
I found the problem by myself.
It was indeed wrong access rights to C:\╗Windows.
I was not able to create files in that directory - after disablig UAC by 
the following 
it works.

Press keys “Windows Key + R”, type regedit
Locate 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA
Update the EnableLUA value to 0 (turn if off)
Restart Windows.

Am Donnerstag, 16. Februar 2017 15:16:11 UTC+1 schrieb jmohre:
>
> Hi,
>
>  
>
> I get an error when I try to execute a job on a windows slave.
>
> I added the error log below.
>
> I seems that depending on how I start the windows salve – the error occurs 
> or not.
>
>  
>
> I want to start the slave via execution command on the master, like this* 
> ssh -v mcetestuser@20-MCE-UT2 javaw -jar C:/JenkinsSlave/slave.jar*
>
> This worked before on other slave PCs, but I have no idea why not on this 
> one.
>
> The slave is start but when executing a job I get an error that the script 
> file can not be created.
>
> If I start the slave via Web Start by executing the following command on 
> the slave PC 
>
> “java -jar slave.jar <http://10.49.10.43:8080/jnlpJars/slave.jar> -jnlpUrl 
> http://MyPI:Port/computer/20-MCE-UT2/slave-agent.jnlp -secret 
> 499086c90bbea551feeb64913a25946832e84329203be2090e67b4d19a454344” I have no 
> problems.
>
>  
>
> The same and most interesting thing happens if put this command in batch.
>
> If I log in with ssh to slave PC and call that batch file everything works 
> (slave connected and job succeeded), but
>
> if I call this batch script direct with the ssh command, like ssh use@testPC 
> batchFile.bat only the slave is connected but the job 
>
> failed with same error(see below).
>
>  
>
> Hope someone has ideas or tips to solve that issue.
>
>  
>
> Thanks
>
>  
>
> Jörg
>
>  
>
> Error log:
>
>  
>
> Started by user mcetestuser <http://10.49.10.43:8080/user/mcetestuser>
>
> [EnvInject] - Loading node environment variables.
>
> Building remotely on 20-MCE-UT2 <http://10.49.10.43:8080/computer/20-MCE-UT2> 
> in workspace C:\JenkinsSlave\workspace\Test
>
> FATAL: Unable to produce a script file
>
> java.io.IOException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Failed 
> to create a temp file on C:\JenkinsSlave\workspace\Test
>
> at hudson.FilePath.createTextTempFile(FilePath.java:1265) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.createTextTempFile=method>
>
> at 
> hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:128) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.createScriptFile=method>
>
> at 
> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:79) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.perform=method>
>
> at 
> hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:63) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.perform=method>
>
> at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform=method>
>
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform=method>
>
> at hudson.model.Build$BuildExecution.build(Build.java:199) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.build=method>
>
> at hudson.model.Build$BuildExecution.doRun(Build.java:160) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.doRun=method>
>
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run=method>
>
> at hudson.model.Run.execute(Run.java:1678) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute=method>
>
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run=method>
>
> at 
> hudson.model.ResourceController.execute(ResourceController.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute=method>
>
> at hudson.model.Executor.run(Execut

Windows slave: Unable to produce a script file

2017-02-16 Thread 'jmohre' via Jenkins Users
 

Hi,

 

I get an error when I try to execute a job on a windows slave.

I added the error log below.

I seems that depending on how I start the windows salve – the error occurs 
or not.

 

I want to start the slave via execution command on the master, like this* 
ssh -v mcetestuser@20-MCE-UT2 javaw -jar C:/JenkinsSlave/slave.jar*

This worked before on other slave PCs, but I have no idea why not on this 
one.

The slave is start but when executing a job I get an error that the script 
file can not be created.

If I start the slave via Web Start by executing the following command on 
the slave PC 

“java -jar slave.jar <http://10.49.10.43:8080/jnlpJars/slave.jar> -jnlpUrl 
http://MyPI:Port/computer/20-MCE-UT2/slave-agent.jnlp -secret 
499086c90bbea551feeb64913a25946832e84329203be2090e67b4d19a454344” I have no 
problems.

 

The same and most interesting thing happens if put this command in batch.

If I log in with ssh to slave PC and call that batch file everything works 
(slave connected and job succeeded), but

if I call this batch script direct with the ssh command, like ssh use@testPC 
batchFile.bat only the slave is connected but the job 

failed with same error(see below).

 

Hope someone has ideas or tips to solve that issue.

 

Thanks

 

Jörg

 

Error log:

 

Started by user mcetestuser <http://10.49.10.43:8080/user/mcetestuser>

[EnvInject] - Loading node environment variables.

Building remotely on 20-MCE-UT2 <http://10.49.10.43:8080/computer/20-MCE-UT2> 
in workspace C:\JenkinsSlave\workspace\Test

FATAL: Unable to produce a script file

java.io.IOException 
<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Failed to 
create a temp file on C:\JenkinsSlave\workspace\Test

at hudson.FilePath.createTextTempFile(FilePath.java:1265) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.createTextTempFile=method>

at 
hudson.tasks.CommandInterpreter.createScriptFile(CommandInterpreter.java:128) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.createScriptFile=method>

at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:79) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.perform=method>

at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:63) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.perform=method>

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform=method>

at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform=method>

at hudson.model.Build$BuildExecution.build(Build.java:199) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.build=method>

at hudson.model.Build$BuildExecution.doRun(Build.java:160) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.doRun=method>

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run=method>

at hudson.model.Run.execute(Run.java:1678) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute=method>

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run=method>

at hudson.model.ResourceController.execute(ResourceController.java:88) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute=method>

at hudson.model.Executor.run(Executor.java:231) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run=method>

Caused by: java.io.IOException 
<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: remote 
file operation failed: C:\JenkinsSlave\workspace\Test at 
hudson.remoting.Channel@6d6d6d6d:20-MCE-UT2

at hudson.FilePath.act(FilePath.java:910) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act=method>

at hudson.FilePath.act(FilePath.java:887) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act=method>

at hudson.FilePath.createTextTempFile(FilePath.java:1239) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.createTextTempFile=method>

... 12 more

Caused by: java.io.IOException 
<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Failed to 
create a temporary directory in C:\Windows

at hudson.FilePath$15.invoke(FilePath.java:1251) 
<http://sta

Re: pipeline : remote file operation on the windows slave no longer work

2016-12-06 Thread Jonathan Hodgson
Sorry, the { got lost somewhere in cutting and pasting. what you have is 
what I was running.

I'm pretty sure my issue has nothing to do with syntax, this is all code 
which has worked in the past. The error messages all indicate problems with 
remote file access, I've had mkdir errors, also unstash errors.

I'm currently on 2.34, but this has been happening for a few versions now.

And yes, the bat is verbose, that's because I was experimenting seeing if I 
could get anything to display, before I realized that the crash was 
happening on creating the batch file, not on running it.

There are several issues raised on JIra which seem similar, and no activity 
I can see on them. That's a worry, since this is a bit of a showstopper.



On Tuesday, December 6, 2016 at 12:24:17 AM UTC, Joel Reed wrote:
>
> This seemed to work for me:
>
> stage("Testing"){
> node ("VS2013") {
> echo "Substage running on Windows"
> bat "echo user %USERDOMAIN%\\%USERNAME%"
> }
> }
>
> I don't know if it was your cut and paste or if you were in fact not 
> properly encapsulating the stage { ... }. I would have expected a 
> compilation error and not the error you posted above if that was the case. 
> There also was a behavior change to stage syntax a few releases ago. Stage 
> expects a block. Check the release notes, 
> https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+Step+Plugin. 
> Your bat step was also a little verbose I think. Given that by default it 
> will echo the output to the console.
>
> You didn't say what versions your running but the above snippet ran as 
> expected in my latest and greatest 2.35 and all the latest plugin updates. 
>
> On Saturday, December 3, 2016 at 9:34:40 AM UTC-7, Jonathan Hodgson wrote:
>>
>> Hi,
>>
>> Remote fie operations, such as mkdir (which in this case it appears is 
>> being called by the bat pipeline step), now fail on my windows slave.
>>
>> At first I thought it was down to the user initiating the build, but it 
>> seems that may have been a red-herring, certainly the problem is user 
>> independent now.
>>
>> It worked in the past, but now a simple script iike
>>
>> stage("testing")
>> node ("VS2013")
>> {
>> echo "Substage running on Windows"
>> user_is = bat script:"echo user %USERDOMAIN%\\%USERNAME%", 
>> returnStdout:true
>> echo user_is
>> }
>> }
>>
>> bombs out with
>>
>> Started by user Jonathan Hodgson
>> [Pipeline] stage
>> [Pipeline] { (testing)
>> [Pipeline] node
>> Running on Asus K51 in C:\Jenkins\workspace\pipeline-test2
>> [Pipeline] {
>> [Pipeline] echo
>> Substage running on Windows
>> [Pipeline] bat
>> [Pipeline] }
>> [Pipeline] // node
>> [Pipeline] }
>> [Pipeline] // stage
>> [Pipeline] End of Pipeline
>> java.io.IOException: Failed to mkdirs: C:\Jenkins\workspace\pipeline-
>> test2@tmp\durable-69ea6505
>>  at hudson.FilePath.mkdirs(FilePath.java:1169)
>>  at org.jenkinsci.plugins.durabletask.
>> FileMonitoringTask$FileMonitoringController.(FileMonitoringTask.
>> java:101)
>>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController
>> .(WindowsBatchScript.java:94)
>>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController
>> .(WindowsBatchScript.java:92)
>>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript.doLaunch(
>> WindowsBatchScript.java:60)
>>  at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launchWithCookie
>> (FileMonitoringTask.java:66)
>>  at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(
>> FileMonitoringTask.java:61)
>>  at org.jenkinsci.plugins.workflow.steps.durable_task.
>> DurableTaskStep$Execution.start(DurableTaskStep.java:158)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184)
>>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126)
>>  at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.
>> java:108)
>>  at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
>>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
>> CallSiteArray.java:48)
>>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(
>> AbstractCallSite.java:113)
>>  at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151)
>>  at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(
>> GroovyInterceptor.java:21)
>>  at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.
>> SandboxInter

Re: pipeline : remote file operation on the windows slave no longer work

2016-12-05 Thread Joel Reed
This seemed to work for me:

stage("Testing"){
node ("VS2013") {
echo "Substage running on Windows"
bat "echo user %USERDOMAIN%\\%USERNAME%"
}
}

I don't know if it was your cut and paste or if you were in fact not 
properly encapsulating the stage { ... }. I would have expected a 
compilation error and not the error you posted above if that was the case. 
There also was a behavior change to stage syntax a few releases ago. Stage 
expects a block. Check the release notes, 
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+Step+Plugin. 
Your bat step was also a little verbose I think. Given that by default it 
will echo the output to the console.

You didn't say what versions your running but the above snippet ran as 
expected in my latest and greatest 2.35 and all the latest plugin updates. 

On Saturday, December 3, 2016 at 9:34:40 AM UTC-7, Jonathan Hodgson wrote:
>
> Hi,
>
> Remote fie operations, such as mkdir (which in this case it appears is 
> being called by the bat pipeline step), now fail on my windows slave.
>
> At first I thought it was down to the user initiating the build, but it 
> seems that may have been a red-herring, certainly the problem is user 
> independent now.
>
> It worked in the past, but now a simple script iike
>
> stage("testing")
> node ("VS2013")
> {
> echo "Substage running on Windows"
> user_is = bat script:"echo user %USERDOMAIN%\\%USERNAME%", 
> returnStdout:true
> echo user_is
> }
> }
>
> bombs out with
>
> Started by user Jonathan Hodgson
> [Pipeline] stage
> [Pipeline] { (testing)
> [Pipeline] node
> Running on Asus K51 in C:\Jenkins\workspace\pipeline-test2
> [Pipeline] {
> [Pipeline] echo
> Substage running on Windows
> [Pipeline] bat
> [Pipeline] }
> [Pipeline] // node
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] End of Pipeline
> java.io.IOException: Failed to mkdirs: C:\Jenkins\workspace\pipeline-
> test2@tmp\durable-69ea6505
>  at hudson.FilePath.mkdirs(FilePath.java:1169)
>  at org.jenkinsci.plugins.durabletask.
> FileMonitoringTask$FileMonitoringController.(FileMonitoringTask.java
> :101)
>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.<
> init>(WindowsBatchScript.java:94)
>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.<
> init>(WindowsBatchScript.java:92)
>  at org.jenkinsci.plugins.durabletask.WindowsBatchScript.doLaunch(
> WindowsBatchScript.java:60)
>  at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launchWithCookie(
> FileMonitoringTask.java:66)
>  at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(
> FileMonitoringTask.java:61)
>  at org.jenkinsci.plugins.workflow.steps.durable_task.
> DurableTaskStep$Execution.start(DurableTaskStep.java:158)
>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184)
>  at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126)
>  at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.
> java:108)
>  at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
>  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
> CallSiteArray.java:48)
>  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(
> AbstractCallSite.java:113)
>  at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151)
>  at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(
> GroovyInterceptor.java:21)
>  at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor
> .onMethodCall(SandboxInterceptor.java:115)
>  at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149)
>  at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146)
>  at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:123)
>  at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:123)
>  at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(
> SandboxInvoker.java:16)
>  at WorkflowScript.run(WorkflowScript:6)
>  at ___cps.transform___(Native Method)
>
> 
> Debian Linux on the master, Windows 7 on the slave, both running the same 
> version of Java.
>
> The OSX slave has no such iisues.
>
> Does anyone have any ideas? This is making my Jenkins setup pretty much 
> unusable.
>

-- 
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/55327a68-e917-4b74-8f0b-3ea44f129357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pipeline : remote file operation on the windows slave no longer work

2016-12-03 Thread Jonathan Hodgson
Hi,

Remote fie operations, such as mkdir (which in this case it appears is 
being called by the bat pipeline step), now fail on my windows slave.

At first I thought it was down to the user initiating the build, but it 
seems that may have been a red-herring, certainly the problem is user 
independent now.

It worked in the past, but now a simple script iike

stage("testing")
node ("VS2013")
{
echo "Substage running on Windows"
user_is = bat script:"echo user %USERDOMAIN%\\%USERNAME%", 
returnStdout:true
echo user_is
}
}

bombs out with

Started by user Jonathan Hodgson
[Pipeline] stage
[Pipeline] { (testing)
[Pipeline] node
Running on Asus K51 in C:\Jenkins\workspace\pipeline-test2
[Pipeline] {
[Pipeline] echo
Substage running on Windows
[Pipeline] bat
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
java.io.IOException: Failed to mkdirs: C:\Jenkins\workspace\pipeline-
test2@tmp\durable-69ea6505
 at hudson.FilePath.mkdirs(FilePath.java:1169)
 at org.jenkinsci.plugins.durabletask.
FileMonitoringTask$FileMonitoringController.(FileMonitoringTask.java:
101)
 at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.<
init>(WindowsBatchScript.java:94)
 at org.jenkinsci.plugins.durabletask.WindowsBatchScript$BatchController.<
init>(WindowsBatchScript.java:92)
 at org.jenkinsci.plugins.durabletask.WindowsBatchScript.doLaunch(
WindowsBatchScript.java:60)
 at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launchWithCookie(
FileMonitoringTask.java:66)
 at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(
FileMonitoringTask.java:61)
 at org.jenkinsci.plugins.workflow.steps.durable_task.
DurableTaskStep$Execution.start(DurableTaskStep.java:158)
 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:184)
 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:126)
 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java
:108)
 at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
CallSiteArray.java:48)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(
AbstractCallSite.java:113)
 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151)
 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(
GroovyInterceptor.java:21)
 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.
onMethodCall(SandboxInterceptor.java:115)
 at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149)
 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146)
 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:123)
 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:123)
 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(
SandboxInvoker.java:16)
 at WorkflowScript.run(WorkflowScript:6)
 at ___cps.transform___(Native Method)

https://groups.google.com/d/msgid/jenkinsci-users/4c4f6a68-cb45-45a2-be0f-48050b479400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to find suitable ssh agent when trying to connect windows slave

2016-12-02 Thread Joel Reed
Not a lot of information on how your Jenkins master and/or slaves are 
configured. But you need to make sure that your Windows host is properly 
configured as a slave to your Jenkins master. Make sure that the host in 
question show a status of connected in Manage Jenkins > Manage Nodes. 
Typically Windows agents are configured to connect to the master via JNLP 
rather than SSH. It may be possible with the latest Windows Server 2016 and 
Microsoft SSH implementation but I have no experience with that.

Jenkins docs on install Windows agents:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service#InstallingJenkinsasaWindowsservice-InstallSlaveasaWindowsservice%28require.NET2.0framework%29

I'm partial to the task method:
https://wiki.jenkins-ci.org/display/JENKINS/Launch+Java+Web+Start+slave+agent+via+Windows+Scheduler

Either way should wind you up with a valid and connected slave agent. Once 
you have a connected agent it should just be making sure that a valid 
corresponding label matching your Windows slave agent is configured in the 
Jenkins job. If you have made any recent changes you may need to make sure 
that the label is valid. Usually the Jenkins job properties will warn that 
the label presently configured does not match one connected to the master. 
Good luck!

On Tuesday, November 29, 2016 at 2:28:31 PM UTC-7, Weina Scott wrote:
>
> I recently upgraded Jenkins. When I did that I try to run tests on Windows 
> Internet Explorer through jenkins, and I get the error:
>
> Unable to find suitable ssh agent 
> <http://stackoverflow.com/questions/40871229/unable-to-find-suitable-ssh-agent-windows-slave-for-jenkins>
>
>
> Has anyone seen this error before? How do I fix?
>
> I'm trying to run builds on windows machine from Jenkins.
>
>

-- 
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/4cac893d-62cc-43a9-9a30-01357b903643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to find suitable ssh agent when trying to connect windows slave

2016-11-29 Thread Weina Scott
I recently upgraded Jenkins. When I did that I try to run tests on Windows 
Internet Explorer through jenkins, and I get the error:

Unable to find suitable ssh agent 
<http://stackoverflow.com/questions/40871229/unable-to-find-suitable-ssh-agent-windows-slave-for-jenkins>


Has anyone seen this error before? How do I fix?

I'm trying to run builds on windows machine from Jenkins.

-- 
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/f44d5f36-e678-497c-9782-491b04a93e96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: code signing with windows slave

2016-11-02 Thread Baptiste Mathus
Hey,
You have to do the research about how you would do that outside Jenkins.
Once you know what to do, then it'll be time to automate it, and possibly
ask for help here.

Cheers

Le 2 nov. 2016 9:34 PM,  a écrit :

> I am trying to find relevant documentation on how to implement code
> signing when building a Windows Executable via a Jenkins slave node running
> on Windows. I have found some vague references to the use of signtool.exe
> but cannot find any specific implementation guides for this process. Does
> anyone have any guidance to offer on this. I am at a loss.
>
> --
> 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/973506f3-b9ed-4137-80a4-e669bffd8363%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANWgJS6Cj63Pd-OZO7h5QAs1kiBNHfqB%3DzeJw8Gk6XarS5VeMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


code signing with windows slave

2016-11-02 Thread dewbin
I am trying to find relevant documentation on how to implement code signing 
when building a Windows Executable via a Jenkins slave node running on 
Windows. I have found some vague references to the use of signtool.exe but 
cannot find any specific implementation guides for this process. Does 
anyone have any guidance to offer on this. I am at a loss. 

-- 
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/973506f3-b9ed-4137-80a4-e669bffd8363%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.7.4 seems to leave behind a Java TestNG process (on Windows slave) if the build is aborted/slave loses connection

2016-10-09 Thread Greg Fraley
Thank you for the reply!  Unfortunately, we tried something similar, but 
killing a specific Java process is hard, especially when Jenkins itself is 
a Java process.  The only identifying information has to be accessed 
through the JVM, and the tools to do it are in the JDK, not the JRE, which 
would be a long and gruesome process to put on all our slaves.

I did end up filing a bug, and providing details on related issues, so 
here's to hoping that a fix can be coordinated.

On Sunday, October 9, 2016 at 1:26:42 AM UTC-4, Baptiste Mathus wrote:
>
> We worked around a similar issue in the past with selenium with a job that 
> would leave the webdriver process behind sometimes. 
> The idea for you is to find the right command for finding then killing 
> processes under Windows (or do whatever cleanup is required).
> Then just call that before or after each build.
>
> Le 6 oct. 2016 6:11 PM, "Greg Fraley"  a 
> écrit :
>
>> We have a build step that runs a TestNG suite, with the command looking 
>> something like this:
>>
>> java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml
>>
>>
>>  
>> If the process is aborted in any way (manual intervention, Jenkins build 
>> timeout, etc.) OR if the slave loses connection from the master long enough 
>> to fail the build, then there is a Java process left behind.
>>
>> This is particularly damaging to us, as we load a DLL in the Java 
>> process, locking the file handle.  If we attempt the job again, we cannot 
>> load the DLL again, meaning that all future builds will fail without manual 
>> intervention (killing the leftover process manually).
>>
>> Has anyone encountered a similar problem/have a workaround/have the 
>> ability to escalate a bug, if necessary?
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/11c2dda4-ed02-43ba-966c-fddc7c8766f9%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/ca5f61d2-9047-459d-a36c-1f0a9f17472d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.7.4 seems to leave behind a Java TestNG process (on Windows slave) if the build is aborted/slave loses connection

2016-10-08 Thread Baptiste Mathus
We worked around a similar issue in the past with selenium with a job that
would leave the webdriver process behind sometimes.
The idea for you is to find the right command for finding then killing
processes under Windows (or do whatever cleanup is required).
Then just call that before or after each build.

Le 6 oct. 2016 6:11 PM, "Greg Fraley"  a écrit :

> We have a build step that runs a TestNG suite, with the command looking
> something like this:
>
> java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml
>
>
>
> If the process is aborted in any way (manual intervention, Jenkins build
> timeout, etc.) OR if the slave loses connection from the master long enough
> to fail the build, then there is a Java process left behind.
>
> This is particularly damaging to us, as we load a DLL in the Java process,
> locking the file handle.  If we attempt the job again, we cannot load the
> DLL again, meaning that all future builds will fail without manual
> intervention (killing the leftover process manually).
>
> Has anyone encountered a similar problem/have a workaround/have the
> ability to escalate a bug, if necessary?
>
> --
> 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/11c2dda4-ed02-43ba-966c-fddc7c8766f9%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANWgJS7HdYW1_S%3DHD%2Bpsu7j6MEhk1FE9_LrYgfGete82ZyvkYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2.7.4 seems to leave behind a Java TestNG process (on Windows slave) if the build is aborted/slave loses connection

2016-10-06 Thread Greg Fraley
We have a build step that runs a TestNG suite, with the command looking 
something like this:

java -jar -Done-jar.main.class=org.testng.TestNG the-jar.jar TheTest.xml


 
If the process is aborted in any way (manual intervention, Jenkins build 
timeout, etc.) OR if the slave loses connection from the master long enough 
to fail the build, then there is a Java process left behind.

This is particularly damaging to us, as we load a DLL in the Java process, 
locking the file handle.  If we attempt the job again, we cannot load the 
DLL again, meaning that all future builds will fail without manual 
intervention (killing the leftover process manually).

Has anyone encountered a similar problem/have a workaround/have the ability 
to escalate a bug, if necessary?

-- 
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/11c2dda4-ed02-43ba-966c-fddc7c8766f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: setting up windows slave for linux jenkins.

2016-09-27 Thread jpd4nt

"Blank" is in the failed state so caused the downstream "Blank" to fail to 
run.

Fix the upstream "Blank" job and it will either work or move onto the next 
problem.


On Tuesday, 27 September 2016 14:55:07 UTC+1, Zue Sani wrote:
>
> Hi when I created a pipeline in Jenkins I had got this error . could you 
> help ,me with this please.
>
>

-- 
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/e57d7139-448d-408b-877e-e929a9eee060%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: setting up windows slave for linux jenkins.

2016-09-27 Thread Zue Sani
Hi when I created a pipeline in Jenkins I had got this error . could you
help ,me with this please.

On Wed, Aug 24, 2016 at 6:53 PM, Jesse McCormick <jesse.mccorm...@gmail.com>
wrote:

> Please post this on the Jenkins email list.
>
> On Wed, Aug 24, 2016 at 7:08 PM, Zue Sani <zue.s...@gmail.com> wrote:
>
>> Hi,
>>
>> I had setup windows slave using java web start setup. and I tried
>> downloaded the jnlp file and tried to run on the jenkins master. It says
>> cannot connect to application. (connection refused).
>>
>> Could you please help me with this.
>>
>>
>> Thank you,
>> sai.
>>
>
>

-- 
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/CAKMcRdC3Py9Q6gR%2B_090n8xBFV_rL1uCBmyG4jFHLua0cBERMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Only 1 Windows Slave is allowed by Jenkins?? Unexpected error in launching a slave

2016-09-19 Thread Vinay Sharma
Hi Voll AufMühlen,

I have been trying to configure Jenkins to launch Windows EC2 instances.
I have had success only with linux instances. 

With windows instances I have been unsuccessful. My Jenkins is able to 
launch the windows instance, but post that, nothing happens. The windows 
instance
is launched(as I can see on my AWS console). But the slave node(this 
windows ec2 node) never comes online.

Also, a few weeks ago I tried this activity, when I received the error with 
WinRM; the node was lunched but jenkins was not able to connect to this 
node.

Since you have been able to connect your windows ec2 instance with your 
Jenkins; can you please help me configure the same.

Which plugin do you use in Jenkins for connecting to AWS cloud?
Settings you have done in (Jenkins configure) cloud option.
Settings needed on AWS?
How do you manage the authentication(User name and password for your 
windows EC2 slaves.0

It will be really helpful if you can help me with the same.

Thanks and regards,
Vinay Sharma

vintro...@gmail.com

On Tuesday, 8 March 2016 19:56:56 UTC+5:30, Voll AufMühlen wrote:
>
> Hi there,
>
> hope that you can help me out :)
>
> my Configuration :* Jenkins Master, Version: 1.651 (Ubuntu 14.04 LTS 
> 64bit)*
> *Launching via: JNLP*
>
> *Java Version: 1.80_65Windows Slave Plugin: 1.1*
> 
> it's 3 days now that i have searched the whole internet, but couldn't find 
> an answer to my problem.
>
> The Problem. I have several Linux slaves that are connecting with jenkins 
> master without a problem. And I have one Windows 2012 RS slave that is 
> working without problems. But when I try to add a new windows slave (again 
> Windows 2012 R2), (with JNLP) I always receive an error.
>
> I tried everything. Using the jenkins URL using Jenkins IP 
> insteadshutting down the firewall on windows slave. There is no proxy 
> on the network.
>
> My thoughts are.*The Jenkins Master is trying to connect with every 
> Windows Jenkins Slave using the same port and that is the problem her*e.
>
>
> --
>
>
> C:\Windows\system32>"C:\Program Files\Java\jre1.8.0_65\bin\java.exe" -jar 
> C:\jenkins\slave.jar -jnlpUrl  
> https://jenkins.de/computer/JSlave/slave-agent.jnlp -secret 
> 961XX
> hudson.remoting.jnlp.Main createEngine
> INFO: Setting up slave:
> hudson.remoting.jnlp.Main$CuiListener 
> INFO: Jenkins agent is running in headless mode.
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Locating server among [https://jenkins.de/]
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Handshaking
> hudson.remoting.jnlp.Main$CuiListener status
> INFO: Connecting to jenkins.de:58844 (retrying:2)
> java.net.ConnectException: Connection timed out: connect
> at java.net.DualStackPlainSocketImpl.connect0(Native Method)
> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown 
> Source)
> at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at java.net.Socket.(Unknown Source)
> at hudson.remoting.Engine.connect(Engine.java:327)
> at hudson.remoting.Engine.run(Engine.java:235)
>
>
>
>
> ---
>
> And here is the log outpout on the Jenkins Master:
>
> /var/lib/jenkins/logs/slaves/JSlave/slave.log
>
> Verbinde zu JSlave
> ERROR: Unerwarteter Fehler beim Starten eines Slave-Prozesses aufgetreten. 
> Vermutlich handelt es sich um einen Fehler in Jenkins.
> ha:CCCAAAWB+XLCAXAAAP9bXXX/DDDSXSSS/Xb5MSSX=java.net.UnknownHostException:
>  
> JSlave: unknown error
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
> at 
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
> at java.net.InetAddress.getAllByName(InetAddress.java:1192)
> at java.net.InetAddress.getAllByName(InetAddress.java:1126)
> at java.net.InetAddress.getByName(InetAddress.java:1076)
> at 
> hudson

Re: Windows slave

2016-08-30 Thread Baptiste Mathus
Are you in a corporate environment? Are you sure the windows machine can
actually access the master?
You could use telnet on that Windows agent to see if you manage at least to
reach the fixed jnlp port you've set on the master.

Cheers

Le 24 août 2016 4:37 PM, "Timmy Vercruysse" <timmy.vercruy...@gmail.com> a
écrit :

> Dear,
>
> i'm trying to add a windows slave to a Linux server but i always get the
> following error :
> the server rejected the connection: none of the protocols were accepted.
>
> On the linux server i already added a linux build server(through ssh)
> without a problem.
> When i try to add a Windows server through jnlp it doesn't work, when i
> try to add the windows machine to another windows Jenkins server it works
> fine.
>
> I've already searched google like crazy and found the following thinks.
> - disable firewall on the server
> - disable firewall on the client.
> - set security through on a static port.
>
> But the problems remains the same.
> I can't find an logs, there is no other error, and on the disk the logging
> folder of this node remains empty.
>
> Does anybody has any idea what to do? Look for?
>
> --
> 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/66d02887-5a39-4445-835a-ab670d7d1357%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/66d02887-5a39-4445-835a-ab670d7d1357%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANWgJS4Fo5A4vLi6gQ3R49brdbP6AQ-2B1CcS71f%3DVd-vMDDsg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Windows slave on Linux server

2016-08-30 Thread Baptiste Mathus
Please don't repost. Simply use Google groups archive to see if your
message went through.

Le 24 août 2016 10:14 PM, "Timmy Vercruysse" <timmy.vercruy...@gmail.com> a
écrit :

> Dear,
>
> i'm using a Jenkins server(from Bitnami). When i try to configure a slave
> it works fine for Linux(true SSH).
> But when i try to add a Windows slave it doesn't work(Launch agent via
> Java Web Start).
> i always the the error The server rejected : none of the protocols were
> accepted(see attached screenshot).
>
> When i connect the windows client to another windows Jenkins server it
> works fine, connect to another Linux Jenkins server doesn't work.
>
> I've already checked :
> - disabled firewall on the windows & linux server.
> - changed security to static port.
> - Installed Java 64-bit & 32-bit on the pc.
>
>
>
> does anybody have any idea's.
>
> --
> 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/4b50ec2f-65ea-4193-9159-67e0a1fae663%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/4b50ec2f-65ea-4193-9159-67e0a1fae663%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANWgJS7XjQ%2BZxgB4mxmNfRg8%3DfU%2BcKmpEmmVrbnQGC3woD_AVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >