Re: Does the sh pipeline step not work in windows with cygwin?

2017-07-01 Thread Dan Tran

I was hoping i can get emulated unix shell on window to bootstrap my JNLP 
slave which then delegates the rest to Docker via Jenkins Pipeline

-D


On Saturday, July 1, 2017 at 3:51:14 AM UTC-7, James Nord wrote:
>
> Any form of Linux emulation on Windows will bring you a world of pain at 
> some point especially inside pipeline. 
> Even the bash on windows can give you interesting and wonderful results as 
> the jvm launch could be the windows one or the Linux one...  
>
> My recommendation is to either 
> 1) just use a Unix agent
> 2) just call bat (in pipeline) and then get that to call another shell 
> scripts if you need. 
>

-- 
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/9e8c21ca-a769-4dcb-badd-3c2e44b31aa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2017-07-01 Thread James Nord
Any form of Linux emulation on Windows will bring you a world of pain at some 
point especially inside pipeline. 
Even the bash on windows can give you interesting and wonderful results as the 
jvm launch could be the windows one or the Linux one...  

My recommendation is to either 
1) just use a Unix agent
2) just call bat (in pipeline) and then get that to call another shell scripts 
if you need. 

-- 
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/c37e3a9b-9156-4f39-a695-954ea8776d0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2017-06-30 Thread Dan Tran
same issue found on Mingw shell.

Ubuntu shell is promising,  unfortunately I don't see that option under my 
windows 10 enterprise after turning on 'Developers mode'. I may have been 
disable by company's central IT

-Dan 

On Friday, June 30, 2017 at 1:42:25 AM UTC-7, Dirk Heinrichs wrote:
>
> On 30.06.2017 10:25, Dan Tran wrote:
>
> I am facing same issue where i spin a jnlp slave using cygwin shell, and 
> runs a jenkins pipeline job run inside docker
>
>
> Not sure if that helps, though, but did you try using Windows 10's Ubuntu 
> feature (given your Windows 10 is new enough) instead of Cygwin? Might be 
> more Linux'ish than Cygwin ever was...
>
> HTH...
>
> Dirk
> -- 
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dirk.he...@recommind.com 
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon 
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f23f865e-2e7b-40ed-944e-66438e1ff5dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2017-06-30 Thread Dirk Heinrichs
On 30.06.2017 10:25, Dan Tran wrote:

> I am facing same issue where i spin a jnlp slave using cygwin shell,
> and runs a jenkins pipeline job run inside docker

Not sure if that helps, though, but did you try using Windows 10's
Ubuntu feature (given your Windows 10 is new enough) instead of Cygwin?
Might be more Linux'ish than Cygwin ever was...

HTH...

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

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

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

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

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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/14c25f1e-baa5-ab9f-d9e6-9eeed6eb8303%40opentext.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2017-06-30 Thread Dan Tran
I am facing same issue where i spin a jnlp slave using cygwin shell, and 
runs a jenkins pipeline job run inside docker

Here is the error log. The job bails out before spin docker container to 
build

Running shell script
sh: /cygdrive/c/views/jenkins/workspace/@tmp/durable-1398ef71/pid: No such 
file or directory
sh: 
/cygdrive/c/views/jenkins/workspace/@tmp/durable-1398ef71/jenkins-log.txt: 
No such file or directory
sh: 
/cygdrive/c/views/jenkins/workspace/@tmp/durable-1398ef71/jenkins-result.txt:
 No such file or directory



I am on windows 10 with jenkins master as docker container (jenkinsci:LTS).  
The slave is on same host using cygwin with access to docker


Thoughts?


-D





On Monday, February 6, 2017 at 4:31:46 AM UTC-8, Marcelo Filho wrote:
>
> Same here, any update? Now I've being blocked by the SSH agent... :(
>
> On Thursday, December 22, 2016 at 9:09:10 AM UTC+1, Kadrach IsFictious 
> wrote:
>>
>> Hi Jonathan,
>>
>> did you ever resolve this issue? I have the same problem.
>>
>> Cheers,
>>
>> Kad
>>
>> On Sunday, July 3, 2016 at 10:32:34 AM UTC+10, Jonathan Hodgson wrote:
>>>
>>> No, it's in my path though. And from what I can see it finds cygwin ok, 
>>> it's the generated shel script it doesn't find.
>>>
>>> I've avoided setting it in the global configuration because it isn't 
>>> global, my linux and osx machines have different locations for sh compared 
>>> to the windows one.
>>>
>>> On Saturday, July 2, 2016 at 11:50:38 PM UTC+1, slide wrote:

 Did you specify the path to sh on the file system in the shell area in 
 the global configuration?

 On Sat, Jul 2, 2016 at 12:37 PM Jonathan Hodgson  
 wrote:

> Hi,
>
> I have cygwin installed (and the cygpath plugin), and the slave seems 
> to find it, but it can't find the script that I assume is first generated 
> by the jenkins slave before calling sh.
>
> [C:\Jenkins\workspace\pipeline-test] Running shell script
> sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: 
> command not found
>
>
> Is this something that anybody has working?
>
>
>
> -- 
> 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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%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/3f184dcc-6771-4fa2-a535-992dcb6117ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2017-02-06 Thread Marcelo Filho
Same here, any update? Now I've being blocked by the SSH agent... :(

