Re: notice of unmaintained plugin github-oauth-plugin

2013-01-30 Thread Jerome Lacoste
On Tuesday, January 29, 2013 6:15:43 AM UTC+1, Michael O'Cleirigh wrote:

> Hello, 
>
> I'm the author of the github-oauth-plugin.  I have a little baby at home 
> now 


congrats and good luck :)

J

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help troubleshooting Jenkins slow page load times.

2013-01-30 Thread Slide
Can you file a bug on this? That change sounds pretty major...


On Wed, Jan 30, 2013 at 6:56 PM, Maxfield Stewart wrote:

> So we resolved this issue for anyone tracking a similar problem.  The root
> cause appears to be a change in 1.482 where the number of winstone worker
> threads was reduced in code from 1000 to 10.  By reconfiguring our winstone
> startup to use more threads we restored performance to our Jenkins
> environment. We set the startup options to:
>
> --handlerCountMax=500 --handlerCountStartup=50
>
>
>
> On Wednesday, January 23, 2013 1:19:27 PM UTC-8, Maxfield Stewart wrote:
>>
>> Hello!
>>
>> We recently upgraded our Jenkins deploy from 1.480 to 1.484. Technically
>> we were trying to upgrade to 1.492 which was the latest at the time.  That
>> upgrade failed for various plugin compatibility problems and we downgraded,
>> Eventually settling on 1.484.  In the process we inherited terribly slow
>> page load times and are having trouble figuring out how to
>> troubleshoot/identify the cause.  Here's a list of what we know right now:
>>
>> * CPU: The java process for jenkins sits around %4-%8 CPU utlization
>> * Memory: We have a 5GB heap allocated, which we use about 1.5GB.  We do
>> have a memory leak, but page load times are slow even on initial restart,
>> the leak takes about a week to become a problem.
>> * Garbage Collection: We're executing Full GC's rarely, maybe once every
>> 10-15 minutes, they last about a second until the memory leak hits capacity.
>> * Disk Utilization: Nominal, no obvious signs that the drives are I/O
>> locking.
>>
>> Page loads are intermittantly bad, and worse once we crest 20-30 http
>> sessions on the box.  "Bad" is defined as we're often waiting 4-8 seconds
>> for a page load, on any page in Jenkins.  Experimenting with the load
>> times, it appears to be some kind of locking/resource contention as you can
>> make many requests at once, they'll all "wait" and then load at the same
>> time after 4-8 seconds.  When we ran 1.480 our page load times were under a
>> second, extremely snappy.
>>
>> I've looked at running java threads and nothing looks clearly locked.
>>  There were some Jenkins patch notes indicating that the number of HTTP
>> workers was reduced from 1000 to 10 between version 1.480 and 1.484 but I
>> have no way of proving if that impacted us or not.
>>
>> I'm looking for guidance on ways I can troubleshoot this problem and
>> identify the issue.  This is an extremely active Jenkins environment and I
>> cannot just do certain things, like unilaterally disable all plugins, or
>> continuously restart Jenkins, we're running CI's here nearly 24/7.  I was
>> hoping there was something specific I can look for either with the
>> JavaMelody information or other monitoring tools.  Are there any best
>> practices here?
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help troubleshooting Jenkins slow page load times.

2013-01-30 Thread Maxfield Stewart
So we resolved this issue for anyone tracking a similar problem.  The root 
cause appears to be a change in 1.482 where the number of winstone worker 
threads was reduced in code from 1000 to 10.  By reconfiguring our winstone 
startup to use more threads we restored performance to our Jenkins 
environment. We set the startup options to:

--handlerCountMax=500 --handlerCountStartup=50



