Dynamically update textarea depending on value of drop down list

2018-01-29 Thread Daniel Olausson
Hi,

I have a drop down list that is populated dynamically. When the build step 
in this case is selected a REST request is made to a services which returns 
a list of elements, these elements make up the drop down list.

When an element is selected from the list another REST call will be made to 
fetch the template for this particular element, this template should be put 
into the textarea.

Everything works except that the textarea is not updated. Somehow we need 
to reference the textarea and update the content in the browser... (because 
in the backend the value is correct, its just not updated in the 
client/browser)

Any ideas?
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/92074dcf-431f-485d-9394-25721cd315cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin hosting request

2015-05-28 Thread Daniel Olausson
So what do you guys think?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1b20f925-0b32-4748-93f8-fac2f9cd1443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin hosting request

2015-05-26 Thread Daniel Olausson
I haven't looked into the EnvInject plugin very deeply but from what I can 
see you have to create an additional "EnvInject build step" after your own 
build step in order to inject any potential environment variables into the 
next build step.

The problem with this is if you have both build steps and post build steps. 
If your build step fails for some reason any previous build steps will not 
be executed and thus also the EnvInject build step that is suppose to 
inject the environment variables into the build.

My plugin works like this:


Build step 1:
"
#!/bin/bash

# do some stuff...
# result = `some program`

echo "RESULT=$result" > $ENVFILE
"

Build step2:
"
#!/bin/bash

# do some other stuff...

echo $RESULT
"

Post build step:
"
#!/bin/bash

# do something with $RESULT
"


Regardless if build step 1 exits successfully or not, the post build step 
will always know about $RESULT.

When using the EnvInject, from my understanding, I would have to have 
another build step in between build step 1 and 2 to get $RESULT into build 
step 2. And if build step 1 fails, the EnvInject build step will not be 
executed and thus the post build step will not know about $RESULT.





On Tuesday, 26 May 2015 15:38:58 UTC+2, Christopher wrote:
>
> EnvInject also lets you write to a properties file in one build step 
> then inject that file for use in all subsequent build steps. 
>
> I see that your plugin may make it a bit more convenient to do so, but 
> it would be better to merge that functionality into EnvInject, rather 
> than publishing a separate plugin. 
>
> Regards, 
> Chris 
>
>
> On 26/05/15 15:25, Daniel Olausson wrote: 
> > No that plugin let's you provide a file containing environment variables 
> > that are then injected at build execution start. 
> > 
> > My plugin provides the user with a file where he/she can store 
> > environment variables across build steps. 
> > 
> > 
> > 
> > On Tuesday, 26 May 2015 08:02:10 UTC+2, Dominik Bartholdi wrote: 
> > 
> > The I guess its about the same as: 
> > https://wiki.jenkins-ci.org/display/JENKINS/Envfile+Plugin 
> > <https://wiki.jenkins-ci.org/display/JENKINS/Envfile+Plugin> 
> > /Domi 
> > 
> > On 25 May 2015, at 21:07, Daniel Olausson  > > wrote: 
> > 
> >> Hi, 
> >> 
> >> GitHub: 
> >> https://github.com/rednuht/retainenvironment 
> >> <https://github.com/rednuht/retainenvironment> 
> >> 
> >> Description can be found at: 
> >> https://github.com/rednuht/retainenvironment/blob/master/README.md 
> >> <https://github.com/rednuht/retainenvironment/blob/master/README.md> 
>
> >> 
> >> Shares some similarities with the EnvInject plugin but my plugin 
> >> doesn't require the user to use any additional build steps. 
> >> 
> >> Br, 
> >> Daniel Olausson 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1d0a2e6d-2659-4c65-b440-4e6c8da46ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin hosting request

2015-05-26 Thread Daniel Olausson
No that plugin let's you provide a file containing environment variables 
that are then injected at build execution start.

My plugin provides the user with a file where he/she can store environment 
variables across build steps.



On Tuesday, 26 May 2015 08:02:10 UTC+2, Dominik Bartholdi wrote:
>
> The I guess its about the same as:
> https://wiki.jenkins-ci.org/display/JENKINS/Envfile+Plugin
> /Domi
>
> On 25 May 2015, at 21:07, Daniel Olausson  > wrote:
>
> Hi,
>
> GitHub:
> https://github.com/rednuht/retainenvironment
>
> Description can be found at:
> https://github.com/rednuht/retainenvironment/blob/master/README.md
>
> Shares some similarities with the EnvInject plugin but my plugin doesn't 
> require the user to use any additional build steps.
>
> Br,
> Daniel Olausson
>
> -- 
> 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 .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/1ec4cf30-7ff8-48b4-af3c-c8e703c6e778%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/1ec4cf30-7ff8-48b4-af3c-c8e703c6e778%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/34e13300-fc8e-4ef6-8cf7-d7ff26465696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Plugin hosting request

