Winstone-Pullrequest

2012-05-09 Thread andre . gross
Hi,

could somebody please take a look at my Winstone pullrequest and integrate 
it (if it's ok)
or give me feedback what to change ?

Thanks,
Andre
_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  |  
Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 


Re: Winstone-Pullrequest

2012-05-09 Thread Lloyd Chang
Hi Andre,

Which specific pull request?  Would you kindly provide a full URL to it?
 While I see your name in this pull request at
https://github.com/jenkinsci/tikal-multijob-plugin/pull/2 but I don't see a
reference to Winstone in commit messages in the link, hence I'm unsure
which pull request you're asking everyone to help look at?

Thanks,
Lloyd

On Wed, May 9, 2012 at 12:11 AM,  wrote:

>
> Hi,
>
> could somebody please take a look at my Winstone pullrequest and integrate
> it (if it's ok)
> or give me feedback what to change ?
>
> Thanks,
> Andre
>
> _
> *
> André Groß*  |  * Schneider Electric **  |  Industry Business*  |   *
> Germany*  |   *Software Projectleader* *
> Phone:* ++49 (0) 6182 81 ext. 2646  |   *
> Email:* 
> *andre.gr...@schneider-electric.com* |
> *Site:** www.schneider-electric.com*  |
> *Address:* Schneider Electric Automation GmbH, Steinheimer Strasse 117,
> 63500 Seligenstadt, Germany
>
> *** Please consider the environment before printing this e-mail
>


Re: Plugin hosting request, valgrind-plugin

2012-05-09 Thread Åsmund Østvold
I have been hoping this should be created! On [1] it states that it needs
Jenkins core 1.455 is this actually needed?  I ask because my production
environment is 1.445? I may consider upgrading Jenkins just because of this
plugin, but I would prefer not to.

Regards
Asmund


[1] https://wiki.jenkins-ci.org/display/JENKINS/Valgrind+Plugin


On Fri, May 4, 2012 at 4:14 PM, Johannes Ohlemacher <
johannes.ohlemac...@googlemail.com> wrote:

> hi,
> i wrote a jenkins plugin to run valgrind on executables and collect
> information about memory leaks and errors.
>
> Its in use for some of my other projects since a couple of weeks and i
> would like to share it with the jenkins community.
>
> github ID: eXistence
> github rep: git://github.com/eXistence/valgrind-plugin.git
>
> greetings,
> Johannes
>


Performance issue concerning method getCaseResult() of class hudson.tasks.junit.ClassResult

2012-05-09 Thread Th. Walter
Hello,


we are running jenkins version 1.463 and we execute a Junit test class
containing about 100.000 test cases. If I trigger a mouseover event
for a link of a failed test on the test results page (http://localhost:
8080/job//lastCompletedBuild/testReport/) a post request is
sent:

POST /job//lastCompletedBuild/testReport///contextMenu

This post request causes that the method getCaseResult() of class
hudson.tasks.junit.ClassResult is called. This method contains a for-
loop over all test cases in the test class:

public CaseResult getCaseResult(String name) {
for (CaseResult c : cases) {
if(c.getSafeName().equals(name))
return c;
}
return null;
}

In the for-loop the method getSafeName() is called, which calls
uniquifyName() of class hudson.tasks.test. In this method there is
another for-loop over all test cases of the test class:

   ...
   for (TestObject sibling : siblings) {
if (sibling != this &&
uniquified.equals(UNIQUIFIED_NAMES.get(sibling))) {
uniquified = base + '_' + ++sequence;
}
}
   ...

Therefore the inner for loop is called  (number of testcases) times
(number of testcases). For out test class the inner for-loop is
therefore called 100 times. As a result the CPU goes to 100%
and Jenkins must be stopped.

Is there a possibility to improve getCaseResult() so that its
execution time scales linear in the numer of testcases?


Thomas


Antwort: Re: Winstone-Pullrequest

2012-05-09 Thread andre . gross
Hi Lloyd,

the pull request is in the winstone git:

https://github.com/jenkinsci/winstone/pull/3

Regards,
Andre

_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  |  
Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 






Lloyd Chang  
Gesendet von: jenkinsci-dev@googlegroups.com
09.05.2012 09:18
Bitte antworten an
jenkinsci-dev@googlegroups.com


An
jenkinsci-dev@googlegroups.com
Kopie

Thema
Re: Winstone-Pullrequest






Hi Andre,

Which specific pull request?  Would you kindly provide a full URL to it? 
 While I see your name in this pull request at 
https://github.com/jenkinsci/tikal-multijob-plugin/pull/2 but I don't see 
a reference to Winstone in commit messages in the link, hence I'm unsure 
which pull request you're asking everyone to help look at?

Thanks,
Lloyd

On Wed, May 9, 2012 at 12:11 AM,  
wrote:

Hi, 

could somebody please take a look at my Winstone pullrequest and integrate 
it (if it's ok) 
or give me feedback what to change ? 

Thanks, 
Andre
_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  | 
  Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 


__
This email has been scanned by the Symantec Email Security.cloud service.
__


Re: Re: Winstone-Pullrequest

2012-05-09 Thread Lloyd Chang
Done; thanks Andre!

git commit
https://github.com/jenkinsci/winstone/commit/e462d03fdab858742653e30a187b28fc79656c96
pull request https://github.com/jenkinsci/winstone/pull/3
issue tracking https://issues.jenkins-ci.org/browse/JENKINS-12854

Cheers,
Lloyd

On Wed, May 9, 2012 at 1:14 AM,  wrote:

>
> Hi Lloyd,
>
> the pull request is in the winstone git:
>
> https://github.com/jenkinsci/winstone/pull/3
>
> Regards,
> Andre
>
>
> _
> *
> André Groß*  |  * Schneider Electric **  |  Industry Business*  |   *
> Germany*  |   *Software Projectleader* *
> Phone:* ++49 (0) 6182 81 ext. 2646  |   *
> Email:* 
> *andre.gr...@schneider-electric.com* |
> *Site:** www.schneider-electric.com*  |
> *Address:* Schneider Electric Automation GmbH, Steinheimer Strasse 117,
> 63500 Seligenstadt, Germany
>
> *** Please consider the environment before printing this e-mail
>
>
>
>
>
>  *Lloyd Chang *
> Gesendet von: jenkinsci-dev@googlegroups.com
>
> 09.05.2012 09:18
>  Bitte antworten an
> jenkinsci-dev@googlegroups.com
>
>   An
> jenkinsci-dev@googlegroups.com
> Kopie
>   Thema
> Re: Winstone-Pullrequest
>
>
>
>
> Hi Andre,
>
> Which specific pull request?  Would you kindly provide a full URL to it?
>  While I see your name in this pull request at *
> https://github.com/jenkinsci/tikal-multijob-plugin/pull/2*
>  but I
> don't see a reference to Winstone in commit messages in the link, hence I'm
> unsure which pull request you're asking everyone to help look at?
>
> Thanks,
> Lloyd
>
> On Wed, May 9, 2012 at 12:11 AM, 
> <*andre.gr...@schneider-electric.com*>
> wrote:
>
> Hi,
>
> could somebody please take a look at my Winstone pullrequest and integrate
> it (if it's ok)
> or give me feedback what to change ?
>
> Thanks,
> Andre
>
> _
> *
>
> André Groß*  |  * Schneider Electric **  |  Industry Business*  |   *
> Germany*  |   *Software Projectleader* *
> Phone:* *++49 (0) 6182 81 ext. 
> 2646*<%2B%2B49%20%280%29%206182%2081%20ext.%202646> |
> *
> Email:* 
> *andre.gr...@schneider-electric.com* |
> *Site:** www.schneider-electric.com*  |
> *Address:* Schneider Electric Automation GmbH, Steinheimer Strasse 117,
> 63500 Seligenstadt, Germany
>
> *** Please consider the environment before printing this e-mail
>
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> __
>


Antwort: Re: Re: Winstone-Pullrequest

2012-05-09 Thread andre . gross
Thanks to you. Now I can go again on the next official version. :-)

Andre
_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  |  
Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 






Lloyd Chang  
Gesendet von: jenkinsci-dev@googlegroups.com
09.05.2012 10:33
Bitte antworten an
jenkinsci-dev@googlegroups.com


An
jenkinsci-dev@googlegroups.com
Kopie

Thema
Re: Re: Winstone-Pullrequest






Done; thanks Andre!

git commit 
https://github.com/jenkinsci/winstone/commit/e462d03fdab858742653e30a187b28fc79656c96

pull request https://github.com/jenkinsci/winstone/pull/3
issue tracking https://issues.jenkins-ci.org/browse/JENKINS-12854

Cheers,
Lloyd

On Wed, May 9, 2012 at 1:14 AM,  
wrote:

Hi Lloyd, 

the pull request is in the winstone git: 

https://github.com/jenkinsci/winstone/pull/3 

Regards, 
Andre 

_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  | 
  Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 






Lloyd Chang  
Gesendet von: jenkinsci-dev@googlegroups.com 
09.05.2012 09:18 


Bitte antworten an
jenkinsci-dev@googlegroups.com


An
jenkinsci-dev@googlegroups.com 
Kopie

Thema
Re: Winstone-Pullrequest








Hi Andre, 

Which specific pull request?  Would you kindly provide a full URL to it? 
 While I see your name in this pull request at 
https://github.com/jenkinsci/tikal-multijob-plugin/pull/2 but I don't see 
a reference to Winstone in commit messages in the link, hence I'm unsure 
which pull request you're asking everyone to help look at? 

Thanks, 
Lloyd 

On Wed, May 9, 2012 at 12:11 AM,  
wrote: 

Hi, 

could somebody please take a look at my Winstone pullrequest and integrate 
it (if it's ok) 
or give me feedback what to change ? 

Thanks, 
Andre
_
 


André Groß  |   Schneider Electric   |  Industry Business  |   Germany  | 
  Software Projectleader 
Phone: ++49 (0) 6182 81 ext. 2646  |   
Email: andre.gr...@schneider-electric.com  |   Site: 
www.schneider-electric.com  |   Address: Schneider Electric Automation 
GmbH, Steinheimer Strasse 117, 63500 Seligenstadt, Germany 

*** Please consider the environment before printing this e-mail 


__
This email has been scanned by the Symantec Email Security.cloud service.
__ 


__
This email has been scanned by the Symantec Email Security.cloud service.
__


Re: Proxy configuration

2012-05-09 Thread Stephen Connolly
Have a look at the AHCUtils class in the async-http-client plugin
(it's on github)

On 9 May 2012 00:55, Jaime Garcia  wrote:
> Hi fellows!
> I'm trying to get the proxy settings that are set in the "HTTP Proxy
> Configuration" panel inside the plugins section from a customized
> plugin, according the help button in there "The value you submit here
> will be set as http.proxyHost system property." so I used
> System.getProperty("http.proxyHost") to pull the proxy host value
> without success, it returns null despite I have a value set in this
> field. Anyone could point me out on what mechanism/method use to get
> this values? I'll be so much thankful with any help.
>
> Jaime.


Announcing Zubhium Plugin for Jenkins

2012-05-09 Thread Andreas Katzig
Hi there,

I want to announce that I've created a plugin for Zubhium (http://
www.zubhium.com) at https://github.com/derFunk/jenkins-zubhium-plugin.

Zubhium is an ad hoc distribution system for Android apps, much like
TestFlight for iOS. The plugin uploads the build artifacts in a post
build action.

This plugin is already live in our production. I still want to check
the code for errors and then request plugin hosting officially.


I'm announcing, so that nobody makes the work twice.


All the best,

Andreas



Re: Plugin hosting request, valgrind-plugin

2012-05-09 Thread Ullrich Hafner
It would be good, if new plug-ins would depend on a Jenkins LTS core
version. If possible, not the latest one... If you don't use new
features, please downgrade your pom to 1.409 (or 1.424).

Ulli


On 05/09/2012 09:44 AM, Åsmund Østvold wrote:
> I have been hoping this should be created! On [1] it states that it
> needs Jenkins core 1.455 is this actually needed?  I ask because my
> production environment is 1.445? I may consider upgrading Jenkins just
> because of this plugin, but I would prefer not to.
>
> Regards 
> Asmund
>
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Valgrind+Plugin
>
>
> On Fri, May 4, 2012 at 4:14 PM, Johannes Ohlemacher
>  > wrote:
>
> hi,
> i wrote a jenkins plugin to run valgrind on executables and
> collect information about memory leaks and errors.
>
> Its in use for some of my other projects since a couple of weeks
> and i would like to share it with the jenkins community.
>
> github ID: eXistence
> github rep: git://github.com/eXistence/valgrind-plugin.git
> 
>
> greetings,
> Johannes
>
>



Re: Plugin hosting request, valgrind-plugin

2012-05-09 Thread Johannes Ohlemacher
Hi Asmund,
nice to hear there is some interest in a valgrind plugin.

It just happened to require 1.455 because thats the version i am working 
and testing with, but as Ulli said its a really good idea to downgrade that 
to a LTS version of jenkins.
I will do that, run some tests and make a new release (with some other 
small changes) over the course of the day.

Johannes


Am Mittwoch, 9. Mai 2012 09:44:02 UTC+2 schrieb asmundo:
>
> I have been hoping this should be created! On [1] it states that it needs 
> Jenkins core 1.455 is this actually needed?  I ask because my production 
> environment is 1.445? I may consider upgrading Jenkins just because of this 
> plugin, but I would prefer not to.
>
> Regards 
> Asmund
>
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Valgrind+Plugin
>
>
> On Fri, May 4, 2012 at 4:14 PM, Johannes Ohlemacher <
> johannes.ohlemac...@googlemail.com> wrote:
>
>> hi,
>> i wrote a jenkins plugin to run valgrind on executables and collect 
>> information about memory leaks and errors.
>>
>> Its in use for some of my other projects since a couple of weeks and i 
>> would like to share it with the jenkins community.
>>
>> github ID: eXistence
>> github rep: git://github.com/eXistence/valgrind-plugin.git
>>
>> greetings,
>> Johannes
>>
>
>

Re: Subversion plugin support for svn 1.7?

2012-05-09 Thread nicolas de loof
>
>
> On 04/26/2012 07:45 AM, nicolas de loof wrote:
>
>> Olivier explained me the licensing issue with svnkit 1.7, with "TmateSoft
>> License" is not compatible with Jenkins MIT as it requires all derivative
>> to
>> follow "complete source code for your application must be available and
>> freely
>> redistributable under reasonable conditions"
>>
>
> It depends on the interpretation of the "reasonable conditions", but if
> you agree that the redistribution conditions of the MIT license
> (attribution) is reasonable (and if not, nothing can be reasonable?), then
> the combined derivative work (jenkins.war) satisfies the requirements of
> the TMate license.
>
> And interested parties can always drop subversion.hpi from Jenkins core.
>
>
>>
Right, we are not lawyers, and definitively don't want to be. It's not a
reasonable world :)


Re: Plugin hosting request, valgrind-plugin

2012-05-09 Thread Johannes Ohlemacher
Hello Asmund,

i just released version 0.5 of the plugin and its already available via 
update-center.
Required Jenkins version is now 1.424 (1.409 failed to build with 
maven2...).

I hope the plugin works for your project setup and is useful to you, 
feedback is highly appreciated :)

Johannes



Am Mittwoch, 9. Mai 2012 12:49:11 UTC+2 schrieb Johannes Ohlemacher:
>
> Hi Asmund,
> nice to hear there is some interest in a valgrind plugin.
>
> It just happened to require 1.455 because thats the version i am working 
> and testing with, but as Ulli said its a really good idea to downgrade that 
> to a LTS version of jenkins.
> I will do that, run some tests and make a new release (with some other 
> small changes) over the course of the day.
>
> Johannes
>
>
> Am Mittwoch, 9. Mai 2012 09:44:02 UTC+2 schrieb asmundo:
>>
>> I have been hoping this should be created! On [1] it states that it needs 
>> Jenkins core 1.455 is this actually needed?  I ask because my production 
>> environment is 1.445? I may consider upgrading Jenkins just because of this 
>> plugin, but I would prefer not to.
>>
>> Regards 
>> Asmund
>>
>>
>> [1] https://wiki.jenkins-ci.org/display/JENKINS/Valgrind+Plugin
>>
>>
>> On Fri, May 4, 2012 at 4:14 PM, Johannes Ohlemacher <
>> johannes.ohlemac...@googlemail.com> wrote:
>>
>>> hi,
>>> i wrote a jenkins plugin to run valgrind on executables and collect 
>>> information about memory leaks and errors.
>>>
>>> Its in use for some of my other projects since a couple of weeks and i 
>>> would like to share it with the jenkins community.
>>>
>>> github ID: eXistence
>>> github rep: git://github.com/eXistence/valgrind-plugin.git
>>>
>>> greetings,
>>> Johannes
>>>
>>
>>

Re: Adding a new required Advanced Property

2012-05-09 Thread Jerry Hoerig
So I am either dense or slow. I cannot figure out how I would extend the 
security (GlobalAuthorizationMatrixStrategy) to do what I am trying to 
achieve.

I have created a simple plugin to provide a JobProperty for flagging a Job 
as a "standard", meaning CI or sonar, or "Deploy" for a job that deploys an 
ear to a server environment. What I want to do now is enhance the  
GlobalAuthorizationMatrixStrategy to filter the display such that if the 
user is not in the correct LDAP group the user is unable to schedule or 
invoke a build.

Has someone done something like this? I could definitely use some help. 
There just doesn't seem to be any documentation about how the auth model 
works.

Help,
Jerry


On Monday, May 7, 2012 3:48:09 PM UTC-4, Jerry Hoerig wrote:
>
> Simon,
>
> The JobProperty was indeed the one I needed for the config value. Took me 
> a bit to get it to work. There is a lack of examples that isn't helping me 
> any.
>
> I am going to follow your suggestion for the security model. The code 
> there is fairly abstract but I have to figure this out. What I basically 
> need now is to extend the Matrix security to check the property I added and 
> remove the Build and Schedule Build icons in the display.
>
> Are there any good examples you know of I could look at?
>
> Thanks,
> Jerry
>
> On Saturday, May 5, 2012 3:22:42 PM UTC-4, swiest wrote:
>>
>> Hi Jerry, 
>>
>> the extension point 
>> http://javadoc.jenkins-ci.org/hudson/model/JobProperty.html might be 
>> what you are looking for on the configuration side of your idea. 
>>
>> As for the "enforcing security" side, you might want to use the 
>> extension point 
>> http://javadoc.jenkins-ci.org/hudson/security/AuthorizationStrategy.html 
>> to define a proper strategy according to your needs. 
>>
>> Cheers, 
>> Simon. 
>> -- 
>> Jerry Hoerig (04.05.2012 15:27): 
>> > I need to add a new property to the Job configuration page that 
>> > identifies a Job as either standard or deploy so I can then extend the 
>> > security to restrict deploy type jobs to a specific AD group. 
>> > 
>> > I am new to Jenkins development and am having a hard time figuring out 
>> > what to extend and how to proceed. I can't find a high level 
>> > architectural overview that describes extensions well and I am lost. 
>> > Most examples seem to be around Builder but this feels like it should 
>> > happen prior to a build. 
>> > 
>> > Can someone point me in the right direction? 
>>
>

JDK installation fails on Slave machines: oracle.com website can't be parsed

2012-05-09 Thread Alexey Skor
hey guys, can someone please take a look at this -
https://issues.jenkins-ci.org/browse/JENKINS-13178  ?
maybe this problem can be solved with
https://issues.jenkins-ci.org/browse/JENKINS-13729 ?