On Wednesday, January 23, 2013 1:19:27 PM UTC-8, Maxfield Stewart wrote:
>
> Hello!
>
> We recently upgraded our Jenkins deploy from 1.480 to 1.484. Technically 
> we were trying to upgrade to 1.492 which was the latest at the time.  That 
> upgrade failed for various plugin compatibility problems and we downgraded, 
> Eventually settling on 1.484.  In the process we inherited terribly slow 
> page load times and are having trouble figuring out how to 
> troubleshoot/identify the cause.  Here's a list of what we know right now:
>
> * CPU: The java process for jenkins sits around %4-%8 CPU utlization
> * Memory: We have a 5GB heap allocated, which we use about 1.5GB.  We do 
> have a memory leak, but page load times are slow even on initial restart, 
> the leak takes about a week to become a problem.
> * Garbage Collection: We're executing Full GC's rarely, maybe once every 
> 10-15 minutes, they last about a second until the memory leak hits capacity.
> * Disk Utilization: Nominal, no obvious signs that the drives are I/O 
> locking.
>
> Page loads are intermittantly bad, and worse once we crest 20-30 http 
> sessions on the box.  "Bad" is defined as we're often waiting 4-8 seconds 
> for a page load, on any page in Jenkins.  Experimenting with the load 
> times, it appears to be some kind of locking/resource contention as you can 
> make many requests at once, they'll all "wait" and then load at the same 
> time after 4-8 seconds.  When we ran 1.480 our page load times were under a 
> second, extremely snappy.
>
> I've looked at running java threads and nothing looks clearly locked. 
>  There were some Jenkins patch notes indicating that the number of HTTP 
> workers was reduced from 1000 to 10 between version 1.480 and 1.484 but I 
> have no way of proving if that impacted us or not.
>
> I'm looking for guidance on ways I can troubleshoot this problem and 
> identify the issue.  This is an extremely active Jenkins environment and I 
> cannot just do certain things, like unilaterally disable all plugins, or 
> continuously restart Jenkins, we're running CI's here nearly 24/7.  I was 
> hoping there was something specific I can look for either with the 
> JavaMelody information or other monitoring tools.  Are there any best 
> practices here?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Getting command line output for each command seperatly

2013-01-30 Thread Christopher Alexander
Hi all,

Easy one this but I just don't know the easiest / quickest way to do it.

Say i have this:

>
> buildRunner =  (launcher.isUnix() == true) ? new Shell(cmd) :  new 
> BatchFile(cmd);
> try {
> buildRunner.perform(build, launcher, listener);
> InputStreamReader isr = new InputStreamReader(build.getLogInputStream());
> BufferedReader br = new BufferedReader(isr);
> String line = null;
> while((line = br.readLine()) != null)
> {
>  retList.add(line);
> }

But what i really want is only the output of the command i just run. 
What mechanism can i use to only get that?

Thanks,
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help Needed. Issue with Jelly form control - validateButton.

2013-01-30 Thread Suresh Nallamilli
Thanks Jesse for quick reply.

I created issue in JIRA# https://issues.jenkins-ci.org/browse/JENKINS-16561
and also sent a pull request(https://github.com/jenkinsci/jenkins/pull/685 
).

Tested my change in IE(8 and 9) , Mozilla and Chrome.

I am new to Jenkins eco system , please let me know if i need to do 
anything else.

Thanks,
Suresh Nallamilli.




On Wednesday, January 30, 2013 1:46:50 PM UTC-8, Jesse Glick wrote:
>
> On 01/30/2013 04:25 PM, Suresh Nallamilli wrote: 
> > If i need to submit a ticket, please let me know. 
>
> Yes please, and consider submitting a matching pull request too. Be sure 
> to include a demo plugin (or information on how to reproduce otherwise). 
>
> > I did not understand what is the additional advantage we are getting by 
> calling custom function geval instead of eval. 
>
> It is necessary in evalInnerHtmlScripts to solve JENKINS-15617 [1]. I do 
> not think it is needed in validateButton (should check that 
> RenderOnDemand.testScript passes 
> without it) and I think [2] it is only being used there because there was 
> no report that it caused any harm. 
>
> Your issue should be marked as “blocking” JENKINS-15617 to capture the 
> relationship. 
>
>
> [1] https://issues.jenkins-ci.org/browse/JENKINS-15617 
> [2] 
> https://github.com/jenkinsci/jenkins/commit/51f508ba371ee222dced304c4a77a9b1b4ca37db#commitcomment-2053232
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help Needed. Issue with Jelly form control - validateButton.

2013-01-30 Thread Jesse Glick

On 01/30/2013 04:25 PM, Suresh Nallamilli wrote:

If i need to submit a ticket, please let me know.


Yes please, and consider submitting a matching pull request too. Be sure to 
include a demo plugin (or information on how to reproduce otherwise).


I did not understand what is the additional advantage we are getting by calling 
custom function geval instead of eval.


It is necessary in evalInnerHtmlScripts to solve JENKINS-15617 [1]. I do not think it is needed in validateButton (should check that RenderOnDemand.testScript passes 
without it) and I think [2] it is only being used there because there was no report that it caused any harm.


Your issue should be marked as “blocking” JENKINS-15617 to capture the 
relationship.


[1] https://issues.jenkins-ci.org/browse/JENKINS-15617
[2] 
https://github.com/jenkinsci/jenkins/commit/51f508ba371ee222dced304c4a77a9b1b4ca37db#commitcomment-2053232

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help Needed. Issue with Jelly form control - validateButton.

2013-01-30 Thread Suresh Nallamilli
Hi *All,*
** Replying to my own question and hoping that some one will fix this 
in the jenkins scripts.
 If i need to submit a ticket, please let me know. 
*
*
 For validate button form control , implementation is available @ 
scripts/hudson-behavior.js 

 In validate function , we are using a custom function geval which is 
causing the issue.
 If i replace geval with eval i see that everything works as expected 
in IE as well.

I see some comments for geval function saying (Getting 404 error for 
the url posted in comments)
 " 
   // see 
http://perfectionkills.com/global-eval-what-are-the-options/
   // note that execScript cannot return value

 " 

 I did not understand what is the additional advantage we are getting 
by calling custom function geval instead of eval. 


Thanks,
Suresh Nallamilli.

On Monday, January 28, 2013 6:40:43 PM UTC-8, Suresh Nallamilli wrote:
>
> Hi All,
>  
> Getting warning message in a popup saying "Failed to evaluate. Invalid 
> arguments" for jelly form control validateButton. I am getting this pop up 
> irrespective of actual result of validation.
>
> This is happening only in Internet Explorer(8 and 9). This is not getting 
> reproduced when running jenkins using "mvn hpi:run" but
> getting reproduced when running jenkins using command "java -jar 
> jenkins.war" and then manually importing 
> hpi file from advanced tab.  
>
>
> Below is how my global.jelly look like
>
> 
> 
> 
>   
> 
>  
>   
> title="Validate" progress="validating"
>  method="checkID" with="authID" />
>   
>  
> 
> 
>
> and logic for validate method
>   public FormValidation doCheckID(@QueryParameter String authID)
> throws IOException, ServletException {
> if (authID.length() == 0)
> return FormValidation.error("Please enter ID");
> if (authID.length() < 4)
> return FormValidation.error("Not a valid ID");
> return FormValidation.ok("Valid ID");
> }
>   
> Complete source of sample is available @
> https://github.com/sureshreddygithub/jenkinssamples.git
>  
> To me this looks like a existing issues since i observed the same issue 
> with SCTM plugin as well 
> https://wiki.jenkins-ci.org/display/JENKINS/SCTMExecutor
>  
> Any pointers on this is appreciated.
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WAR Size Tracker

2013-01-30 Thread Andrew Gray
Hi,

Max number of failed logins.  Is the account mearly suspended / locked?

Regards,

Andrew

On Thursday, January 31, 2013, Jesse Farinacci wrote:

> Greetings,
>
> On Tue, Jan 29, 2013 at 11:12 PM, Andrew Gray
> > wrote:
> > Can we please put the WAR Size tracker job @ JOnJ  on a weekly schedule
> so
> > that it runs.
>
> It's already is.
>
> > It does not appear to have run for 3 weeks.
>
> It has run. It just hasn't been successful. See
>
> https://ci.jenkins-ci.org/job/infra_backend-war-size-tracker/lastBuild/console
>
> Someone that has a better idea about Jenkins internal IDs and how to
> get that working again will need to take a peek.
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread Jesse Glick

On 01/30/2013 02:24 PM, KEVIN FLEMING (BLOOMBERG/ 731 LEXIN) wrote:

even if the plugin archive didn't include the dependency and required the user 
to install it in their CLASSPATH some other way


…in which case the Maven build probably does not need it, either.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread KEVIN FLEMING (BLOOMBERG/ 731 LEXIN)
Yeah, that sounds a bit fishy. In addition, even if the plugin archive didn't 
include the dependency and required the user to install it in their CLASSPATH 
some other way (which would be ugly), it seems like such a license would also 
infect derivative works (such as a plugin that uses the library). Without 
seeing the license in question that's only a guess, but it would not be 
surprising.



- Original Message -
From: jenkinsci-dev@googlegroups.com
To: jenkinsci-dev@googlegroups.com
At: Jan 30 2013 13:53:31

So, you can distribute it on the Jenkins update server inside your plugin
archive, but you can't put it into a Maven repo? That doesn't seem to jive
with me.


On Wed, Jan 30, 2013 at 11:49 AM, Scott Cowan wrote:

> The terms of the third party library license doesn't allow for that.
>
>
> On Wednesday, January 30, 2013 1:30:52 PM UTC-5, Jesse Glick wrote:
>>
>> On 01/30/2013 10:26 AM, Scott Cowan wrote:
>> > I'm working on a new plugin that has a build dependency on a third
>> party library that isn't available in any public maven repository.
>>
>> So deploy that dependency to the Jenkins repository, then you are all
>> set.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Plugin can't find its own descriptor?

2013-01-30 Thread James Nord (jnord)
> > java.lang.NullPointerException
> >at
> > hudson.model.AbstractDescribableImpl.getDescriptor(AbstractDescribable
> > Impl.java:35)
> 
> Jenkins.getInstance() is null. Perhaps Jenkins is shutting down?

Hmmm  I did update a couple of plugins and hit "restart when no jobs are 
running"  but this job was running then so it shouldn't have shutdown until 
after the job finished.

However looking that the rest of the build logs the build seems to have 
abruptly terminated part way though so you may well be correct - and the 
restart when no jobs are running may be "restart when I feel like it"  and I 
will probably go back to plugin updated by hand (copy hpi, restart service)

> > is there any known issue in core around this area?
> 
> Generally there are occasional race conditions involving app==null,
> frequently seen during shutdown. It is probably impossible to improve null
> safety here since this API uses the singleton pattern rather than dependency
> injection.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread Slide
So, you can distribute it on the Jenkins update server inside your plugin
archive, but you can't put it into a Maven repo? That doesn't seem to jive
with me.


On Wed, Jan 30, 2013 at 11:49 AM, Scott Cowan wrote:

> The terms of the third party library license doesn't allow for that.
>
>
> On Wednesday, January 30, 2013 1:30:52 PM UTC-5, Jesse Glick wrote:
>>
>> On 01/30/2013 10:26 AM, Scott Cowan wrote:
>> > I'm working on a new plugin that has a build dependency on a third
>> party library that isn't available in any public maven repository.
>>
>> So deploy that dependency to the Jenkins repository, then you are all
>> set.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread Scott Cowan
The terms of the third party library license doesn't allow for that.

On Wednesday, January 30, 2013 1:30:52 PM UTC-5, Jesse Glick wrote:
>
> On 01/30/2013 10:26 AM, Scott Cowan wrote: 
> > I'm working on a new plugin that has a build dependency on a third party 
> library that isn't available in any public maven repository. 
>
> So deploy that dependency to the Jenkins repository, then you are all set. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: notice of unmaintained plugin github-oauth-plugin

2013-01-30 Thread Jesse Glick

On 01/29/2013 11:40 PM, Michael O'Cleirigh wrote:

I confirm that Sam should be a committer to the github-oauth-plugin and will be 
the new maintainer.


OK, done.


Will this give access to management of the plugin's JIRA?


I think any site user can update tickets and so on; anything else needed?


and also the ability to make releases?


Cannot remember offhand what is needed to be able to publish Maven releases. 
Not specific to the plugin.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Plugin can't find its own descriptor?

2013-01-30 Thread Jesse Glick

On 01/30/2013 06:49 AM, James Nord (jnord) wrote:

java.lang.NullPointerException
   at 
hudson.model.AbstractDescribableImpl.getDescriptor(AbstractDescribableImpl.java:35)


Jenkins.getInstance() is null. Perhaps Jenkins is shutting down?


is there any known issue in core around this area?


Generally there are occasional race conditions involving app==null, frequently seen during shutdown. It is probably impossible to improve null safety here since this API 
uses the singleton pattern rather than dependency injection.


(kutzi: the stack trace seems to indicate that the code is being run from 
master, not in a slave VM.)

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread Jesse Glick

On 01/30/2013 10:26 AM, Scott Cowan wrote:

I'm working on a new plugin that has a build dependency on a third party 
library that isn't available in any public maven repository.


So deploy that dependency to the Jenkins repository, then you are all set.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Hosting request for a new plugin

2013-01-30 Thread Karol Kański
Sure. I will include it in dashboard view plug-in.

 

Karol

 

From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On 
Behalf Of Ulli Hafner
Sent: Tuesday, January 29, 2013 10:18 AM
To: jenkinsci-dev@googlegroups.com
Subject: Re: Hosting request for a new plugin

 

Wouldn't that better fit into the dashboard view plug-in? 

 

Ulli

 

Am 28.01.2013 um 16:26 schrieb Karol Kański :





Hi

 

I’d like to request hosting for my new Jenkins plugin. It’s simple extension of 
the Dashboard View plugin, that allows provides portlet showing any custom url 
inside an iframe.

 

It’s currently at:

https://github.com/karkan/custom-iframe-portlet 
 

 

Thanks

 

Karol Kański

 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com 
 .
For more options, visit https://groups.google.com/groups/opt_out 
 .
 
 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com 
 .
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Can jenkins-ci.org host a plugin that is built elsewhere?

2013-01-30 Thread Scott Cowan
Hi,

I'm working on a new plugin that has a build dependency on a third party 
library that isn't available in any public maven repository.  I'd like to 
host it at jenkins-ci.org but wondering if I can build it myself and 
"release" the .hpi file so it is available by default in a Jenkins 
install.  Is this possible, and how does it work?

Thanks in advance,
Scott

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WAR Size Tracker

2013-01-30 Thread Jesse Farinacci
Greetings,

On Tue, Jan 29, 2013 at 11:12 PM, Andrew Gray
 wrote:
> Can we please put the WAR Size tracker job @ JOnJ  on a weekly schedule so
> that it runs.

It's already is.

> It does not appear to have run for 3 weeks.

It has run. It just hasn't been successful. See
https://ci.jenkins-ci.org/job/infra_backend-war-size-tracker/lastBuild/console

Someone that has a better idea about Jenkins internal IDs and how to
get that working again will need to take a peek.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Simple Jenkins plug-in hooked on the left menu

2013-01-30 Thread Mark Waite
https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial is a good place to 
start, though it may be even better to review the existing plugins and see if 
there is one of the hundreds which more closely matches your needs.


Mark Waite



>
> From: Roberto Minelli 
>To: jenkinsci-dev@googlegroups.com 
>Cc: Mark Waite  
>Sent: Wednesday, January 30, 2013 5:38 AM
>Subject: Re: Simple Jenkins plug-in hooked on the left menu
> 
>
>Thanks a lot, I'll look at that!
>
>
>Then how can I proceed to allow admin editing and stuff like that?
>
>
>Cheers,
>RM
>
>On Wednesday, January 30, 2013 1:34:15 PM UTC+1, Mark Waite wrote:
>You could consider starting with the HTML Publisher plugin, since it allows 
>you to create a hyperlink from the left hand side meny to an HTML page.  It 
>doesn't allow only admin edits to the resulting page, but may give a good 
>starting place.
>>
>>
>>Mark Waite
>>
>>
>>
>>>
>>> From: Roberto Minelli 
>>>To: jenkin...@googlegroups.com 
>>>Sent: Wednesday, January 30, 2013 5:22 AM
>>>Subject: Simple Jenkins plug-in hooked on the left menu
>>> 
>>>
>>>Hi,
>>>
>>>
>>>I'm new to both Maven and Jenkins and I need to develop a very simple 
>>>Jenkins plug-in but I don't know exactly how to start.
>>>
>>>
>>>I already went through the Wiki (i.e., https://wiki.jenkins- 
>>>ci.org/display/JENKINS/Plugin+ tutorial) but this does not help much.
>>>
>>>
>>>My plug-in is essentially a simple entry on the left hand side menu (i.e., 
>>>where 'New Job', 'Manage Jenkins', etc. are located) that should bring the 
>>>user to a sort of HTML table that only the admin is able to edit.
>>>
>>>
>>>Do you have any suggestion? Where I can start?
>>>
>>>
>>>Thanks in advance,
>>>RM
-- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"Jenkins Developers" group.
>>>To unsubscribe from this group and stop receiving emails from it, send an 
>>>email to jenkinsci-de...@ googlegroups.com.
>>>For more options, visit https://groups.google.com/ groups/opt_out.
>>> 
>>> 
>>>
>>>
>>>
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Developers" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-dev+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




BuildWrapperDescriptor Access to Project

2013-01-30 Thread jwa
Hi Guys,

I have a custom plugin that provides a BuildWrapper implementation to add a 
new post-build action, which can be manually invoked from a project's menu.

The configuration of this action is handled by the 
relevant BuildWrapperDescriptor, which provides the Jelly form with its 
options - as well as validation.

However, from this BuildWrapperDescriptor - I'd like to be able to access 
the project for which the action is currently being configured. This will 
allow me to set some meaningful defaults, for example - I have a field that 
specifies the subject line of an e-mail that is sent, which I'd like to 
default to the project's name. 

I cannot find any way to get a reference of the project to which the 
BuildWrapper is being configured for.

Is this by design, or am I missing something? 

jwa

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Plugin can't find its own descriptor?

2013-01-30 Thread James Nord (jnord)
We only run jobs on slaves and the master has no executors, so would this code 
not reliably hit this issue if it was a master/slave issue?

/James

From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On 
Behalf Of Christoph Kutzinski
Sent: 30 January 2013 11:55
To: jenkinsci-dev@googlegroups.com
Subject: Aw: Plugin can't find its own descriptor?

I'm not sure but maybe the code part where you are is running in the forked 
Java VM for the Maven build where the descriptors would be null - AFAIK.

You need to do your work in a callable which executes the code on the master.
Gesendet: Mittwoch, 30. Januar 2013 um 12:49 Uhr
Von: "James Nord (jnord)" mailto:jn...@cisco.com>>
An: "jenkinsci-dev@googlegroups.com" 
mailto:jenkinsci-dev@googlegroups.com>>
Betreff: Plugin can't find its own descriptor?
Hi all,

I got a really bizarre stacktrace from my plugin overnight (m2release 0.9.1, 
Jenkins 1.466.2+JENKINS-15382).

ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-us...@googlegroups.com
java.lang.NullPointerException
  at 
hudson.model.AbstractDescribableImpl.getDescriptor(AbstractDescribableImpl.java:35)
  at 
org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getDescriptor(M2ReleaseBuildWrapper.java:395)
  at 
org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:234)
  at 
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:817)
  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
  at hudson.model.Run.run(Run.java:1438)
  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
  at hudson.model.ResourceController.execute(ResourceController.java:88)
  at hudson.model.Executor.run(Executor.java:239)