On Thursday, December 22, 2016 at 9:09:10 AM UTC+1, Kadrach IsFictious 
wrote:
>
> Hi Jonathan,
>
> did you ever resolve this issue? I have the same problem.
>
> Cheers,
>
> Kad
>
> On Sunday, July 3, 2016 at 10:32:34 AM UTC+10, Jonathan Hodgson wrote:
>>
>> No, it's in my path though. And from what I can see it finds cygwin ok, 
>> it's the generated shel script it doesn't find.
>>
>> I've avoided setting it in the global configuration because it isn't 
>> global, my linux and osx machines have different locations for sh compared 
>> to the windows one.
>>
>> On Saturday, July 2, 2016 at 11:50:38 PM UTC+1, slide wrote:
>>>
>>> Did you specify the path to sh on the file system in the shell area in 
>>> the global configuration?
>>>
>>> On Sat, Jul 2, 2016 at 12:37 PM Jonathan Hodgson  
>>> wrote:
>>>
 Hi,

 I have cygwin installed (and the cygpath plugin), and the slave seems 
 to find it, but it can't find the script that I assume is first generated 
 by the jenkins slave before calling sh.

 [C:\Jenkins\workspace\pipeline-test] Running shell script
 sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: 
 command not found


 Is this something that anybody has working?



 -- 
 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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%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/e3cceef8-f2d8-405e-8b4e-93643427b49e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2016-12-22 Thread Kadrach IsFictious
Hi Jonathan,

did you ever resolve this issue? I have the same problem.

Cheers,

Kad

On Sunday, July 3, 2016 at 10:32:34 AM UTC+10, Jonathan Hodgson wrote:
>
> No, it's in my path though. And from what I can see it finds cygwin ok, 
> it's the generated shel script it doesn't find.
>
> I've avoided setting it in the global configuration because it isn't 
> global, my linux and osx machines have different locations for sh compared 
> to the windows one.
>
> On Saturday, July 2, 2016 at 11:50:38 PM UTC+1, slide wrote:
>>
>> Did you specify the path to sh on the file system in the shell area in 
>> the global configuration?
>>
>> On Sat, Jul 2, 2016 at 12:37 PM Jonathan Hodgson  
>> wrote:
>>
>>> Hi,
>>>
>>> I have cygwin installed (and the cygpath plugin), and the slave seems to 
>>> find it, but it can't find the script that I assume is first generated by 
>>> the jenkins slave before calling sh.
>>>
>>> [C:\Jenkins\workspace\pipeline-test] Running shell script
>>> sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: 
>>> command not found
>>>
>>>
>>> Is this something that anybody has working?
>>>
>>>
>>>
>>> -- 
>>> 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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%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/2c652a4e-a353-440a-bb9d-444eeb4661a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2016-07-02 Thread Jonathan Hodgson
No, it's in my path though. And from what I can see it finds cygwin ok, 
it's the generated shel script it doesn't find.

I've avoided setting it in the global configuration because it isn't 
global, my linux and osx machines have different locations for sh compared 
to the windows one.

On Saturday, July 2, 2016 at 11:50:38 PM UTC+1, slide wrote:
>
> Did you specify the path to sh on the file system in the shell area in the 
> global configuration?
>
> On Sat, Jul 2, 2016 at 12:37 PM Jonathan Hodgson  > wrote:
>
>> Hi,
>>
>> I have cygwin installed (and the cygpath plugin), and the slave seems to 
>> find it, but it can't find the script that I assume is first generated by 
>> the jenkins slave before calling sh.
>>
>> [C:\Jenkins\workspace\pipeline-test] Running shell script
>> sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: 
>> command not found
>>
>>
>> Is this something that anybody has working?
>>
>>
>>
>> -- 
>> 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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%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/053f076f-dde0-45a6-8793-c873c7fa8e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the sh pipeline step not work in windows with cygwin?

2016-07-02 Thread Slide
Did you specify the path to sh on the file system in the shell area in the
global configuration?

On Sat, Jul 2, 2016 at 12:37 PM Jonathan Hodgson 
wrote:

> Hi,
>
> I have cygwin installed (and the cygpath plugin), and the slave seems to
> find it, but it can't find the script that I assume is first generated by
> the jenkins slave before calling sh.
>
> [C:\Jenkins\workspace\pipeline-test] Running shell script
> sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: 
> command not found
>
>
> Is this something that anybody has working?
>
>
>
> --
> 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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%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/CAPiUgVf88kT7O9BRmphLGO0hF3trwf887aFf3yqDCYF0nA1d%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Does the sh pipeline step not work in windows with cygwin?

2016-07-02 Thread Jonathan Hodgson
Hi,

I have cygwin installed (and the cygpath plugin), and the slave seems to 
find it, but it can't find the script that I assume is first generated by 
the jenkins slave before calling sh.

[C:\Jenkins\workspace\pipeline-test] Running shell script
sh: C:\Jenkins\workspace\pipeline-test@tmp\durable-313cd6e7\script.sh: command 
not found


Is this something that anybody has working?



-- 
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/6ca18674-19a0-4681-ba28-64ed9f24a7b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.