Thread hijacking (was: Re: Java API for Team Foundation Server)

2016-01-07 Thread Dirk Heinrichs
Hi,

please don't hijack other peoples threads, it's considered bad habit.

Thanks a lot...

Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 159 (Ansage) 1149
*Email*: d...@recommind.com 
*Skype*: dirk.heinrichs.recommind
www.recommind.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/568F5DFC.7020602%40recommind.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread Bap

Quoting iostrym :


Hi,

We have a TCL script that has a GUI that is executed by Jenkins using a
shell script in the job.

Then we have to use :

export DISPLAY=:

I used things like that to try to avoid the use of a port number that is
already used by someone else or by another job :

export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`

Is there a clean way in the jenkins shell script to get a port_number that
is free ? so that the job will never fail because of a port_number already
existant...

thanks a lot.



Try this: https://wiki.jenkins-ci.org/display/JENKINS/Port+Allocator+Plugin



Sorry, you asked for a free port number, but that's not really what you want.

As suggested, you should use  
https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin


--
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/20160107175703.Horde.f5atShauknlWjqbvv2UXTPA%40mail.a1.org.uk.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
yes, sorry it was a mistake.

anyway, I don't succeed to let jenkins to chose the display number when 
using Xvbf plugin...

Le jeudi 7 janvier 2016 15:11:33 UTC+1, Dirk Heinrichs a écrit :
>
> Am 07.01.2016 um 15:05 schrieb iostrym:
>
> Thanks a lot. But is the use of Xvfb plug-in more heavy than a 
> simple export DISPLAY function ? in term of ressource utilization...
>
>
> Without it, setting DISPLAY for a Jenkins job doesn't make much sense.
>
> Bye...
>
> Dirk
> -- 
>
> *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
> *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
> *Tel*: +49 2226 159 (Ansage) 1149
> *Email*: d...@recommind.com 
> *Skype*: dirk.heinrichs.recommind
> www.recommind.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/2c04b093-546d-48cd-8cc6-c85319336b83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread Bap

Quoting iostrym :


Hi,

We have a TCL script that has a GUI that is executed by Jenkins using a
shell script in the job.

Then we have to use :

export DISPLAY=:

I used things like that to try to avoid the use of a port number that is
already used by someone else or by another job :

export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`

Is there a clean way in the jenkins shell script to get a port_number that
is free ? so that the job will never fail because of a port_number already
existant...

thanks a lot.



Try this: https://wiki.jenkins-ci.org/display/JENKINS/Port+Allocator+Plugin

--
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/20160107175220.Horde.dtKqahauknlWjqXUKXuHRYA%40mail.a1.org.uk.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread Dirk Heinrichs
Am 07.01.2016 um 15:05 schrieb iostrym:

> Thanks a lot. But is the use of Xvfb plug-in more heavy than a
> simple export DISPLAY function ? in term of ressource utilization...

Without it, setting DISPLAY for a Jenkins job doesn't make much sense.

Bye...

Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 159 (Ansage) 1149
*Email*: d...@recommind.com 
*Skype*: dirk.heinrichs.recommind
www.recommind.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/568E7207.4070702%40recommind.com.
For more options, visit https://groups.google.com/d/optout.


Re: export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
ok i just realized that after the 

export DISPLAY=:

I have the command :

Xvfb :`expr "$BUILD_NUMBER" + "100"` &

So using the plugin will have the same impact.

But... in the plugin I don't see anything to use a free port number... it 
is said that the port_number will be the number of the build. So there will 
be risk for build to abord if the port_number is take by another job...