But this occurs at the end of the job during the plugin environments teardown

But what I don't understand is how the plugin can be used in a job if its main 
descriptor can't be found, and this was a once off as subsequent releases are 
fine...

Anyone any clues - is there any know issues in core around this area?

/James
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Simple Jenkins plug-in hooked on the left menu

2013-01-30 Thread Roberto Minelli
Thanks a lot, I'll look at that!

Then how can I proceed to allow admin editing and stuff like that?

Cheers,
RM

On Wednesday, January 30, 2013 1:34:15 PM UTC+1, Mark Waite wrote:
>
> You could consider starting with the HTML Publisher plugin, since it 
> allows you to create a hyperlink from the left hand side meny to an HTML 
> page.  It doesn't allow only admin edits to the resulting page, but may 
> give a good starting place.
>
> Mark Waite
>
>   --
> *From:* Roberto Minelli >
> *To:* jenkin...@googlegroups.com  
> *Sent:* Wednesday, January 30, 2013 5:22 AM
> *Subject:* Simple Jenkins plug-in hooked on the left menu
>  
> Hi,
>
> I'm new to both Maven and Jenkins and I need to develop a very simple 
> Jenkins plug-in but I don't know exactly how to start.
>
> I already went through the Wiki (i.e., 
> https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial) but this 
> does not help much.
>
> My plug-in is essentially a simple entry on the left hand side menu (i.e., 
> where 'New Job', 'Manage Jenkins', etc. are located) that should bring the 
> user to a sort of HTML table that only the admin is able to edit.
>
> Do you have any suggestion? Where I can start?
>
> Thanks in advance,
> RM
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-de...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>   

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Simple Jenkins plug-in hooked on the left menu