2015-05-25 Thread Daniel Olausson
Hi,

GitHub:
https://github.com/rednuht/retainenvironment

Description can be found at:
https://github.com/rednuht/retainenvironment/blob/master/README.md

Shares some similarities with the EnvInject plugin but my plugin doesn't 
require the user to use any additional build steps.

Br,
Daniel Olausson

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1ec4cf30-7ff8-48b4-af3c-c8e703c6e778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Include descriptor in form

2014-07-01 Thread Daniel Olausson
I got help from elsewhere, the solution is to use f:property:



Now everything works as I want.

On Tuesday, 1 July 2014 10:47:13 UTC+2, Robert Sandell wrote:
>
> It’s a bit hard to guess without a context to look at.
>
> But try a div tag around the include with a name attribute of the 
> contructor parameter the object is going in to and/or provide the “it” 
> attribute to the include tag.
>
>  
>
>  
>
>  
>
>  
>
> *Robert Sandell*
>
> Software Tools Engineer - SW Environment and Product Configuration
>
> Sony Mobile Communications
>
>  
>
> *From:* jenkin...@googlegroups.com  [mailto:
> jenkin...@googlegroups.com ] *On Behalf Of *Daniel Olausson
> *Sent:* den 1 juli 2014 10:06
> *To:* jenkin...@googlegroups.com 
> *Subject:* Re: Include descriptor in form
>
>  
>
> If i use the dropdownDescriptorSelector everything works but I don't want 
> to have a dropdown list with only one element inside it, it looks terrible.
>
>  
>
> I can make it so that only the actual content of the descriptor's jelly 
> file is displayed by doing:
>
>  page="${descriptor.getDescriptorToInclude().configPage}" 
> /> 
>
>  
>
> But then the form validation doesn't work and i cannot instantiate the 
> outer class.
>
>
> On Tuesday, 1 July 2014 08:29:23 UTC+2, Daniel Olausson wrote:
>
> Hi,
>
>  
>
> I have a describable/descriptor class that will be used at multiple 
> locations and i don't want to repeat the jelly code everywhere. But from i 
> can see on the jelly Taglib references page there are only options to 
> include a list of descriptors and not a single descriptor.
>
>  
>
>  
>
> Is it possible?
>
> -- 
> 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/d/optout.
>

-- 
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/d/optout.


Re: Include descriptor in form

2014-07-01 Thread Daniel Olausson
If i use the dropdownDescriptorSelector everything works but I don't want 
to have a dropdown list with only one element inside it, it looks terrible.

I can make it so that only the actual content of the descriptor's jelly 
file is displayed by doing:
 

But then the form validation doesn't work and i cannot instantiate the 
outer class.

On Tuesday, 1 July 2014 08:29:23 UTC+2, Daniel Olausson wrote:
>
> Hi,
>
> I have a describable/descriptor class that will be used at multiple 
> locations and i don't want to repeat the jelly code everywhere. But from i 
> can see on the jelly Taglib references page there are only options to 
> include a list of descriptors and not a single descriptor.
>
>
> Is it possible?
>

-- 
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/d/optout.


Include descriptor in form

2014-06-30 Thread Daniel Olausson
Hi,

I have a describable/descriptor class that will be used at multiple 
locations and i don't want to repeat the jelly code everywhere. But from i 
can see on the jelly Taglib references page there are only options to 
include a list of descriptors and not a single descriptor.


Is it possible?

-- 
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/d/optout.


Form validation for a hetero-list doesn't want to work

2014-06-25 Thread Daniel Olausson
Hi,

I've been developing Jenkins plugins for quite some time now but I just 
can't get this form validation to work.

Some code:

This is the variable I want to validate(In the Describable class):
private final List mySecrets;

This is the form validation method(It is in the Descriptor class of course):
public FormValidation doCheckMySecrets(@QueryParameter final 
List mySecrets) {
System.out.println("I am called");
return FormValidation.ok();
}

And this is the config.jelly:





>From the beginning the hetero-list wasn't wrapped in an entry tag and I 
thought adding it would solve the problem, but no...