Le jeudi 7 janvier 2016 15:05:33 UTC+1, iostrym a écrit :
>
> Thanks a lot. But is the use of Xvfb plug-in more heavy than a 
> simple export DISPLAY function ? in term of ressource utilization...
>
> Le jeudi 7 janvier 2016 14:24:07 UTC+1, Mark Waite a écrit :
>>
>> The xvnc plugin can start a VNC based X server at the start of your job, 
>> and stop it at the end of your job.  Most Linux distributions make it very 
>> easy to install Xvnc, then the plugin will use that installation of Xvnc to 
>> provide you a display server (and the DISPLAY environment variable).  I had 
>> very good results with that plugin.
>>
>> There is also an Xvfb plugin which uses the X virtual frame buffer driver 
>> to do the same thing.  I haven't used it, but there are others who have 
>> used it with good results.
>>
>> Mark Waite
>>
>> On Thu, Jan 7, 2016 at 6:07 AM iostrym  wrote:
>>
>>> Hi,
>>>
>>> We have a TCL script that has a GUI that is executed by Jenkins using a 
>>> shell script in the job.
>>>
>>> Then we have to use :
>>>
>>> export DISPLAY=:
>>>
>>> I used things like that to try to avoid the use of a port number that is 
>>> already used by someone else or by another job :
>>>
>>> export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`
>>>
>>> Is there a clean way in the jenkins shell script to get a port_number 
>>> that is free ? so that the job will never fail because of a port_number 
>>> already existant...
>>>
>>> thanks a lot.
>>>
>>> -- 
>>> 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/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%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/29e03fd5-524d-4b5e-8f35-0049e79f3e21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Authenticating jenkins-cli using crowd2 Plugin

2016-01-07 Thread Robert Szentmihalyi
Hi,

I ran into a problem trying to use jenkins-cli with Atlassian Crowd 
authentification (using the crowd2 plugin.
As soon as I set the security realm (using a Groovy script from a Chef 
recipe), Jenkins throws tons of like this:



Jan 07, 2016 1:50:46 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection #2663 from /127.0.0.1:32924
Exception in thread "Thread-5332" 
org.acegisecurity.userdetails.UsernameNotFoundException: jenkinsdeploy
at 
hudson.security.SecurityRealm$None$2.loadUserByUsername(SecurityRealm.java:494)
at 
jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32)
at hudson.model.User.impersonate(User.java:309)
at 
org.jenkinsci.main.modules.cli.auth.ssh.SshCliAuthenticator.authenticate(SshCliAuthenticator.java:44)
at hudson.cli.CliManagerImpl$2.run(CliManagerImpl.java:109)
Jan 07, 2016 1:50:47 PM hudson.TcpSlaveAgentListener$ConnectionHandler run
INFO: Accepted connection #2664 from /127.0.0.1:32926
Exception in thread "Thread-5334" 
org.acegisecurity.userdetails.UsernameNotFoundException: jenkinsdeploy
at 
hudson.security.SecurityRealm$None$2.loadUserByUsername(SecurityRealm.java:494)
at 
jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32)
at hudson.model.User.impersonate(User.java:309)
at 
org.jenkinsci.main.modules.cli.auth.ssh.SshCliAuthenticator.authenticate(SshCliAuthenticator.java:44)
at hudson.cli.CliManagerImpl$2.run(CliManagerImpl.java:109)

...



I set the slave agent port to a fixed value, but that does not change this 
behaviour.
The user does exist in the Crowd directory and login worksfrom the Jenkins 
UI. 


I am currently testing this with Jenkins 1.619, but I tried different 
versions with the same result.

Any idea what I might be missing?

TIA,
 Robert

-- 
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/f5831686-714d-4fe5-9ef9-53a2755587d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


export display in a shell script executed by Jenkins

2016-01-07 Thread iostrym
Hi,

We have a TCL script that has a GUI that is executed by Jenkins using a 
shell script in the job.

Then we have to use :

export DISPLAY=:

I used things like that to try to avoid the use of a port number that is 
already used by someone else or by another job :

export DISPLAY=:`expr "$BUILD_NUMBER" + "100"`

Is there a clean way in the jenkins shell script to get a port_number that 
is free ? so that the job will never fail because of a port_number already 
existant...

thanks a lot.

-- 
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/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins AWS CodeDeploy Plugin

2016-01-07 Thread Baptiste Mathus
Hi,

There's a wiki page for every available Jenkins plugins. Here it's
https://wiki.jenkins-ci.org/display/JENKINS/AWS+Codedeploy+plugin and you
should find what you need.

Cheers

2016-01-07 10:10 GMT+00:00 :

> Hi, does anyone know how to contact the AWS CodeDeploy Plugin developer? I
> need to know how to pass proxy authentication. 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/ee545113-9b53-4d85-90f0-abf40a6082e7%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/CANWgJS6qy_u4CymjVGh27XfeR1iOjzDghpKa66c_9DjcwzHC6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins AWS CodeDeploy Plugin

2016-01-07 Thread donovan . bailey2015
Hi, does anyone know how to contact the AWS CodeDeploy Plugin developer? I 
need to know how to pass proxy authentication. 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/ee545113-9b53-4d85-90f0-abf40a6082e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.