2013-01-30 Thread Mark Waite
You could consider starting with the HTML Publisher plugin, since it allows you 
to create a hyperlink from the left hand side meny to an HTML page.  It doesn't 
allow only admin edits to the resulting page, but may give a good starting 
place.

Mark Waite



>
> From: Roberto Minelli 
>To: jenkinsci-dev@googlegroups.com 
>Sent: Wednesday, January 30, 2013 5:22 AM
>Subject: Simple Jenkins plug-in hooked on the left menu
> 
>
>Hi,
>
>
>I'm new to both Maven and Jenkins and I need to develop a very simple Jenkins 
>plug-in but I don't know exactly how to start.
>
>
>I already went through the Wiki (i.e., 
>https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial) but this does not 
>help much.
>
>
>My plug-in is essentially a simple entry on the left hand side menu (i.e., 
>where 'New Job', 'Manage Jenkins', etc. are located) that should bring the 
>user to a sort of HTML table that only the admin is able to edit.
>
>
>Do you have any suggestion? Where I can start?
>
>
>Thanks in advance,
>RM
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Developers" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-dev+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Simple Jenkins plug-in hooked on the left menu

2013-01-30 Thread Roberto Minelli
Hi,

I'm new to both Maven and Jenkins and I need to develop a very simple 
Jenkins plug-in but I don't know exactly how to start.