Have I missed something?

-- 
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/d/optout.


Re: Plugin design advice

2014-02-12 Thread Daniel Olausson
Hi,

I have understood you correctly?

Let's say we have 2 lamps( or two projects), and in the Jenkins we have 10 
jobs, and that you want to associate 5 jobs to lamp number 1 and 5 jobs to 
lamp number 2.

The behavior will be such that when one of the jobs in a "lamp-group" 
fails, it should trigger some kind of event which will be used to turn the 
real lamp on/off/green/red..etc/blabla?

There are a number of ways you could group jobs together. Either you could 
go for your initial idea of specifying the lamp-groups as a global 
configuration and then in the configuration for a job having a setting 
which selects one( or more?) of these lamp-groups. However, this would mean 
that you would have to access each and every job and select the wanted 
lamp-group, and if there are a lot of jobs it will be a mind numbing task. 
For example if there are 50 jobs in a group, having to add each job to the 
group one by one is not such a good idea.

The filter view rss thingy sounds like an easy thing to do, but as you say 
it requires polling and is not very configurable.

I didn't quite understand the part where you said a view wont work when its 
not visible. I think a view would be a good choice for this project. You 
can extend the regular ListView with your own code, where you can use the 
RunListener to receive events from Jenkins when a job has finished 
executing, check if this job is in this view( this lamp-group ), and if it 
is trigger the lamp thingy.

1. Create a View that extends the ListView
2. Connect a RunListener to your implementation
3. When RunListener.onFinalized() is triggered, check if the finalized 
build is from a job in this view(lamp-group)
4. If (3) is true -> trigger your lamp in some way. If (3) is false, just 
ignore it

This solution would mean that each instance of the lamp-group-view will 
have its own RunListener and every time a build is finished all of these 
RunListeners will get triggered. I guess this isn't a good thing if you 
have hundreds of lamp-group-views since it will do the same check 
everywhere, but since you probably won't have that many I think it should 
be okay. If you really want to have only one RunListener, you would have 
your plugin keep a list of all lamp-group-views and then iterate over them 
when a build has finished to see which lamp to trigger. 


Regards,
Daniel




On Tuesday, 11 February 2014 20:26:29 UTC+1, AndyB wrote:
>
> Hi  Plugin-developers,
>
> I'd like to ask some advice about how best to architect a plugin. 
>
> We have a system that can wirelessly enable build break 'lamps' from a 
> master controller running on a PC (could be Jenkins master). What I'd like 
> to do is create something like a view filter that will allow a number of 
> jobs to be selected and tied to a particular lamp instance (representing a 
> project or team). A lamp would reflect the worst-case build state of the 
> selected jobs. E.g. if any jobs failed it would indicate a fail, if all 
> jobs passed it would indicate passing state.
>
> What I'm wondering is how this would be best achieved (please bare mind 
> this will be my first plugin development so it's possible(likely) I've got 
> the wrong end of the stick in some of the following...).  
>
> I first thought about the 'wall display' type view (exemplified by the 
> 'Build  Monitor' plugin), this allows a list of jobs to created easily, I 
> thought to add a global config section that added a list of lamps, then 
> each view could be associated with a lamp. This seems like a reasonable 
> design, but I think it would only work if the view was visible, checking 
> for build state changes. I don't think this would work as there wouldn't be 
> a guarantee that view was visible so that changes could be missed.
>
> It seems that push style notifications would be better, however I've only 
> seen this as something that's configurable as a post build step. I'd prefer 
> to have the user select what jobs they want to monitor rather than having 
> to modify the jobs. Basically I'd like to aggregate the notification over a 
> number of jobs.
>
> A simpler alternative would be to create an RSS feed for a filter view 
> (functionality that already exists) and associate a feed with each lamp, 
> the controller would then continuously poll the feed for changes and send 
> updates to the appropriate lamp. This also sounds less than ideal as the 
> feed would need continuous polling and it doesn't leave any room to tune 
> any parameters that could be associated with a lamp (as the content of the 
> RSS feed is fixed). It could however be implemented without a plugin, or 
> maybe a global config could be created that the user entered a view in (the 
> RSS being based on that view name).  I don't see any kind of extension 
> point that could be used to create a custom RSS-like notifier.
>
> Is my analysis correct? Is there a better way to create the type of 
> aggregate notifier I need?  Any suggestions of how I could approach 

JobProperty missing its descriptor