I already went through the Wiki 
(i.e., https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial) but 
this does not help much.

My plug-in is essentially a simple entry on the left hand side menu (i.e., 
where 'New Job', 'Manage Jenkins', etc. are located) that should bring the 
user to a sort of HTML table that only the admin is able to edit.

Do you have any suggestion? Where I can start?

Thanks in advance,
RM

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Broken backward compatibility

2013-01-30 Thread lvoty...@redhat.com
Done https://github.com/jenkinsci/jenkins/pull/683

Dne úterý, 29. ledna 2013 10:34:51 UTC+1 lvot...@redhat.com napsal(a):
>
> Ok, thanks for sharing your opinions. I will send pull request which 
> revert this commit. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Aw: Plugin can't find its own descriptor?

2013-01-30 Thread Christoph Kutzinski
I'm not sure but maybe the code part where you are is running in the forked Java VM for the Maven build where the descriptors would be null - AFAIK.

You need to do your work in a callable which executes the code on the master.



Gesendet: Mittwoch, 30. Januar 2013 um 12:49 Uhr
Von: "James Nord (jnord)" 
An: "jenkinsci-dev@googlegroups.com" 

Betreff: Plugin can't find its own descriptor?




Hi all,
 
I got a really bizarre stacktrace from my plugin overnight (m2release 0.9.1, Jenkins 1.466.2+JENKINS-15382).
 
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-us...@googlegroups.com
java.lang.NullPointerException
  at hudson.model.AbstractDescribableImpl.getDescriptor(AbstractDescribableImpl.java:35)
  at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getDescriptor(M2ReleaseBuildWrapper.java:395)
  at org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:234)
  at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:817)
  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
  at hudson.model.Run.run(Run.java:1438)
  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
  at hudson.model.ResourceController.execute(ResourceController.java:88)
  at hudson.model.Executor.run(Executor.java:239)
 
But this occurs at the end of the job during the plugin environments teardown
 
But what I don’t understand is how the plugin can be used in a job if its main descriptor can’t be found, and this was a once off as subsequent releases are fine…
 
Anyone any clues – is there any know issues in core around this area?
 
/James






-- 
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Plugin can't find its own descriptor?

2013-01-30 Thread James Nord (jnord)
Hi all,

I got a really bizarre stacktrace from my plugin overnight (m2release 0.9.1, 
Jenkins 1.466.2+JENKINS-15382).

ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-us...@googlegroups.com
java.lang.NullPointerException
  at 
hudson.model.AbstractDescribableImpl.getDescriptor(AbstractDescribableImpl.java:35)
  at 
org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.getDescriptor(M2ReleaseBuildWrapper.java:395)
  at 
org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$2.tearDown(M2ReleaseBuildWrapper.java:234)
  at 
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:817)
  at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480)
  at hudson.model.Run.run(Run.java:1438)
  at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
  at hudson.model.ResourceController.execute(ResourceController.java:88)
  at hudson.model.Executor.run(Executor.java:239)

But this occurs at the end of the job during the plugin environments teardown

But what I don't understand is how the plugin can be used in a job if its main 
descriptor can't be found, and this was a once off as subsequent releases are 
fine...

Anyone any clues - is there any know issues in core around this area?

/James

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Plugin dependencies resolves badly

2013-01-30 Thread Sandell, Robert
I have the following dependencies for a plugin:

Build-failure-analyzer -has optional dependency to-> Gerrit Trigger -has 
required dependency to-> git plugin

If you look at the wiki page for BFA at [1] it shows as the BFA has an optional 
dependency to Gerrit Trigger and a required dependency to the git plugin which 
I feel is wrong.
But I shrugged this off as a simple display bug and didn't think more about it 
until just now when I on a clean Jenkins 1.424 instance did a manual install of 
the BFA and no other plugins; It failed to load because the git plugin is not 
installed.
This feels like a bug to me and I tried to search in Jira to see if someone 
else has reported it but don't exactly know what to search for.
Has it been solved in newer version of core? Doesn't seem like it since the 
wiki page still shows the wrong info.
Or have I just done some bad configuration in my plugins?


[1] https://wiki.jenkins-ci.org/display/JENKINS/Build+Failure+Analyzer



Robert Sandell
Software Tools Engineer
SW Environment and Product Configuration
Development Environment

Sony Mobile Communications
Tel: +46 (0)10 80 12721
sonymobile.com

[cid:image001.jpg@01CDFED5.A9F72D10]


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


<>