2014-02-10 Thread Daniel Olausson
Hi,

I've been trying to implement a JobProperty which is not visible to the user. 
Its only purpose is to store a String together with the job configuration.
I created a class which extends JobProperty and in that class I created a 
public static class extending JobPropertyDescriptor. I put @Extension on this 
descriptor. The JobProperty I created only contain a String and a setter/getter 
for it.

The problem I'm having is that it says my descriptor is missing! 

I tried replacing the JobProperty and JobPropertyDescriptor with 
AbstractDescribableImpl and Descriptor respectively, and this works, 
i.e. no missing descriptor warning. However, this the String I want to persist 
won't be saved in the job configuration, it will be saved in a separate XML 
file in the Jenkins home directory.

Please help, this is so frustrating.

-- 
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: Resources in src/main/webapp is missing when plugin is deployed

2013-07-31 Thread Daniel Olausson
Thanks, it worked.

What do you mean with "Cf. Plugin.doDynamic"?

On Tuesday, 30 July 2013 17:41:21 UTC+2, Jesse Glick wrote:
>
> On Tue, Jul 30, 2013 at 8:50 AM, Daniel Olausson 
> > 
> wrote: 
> >  
>
> Try: ${resURL}/plugin/myArtifactId/js/myJavascript.js 
>
> Cf. Plugin.doDynamic, and use 1.460 or later. 
>

-- 
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.




Resources in src/main/webapp is missing when plugin is deployed

2013-07-30 Thread Daniel Olausson
Hi,

So I added a javascript to src/main/webapp/, like so:

myPlugin/src/main/webapp/js/myJavascript.js

But I get this in the console in chrome:

GET http://localhost:8080/jenkins/static/393d6b14/js/myJavascript.js 404 
(Not Found) 


I've looked at other plugins that also use static resources but I can't see 
something that they do that I don't. 

I have a class that extends the PageDecorator extensionpoint and in the 
header.jelly file I have this:





Right now I just write the whole javascript in the header.jelly file but I 
feel it's a bit ugly.


Any ideas of where I've done something wrong?

-- 
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: Getting the ParameterValue for a certain ParameterDefinition before the job is put into the Queue

2013-07-18 Thread Daniel Olausson
Hi,

It was in the Queue.Task I was using. But you kind of helped me anyways 
because I was so focused on the Queue.Task object that I completely forgot 
about the list of Actions that are also passed to the shouldSchedule() 
method... Which of course contains the parameters for the project.

Thx :P


On Wednesday, 17 July 2013 17:44:33 UTC+2, Marc MacIntyre wrote:
>
> Does the Queue.task passed into QueueDecisionHandler.shouldSchedule() have 
> the info you need?
>
>
> http://javadoc.jenkins-ci.org/hudson/model/Queue.QueueDecisionHandler.html#shouldSchedule(hudson.model.Queue.Task,
>  
> java.util.List)
>
>
> On Wed, Jul 17, 2013 at 7:53 AM, Daniel Olausson 
> 
> > wrote:
>
>> Hello,
>>
>> I'm currently working on a high availability(active-active) plugin for 
>> Jenkins, and right now I'm trying to retrieve the parameters of a job 
>> before it has been put into the queue.
>>
>> I've tried all the getters available, i.e. project.getProperties, 
>> project.getAllProperties, project.getActions... But they all return the 
>> same thing, which is the default PropertyValue and that is not interesting.
>>
>> In essence, what I'm trying to do, without revealing too much info, is to 
>> schedule a job on another jenkins but I'm having issues with getting 
>> parameterized build to work.
>>
>> The value of the parameters must be somewhere because when the job has 
>> started to execute the value can be accessed, but this is too late for me.
>>
>>
>> Any ideas?
>>
>> BR,
>> Daniel
>>
>> -- 
>> 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.
>>  
>>  
>>
>
>
>
> -- 
> Marc MacIntyre
>  

-- 
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 the ParameterValue for a certain ParameterDefinition before the job is put into the Queue

2013-07-17 Thread Daniel Olausson
Hello,

I'm currently working on a high availability(active-active) plugin for 
Jenkins, and right now I'm trying to retrieve the parameters of a job 
before it has been put into the queue.

I've tried all the getters available, i.e. project.getProperties, 
project.getAllProperties, project.getActions... But they all return the 
same thing, which is the default PropertyValue and that is not interesting.

In essence, what I'm trying to do, without revealing too much info, is to 
schedule a job on another jenkins but I'm having issues with getting 
parameterized build to work.

The value of the parameters must be somewhere because when the job has 
started to execute the value can be accessed, but this is too late for me.


Any ideas?

BR,
Daniel

-- 
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.




How to programmatically show a notificationBar?

2013-07-10 Thread Daniel Olausson
Hi,

I want to show a notificationBar, like the one when you click the save 
button in the job configuration page.

The notificationBar should appear when a user is on a configuration page. 
e.g. JenkinsRoot/job/testJOB/configure, and some one else has modified that 
configuration.


Let's say I have a way of detecting that the configuration has been 
modified, how can I put the notification bar on the 
"JenkinsRoot/job/testJOB/configure" page of any other user that may be 
visiting it?


What I want is this scenario:
Two people, A and B, are both on the "JenkinsRoot/job/testJOB/configure" 
page at the same time, but on different machines obviously. B updates the 
configuration for testJOB and A can see a notificationBar notifying him/her 
that the configuration has been modified.



Is this something that can be done, and how do I do it? I understand the 
notificationBar example from UI-samples but in that situation there is a 
button that is being pressed, but in my scenario the action will not come 
from a person clicking a button. 

 I don't have much experience when it comes to groovy and webapps and those 
kinds of things (servletContext?).



Regards,
Daniel

-- 
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.




Synchronizing build number

2013-02-11 Thread Daniel Olausson
Hi,

We are writing a plugin to synchronize the build number between two or more 
instances of Jenkins running the same job.

That is, if we start jobA on one Jenkins instance and it gets build number 
5, if jobA starts on another Jenkins instance it should get number 6.

We have been successful in doing this but it's not atomically, which means 
that if we start the job at exactly the same time, they will get the same 
build number.
Right now we send a message when a job is started to the other Jenkins 
instances which will trigger a call to the 'updateNextBuildNumber' method.

The easiest way would be if we could make the 'assignBuildNumber' method on 
the Jenkins instances mutual exclusive, and when 'assignBuildNumber' is 
called the build number on the other jenkeses
are updated. However we have not found a way to modify the 
'assignBuildNumber' method without modifying the jenkins core.

Our plan to achieve mutual exclusion is to use a distributed lock, which 
will prevent concurrent access to the build number. 

We want to lock the lock before 'assignBuildNumber' is called, and release 
it when we know that all instances have updated their build number.

Do you know any good extension points for this?




-- 
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: Debug Jenkins core using NetBeans

2013-02-06 Thread Daniel Olausson
Thank you very much :) If I have a plugin, is there any way that i can 
debug the whole thing together or do I have to install my plugin manually 
when i debug jenkins core? And if I want to set breakpoints in my own 
plugin I can just press debug on my plugin in NetBeans?

On Tuesday, 5 February 2013 19:30:45 UTC+1, Jesse Glick wrote:
>
> On 02/05/2013 08:32 AM, Daniel Olausson wrote: 
> > I want to use NetBeans and put break points in Jenkins and then debug 
> it. For example if I put a break point in a 
> > listener and then push a button on the Jenkins web I can step forward 
> and see what's really happening. 
> > 
> > Anyone know how this can be done? 
>
> Open (at least) the core and war modules, running a “priming build” if 
> requested. Set your breakpoints. Then select the war module and hit Debug 
> Project. When Jenkins 
> starts, browse http://localhost:8080/ and do what you need to do. That is 
> all. 
>

-- 
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: where can I find the code that deletes builds?

2013-02-05 Thread Daniel Olausson
You can also look here:

Hudson.model.Run Line 1242:

 public synchronized void delete()

On Tuesday, 5 February 2013 11:51:14 UTC+1, Chris Withers wrote:
>
> Hi All, 
>
> Trying to do some debugging for this issue: 
>
> https://issues.jenkins-ci.org/browse/JENKINS-16638 
>
> Where would I look in a clone of the jenkins repo to find the code that 
> deletes old builds? (since that's my only guess as to what could have 
> deleted these child builds...) 
>
> cheers, 
>
> Chris 
>
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting 
>  - http://www.simplistix.co.uk 
>

-- 
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.




Debug Jenkins core using NetBeans

2013-02-05 Thread Daniel Olausson
Hi,

I want to use NetBeans and put break points in Jenkins and then debug it. 
For example if I put a break point in a 
listener and then push a button on the Jenkins web I can step forward and 
see what's really happening.

Anyone know how this can be done?

-- 
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.