Re: Guice Dependency Injection in a plugin?

2015-02-19 Thread Baptiste Mathus
Just played a bit with it in my plugins (and I guess I'm gonna use more DI
from now on), IIUC your example, you indeed should mark the related classes
with @Extension so that the system knows about them.

So, in your example, I think you should just NOT have a class like
your MyGuiceModule.java because Jenkins is gonna auto-discover classes
marked @Extension, and then add @Extension on MySvcImpl and MyPublisher.
And be done.

Worked for me.

HTH

2014-12-18 1:08 GMT+01:00 Dan Alvizu dalv...@pingidentity.com:

 Hi,

 I just wrote this wiki page on how to do dependency injection in a plugin:

 https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Injection

 I want to use this so that I can provide a move requests to external
 resource to a service class and pass a mock to my Publisher during unit
 tests.

 The problem with the example I gave in the wiki is that I cannot provide a
 mock easily:

 @Override
 public boolean perform(AbstractBuild?, ? build, Launcher launcher, 
 BuildListener listener)
 {
 Guice.createInjector(new MyModule()).injectMembers(this);
 // ...mySvc.myServiceMethod(); // it works!}


 I need to remove that Guice.creatInjector() line.

 Is it possible to mark the AbstractModule subclass to be 'picked up' by
 Guice? I tried marking it with @Exension from comments here
 https://issues.jenkins-ci.org/browse/JENKINS-8751 but it's not being
 injected.


  --
 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/fdcc62d6-c347-4239-97cc-26560b4014ba%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-dev/fdcc62d6-c347-4239-97cc-26560b4014ba%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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/CANWgJS4hxi48cT%2BqB-23bEjNdC5ZaFK5HRP4ew_%2BsGn%3Dj%3D_DGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How does Jenkins test harness run the tests?

2015-02-19 Thread oliver gondža

Hi, see my replies inline.

On Thu, 19 Feb 2015 17:36:45 +0100, Kirill yam...@gmail.com wrote:


Hi,

I use Jenkins test harness (jenkins-test-harness) v 1.551 to test my
Jenkins plugin.
I'm wondering if there are any guidelines or best practices for writing
the tests - I haven't found anything better than
https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test.

My problem is that tests hang or get interrupted occasionally. Sometimes
the tests pass (more often), sometimes they fail with thread interruption
or they hang.

Few questions:
1) how does Jenkins JUnit rule organize tests if I run tests via Surefire
Maven plugin without any custom settings (so it's 1 JVM and threads are
reused)?
2) is Jenkins instance shared by all the tests? I have a few tests that
delete all the projects and then create the project with the same name -
MY_PROJECT on set up (annotated by @Before). However, sometimes tests  
fail

complaining that MY_PROJECT already exists - but quite rarely, probably 1
in 10 times. It shouldn't have happened if tests would have different
Jenkins instances. But if tests would share Jenkins, it would happen  
every

time, not occasionally. I'm stunned.
2) how many threads are started by Jenkins rule? Probably only one; when  
I

run the test, I am able to open the Jenkins instance in browser only if I
put Thread.sleep() in test code. Is this correct?


The jenkins is running only for the time of the test so if you want to  
open it in actual browser and look around you will probably need to pause  
the test thread. Of course you can use WebDriver to simulate browser like  
interaction in automated test.



3) how can I find out which test hangs and where?


Inspect the state of running threads using jstack.


4) why does Jenkins interrupt tests sometimes?


Sounds like it times out, see `JenkinsRule#timeout`. What is the exact  
exception?



5) is jenkins-test-harness a good thing to use for integration tests, or
there are better alternatives? Is
https://github.com/jenkinsci/acceptance-test-harness a newer and better
alternative?


I do not dare to say it replaces jenkins-test-harness. I provides more  
end-to-end approach to testing. Test and Jenkins run in different JVM,  
selenium + actual browser is used to do most of the interactions, you have  
better control over the version of Jenkins and plugins under test, etc.


--
oliver

--
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/op.xuboepz8sbfict%40localhost.localdomain.
For more options, visit https://groups.google.com/d/optout.


windows Azure slave plugin doubts

2015-02-19 Thread Bharathi Devarasu
Hi All, 

i am a newbie to jenkins, sorry about this set of questions. 

trying to use windows azure slave plugin, what is the real use of that 
plugin. 

1. Here windows azure works master or jenkins server works as master?. 
 again my question may wrong we can create windows azure as master?. 

2. many jenkins slaves are there, we can control that slaves from azure. 

3. some jenkins slaves busy so we can decide which slave have to do the 
specific job?. 

i will appreciate your help. 

thanks.
Bharathi D

-- 
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/39023c84-b6b9-4e18-9cbe-c756e1482626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Release Versions Maven plugins

2015-02-19 Thread lebrame57
Hi,
 
we have a problem with maven releases and maven version plugin. In Jenkins
we want to do releases automatically upon pressing a button. To remove
snapshot dependencies we want to use the maven versions plugin. Suppose we
have two projects A (latest release 0.0.1, latest snapshot 0.0.2-SNAPSHOT)
and project B with a dependency on ProjectA - 0.0.2-SNAPSHOT and we want to
release project B. How can we upgrade project Bs dependencies to the latest
available release version? The maven versions plugin goal use-releases
does not change the 0.0.2-SNAPSHOT dependency because there is no 0.0.2
release version of this project.


So my question is: how can we automatically remove snapshot dependencies and
replace them with the latest available release version in our scenario?

Thank you



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Release-Versions-Maven-plugins-tp4739607.html
Sent from the Jenkins dev mailing list archive at Nabble.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1424358413403-4739607.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Re: New plug-in: Uno Choice Plug-in for dynamic parameters

2015-02-19 Thread 'Bruno P. Kinoshita' via Jenkins Developers
 Finally, we have to consider the effort required to rename the plugin (Bruno, 
 WDYT? )
There will be some effort, and we can miss updating some Javadocs or Strings 
here or there. Some users already familiar with the Uno Choice name would have 
to be notified on the new name. 

But if we agree on a new name, I'd gladly fire Eclipse, rename the artifact ID 
and update the Javadocs and any other reference to the old name that I can find 
:^)
Bruno
 

  From: Ioannis Moutsatsos imoutsat...@gmail.com
 To: jenkinsci-dev@googlegroups.com 
 Sent: Thursday, February 19, 2015 12:36 AM
 Subject: Re: New plug-in: Uno Choice Plug-in for dynamic parameters
   
All,
I do have to take responsibility for naming this plugin. So here goes the 
thinking behind it.
This is a plugin for making one or more choices among options for a parameter. 
Some of the functionality was previously distributed among different plugins 
(dynamic parameter plugin, extensible choice parameter plugin, extended choice 
plugin), but none of these was able to deliver cleanly and consistently the 
four main things I wanted:   
   - Dynamic generation of the parameter options, 
   - multi-select using a variety of formats (check-boxes, radio buttons, 
lists), 
   - filtering, and 
   - dynamically refreshed options based on other parameter choices that users 
make.   


Thus I thought that naming the plugin Uno-Choice was appropriate for two 
reasons:   
   - One (Uno) control that could do it all and
   - Uno for the project behind it (BioUno.org)
In retrospect, perhaps I could have chosen a better name but having Bruno like 
it, sealed the deal! The rest is history as they say...Bruno developed it, and 
here we are finally contributing it to empower all Jenkins users.
So, if the name could confuse new users how could we improve it?
Let me try to offer a few alternatives.    
   - BioUno Dynamic Choices
   - BioUno Scripted Choices
   - Dynamic Options Parameter
   - Scripted Options Parameter
Finally, we have to consider the effort required to rename the plugin (Bruno, 
WDYT? )
Thanks all for the feedbackBest regardsIoannis

On Wednesday, February 18, 2015 at 7:31:29 PM UTC-5, Richard Bywater wrote:
Personally I'd avoid the word Uno in the plugin name completely as, according 
to the README, you can have one *or more* parameters and Uno Choice Dynamic 
Parmeter says to me that the plugin only supports one choice.

Richard.

On Thu, Feb 19, 2015 at 1:22 PM, 'Bruno P. Kinoshita' via Jenkins Developers 
jenkin...@googlegroups. com wrote:

 A suggestion: give the plugin a more descriptive name. Random Jenkinsusers 
are not going to have any idea what “Uno” is. Crediting theinstitution that 
did the work is fine, but if I were looking to makemy parameters dynamic, I 
would pick a plugin named “Dynamic Parameter”and skip right over “Uno Choice”.
Good point. I didn't choose the name, but I like it. Maybe Uno Choice Dynamic 
Parameter? Other suggestions?   BTW if this is to be usable in a secured 
installation you need tointegrate with the script-security plugin.
True! My bad for forgetting about this. I will try to integrate it in my next 
development cycle for the plug-in. I will try to check if the Dynamic Parameter 
plug-in is already integrated with the script-security plug-in. If not, I'll 
try to submit a pull request (otherwise I'll use it as reference :)
CheersBruno 
 
  From: Jesse Glick jgl...@cloudbees.com
 To: Jenkins Dev jenkin...@googlegroups. com 
 Sent: Wednesday, February 18, 2015 7:01 PM
 Subject: Re: New plug-in: Uno Choice Plug-in for dynamic parameters
   
On Tue, Feb 17, 2015 at 8:30 AM, 'Bruno P. Kinoshita' via Jenkins


Developers jenkin...@googlegroups. com wrote:
 We developed a plug-in in the BioUno project

A suggestion: give the plugin a more descriptive name. Random Jenkins
users are not going to have any idea what “Uno” is. Crediting the
institution that did the work is fine, but if I were looking to make
my parameters dynamic, I would pick a plugin named “Dynamic Parameter”
and skip right over “Uno Choice”.

BTW if this is to be usable in a secured installation you need to
integrate with the script-security 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+unsub...@ googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ 
msgid/jenkinsci-dev/ CANfRfr0gip- ui8oZggT277keKGzYDJoH_ 
WKsEHPFSWjcbw3%2BAQ%40mail. gmail.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-de...@ googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/ 
msgid/jenkinsci-dev/ 1979203684.442515. 

Re: Sectioned view section

2015-02-19 Thread Łukasz Tasz
looks like /dev/null pity :|

Łukasz Tasz



-- Forwarded message --
From: Łukasz Tasz luk...@tasz.eu
Date: 2015-02-12 16:44 GMT+01:00
Subject: Re: Sectioned view section
To: jenkinsci-dev@googlegroups.com


Hi Guys,

sorry for bothering you,
is it really a big issue to arrange releasing of this simple change?
SectionedListView is missing setter of include regex that is kind of
equivalent in Jenkins ListView,

Can I commit such a change?


with best regards
Lukasz

Łukasz Tasz


2015-02-03 10:29 GMT+01:00 Łukasz Tasz luk...@tasz.eu:
 yep extension is like adding Public in front of includeRegex field...

 with best regards
 Lukasz
 Łukasz Tasz


 2015-02-02 12:33 GMT+01:00 Daniel Beck m...@beckweb.net:
 Sorry about that, only now saw the earlier discussion. Would probably need 
 to extend Sectioned View.

 On 02.02.2015, at 12:31, Daniel Beck m...@beckweb.net wrote:

 It has public getters and setters (since 1.526). The setter code will also 
 show you why accessing the field directly would be a horrible idea.

 On 02.02.2015, at 10:56, Łukasz Tasz luk...@tasz.eu wrote:

 Hi Guys, any possiblilities to make field includeRegex public?

 regards
 Lukasz
 Łukasz Tasz


 2015-01-21 13:33 GMT+01:00 Łukasz Tasz luk...@tasz.eu:
 Im using and testing latest version with code:

 private String name;
 /**
 * Include regex string.
 */
 String includeRegex;
 /**
 * Compiled include pattern from the includeRegex string.
 */
 transient Pattern includePattern;

 includePattern I don't need to touch, since readResolve() will do
 this, all we(I) need is seter for includeRegex, or possiblility to set
 this.


 with best regards
 Lukasz
 Łukasz Tasz


 2015-01-21 12:49 GMT+01:00 Robert Sandell rsand...@cloudbees.com:
 Ok, so you'll need to look at the code for the version of the plugin you 
 are
 running.

 On Wed, Jan 21, 2015 at 11:51 AM, Łukasz Tasz luk...@tasz.eu wrote:

 Hi,

 tried, does not work, it I'm touching includeRegex, jenkins claims
 that I'm changing read-only field, if @... claims not such property.
 would be realy nice to find something which does not require own
 plugin changes.. maitenance is then a hell

 thanks in advance
 L.

 Łukasz Tasz


 2015-01-21 10:46 GMT+01:00 Robert Sandell rsand...@cloudbees.com:
 So try;

 def regexp = ^dupa123
 d1e35.@includeRegex = regexp
 d1e35.@includePattern = Pattern.compile(regexp)

 On Tue, Jan 20, 2015 at 1:41 PM, Łukasz Tasz luk...@tasz.eu wrote:

 ok went throu!

 instead of:
 d1e35.columns.add(hudson.


 model.Hudson.instance.ListViewColumn,DescriptorListViewColumngetDescriptorList(hudson.views.JobColumn.class))
 it's enough to:

 d1e35.columns.add(new hudson.views.JobColumn)

 Guys, do you know whom we can trigger to make includeRegex field
 public in sectionedView plugin?

 regards
 L.
 Łukasz Tasz


 2015-01-20 13:15 GMT+01:00 Łukasz Tasz luk...@tasz.eu:
 Hi Robert,

 this is what I tried, but then it claims that includeRegex is
 readOnly...

 SectionedViewSection has no setter, and field includeRegex is defined
 as:
 String includeRegex;
 public String includeRegex;

 is fixing issue, would be nice to have it also in official plugin.

 Now  I'm strugling with columns... descriptor creates column with
 line:

   section.columns.rebuildHetero(req, formData,


 Hudson.getInstance().ListViewColumn,DescriptorListViewColumngetDescriptorList(ListViewColumn.class),
 columns);

 I'm trying with:
 d1e35.columns = new


 DescribableListListViewColumn,DescriptorListViewColumn(Saveable.NOOP);


 d1e35.columns.add(hudson.model.Hudson.instance.ListViewColumn,DescriptorListViewColumngetDescriptorList(hudson.views.JobColumn.class))

 but getDescriptorList returns empty list... diging :)
 thanks a lot for your help!
 br
 L.
 Łukasz Tasz


 2015-01-20 13:08 GMT+01:00 Robert Sandell rsand...@cloudbees.com:
 I think you can set the fields directly

 def regexp = ^dupa123
 d1e35.includeRegex = regexp
 d1e35.includePattern = Pattern.compile(regexp)

 On Tue, Jan 20, 2015 at 9:58 AM, Łukasz Tasz luk...@tasz.eu wrote:

 Hi All!!

 I have a question, since you about view-section-plugin.

 I would like to create list-view-section in a automated way - not
 using gui, just from script console,
 so far so good:

 d1e28=new SectionedView(test section)
 d1e28.initSections()
 d1e35=new ListViewSection(STATUS, SectionedViewSection.Width.
 FULL,
 SectionedViewSection.Positioning.CENTER)

 I have sectioned view, at least one section but I don't have
 regex...
 //d1e35.setIncludeRegex(^dupa123)

 is not avaliable - since SectionedViewSection dont extend ListView,
 I'm not java expert, but as I see ListViewSection has inside
 DesctriptorImpl which extends SectionedViewSectionDescriptor which
 in
 constructor reads regex from magic stapler (maybe only for me :D
 )

 Do you have any clue how I should proceed? should I implement
 sectionedViewSectionDescriptor constructor which takes not
 stapler
 but regex? Unfortunately this plugin is only gui oriented - at
 

Re: Are Labels truly singletons?

2015-02-19 Thread Suckow, Thomas J
Done.
https://issues.jenkins-ci.org/browse/JENKINS-27034

Thank you for your responses.

-
Thomas

From: Stephen Connolly 
stephen.alan.conno...@gmail.commailto:stephen.alan.conno...@gmail.com
Reply-To: 
jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com 
jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com
Date: Wednesday, February 18, 2015 at 10:40 PM
To: jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com 
jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com
Subject: Re: Are Labels truly singletons?



On Wednesday, February 18, 2015, Suckow, Thomas J 
thomas.suc...@pnnl.govmailto:thomas.suc...@pnnl.gov wrote:
Alright, I have made a pull request resolving a number of label equality
issues.
https://github.com/jenkinsci/jenkins/pull/1569


Should I make a formal JIRA issue and cross reference them?

Yes

-
Thomas

On 2/18/15, 12:40 PM, Jesse Glick jgl...@cloudbees.comjavascript:; wrote:

On Mon, Feb 9, 2015 at 7:29 PM, Suckow, Thomas J 
thomas.suc...@pnnl.govjavascript:;
wrote:
 The question becomes, are Labels singletons? Do I make a PR changing ==
to equals?

Should use equals(), as implied by the comment on Jenkins.labels and
the existing of the equals override.

--
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.comjavascript:;.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1UCyfCmvUCBY%2ByfCN
UmXr-jKDRG1L%3DNc_PttiWnjNtMg%40mail.gmail.comhttp://40mail.gmail.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.comjavascript:;.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/D10A5580.F542%25thomas.suckow%40pnnl.gov.
For more options, visit https://groups.google.com/d/optout.


--
Sent from my phone

--
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.commailto:jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMxmYfH3XA1hO%2B%2BbMQm%3DHbFGGF%3DH0XuptCXaFS9bYW6XEw%40mail.gmail.comhttps://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMxmYfH3XA1hO%2B%2BbMQm%3DHbFGGF%3DH0XuptCXaFS9bYW6XEw%40mail.gmail.com?utm_medium=emailutm_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/D10B4D05.F5B5%25thomas.suckow%40pnnl.gov.
For more options, visit https://groups.google.com/d/optout.


Re: Release Versions Maven plugins

2015-02-19 Thread Vincent Latombe
Hi,

I'm sorry but this question relates only to Maven, you should rather ask
your questions to the maven users mailing list. The fact that you use
Jenkins to do your releases has nothing to do with your problem.

Best regards,

Vincent

2015-02-19 16:06 GMT+01:00 lebrame57 alexis.ol...@esigetel.fr:

 Hi,

 we have a problem with maven releases and maven version plugin. In Jenkins
 we want to do releases automatically upon pressing a button. To remove
 snapshot dependencies we want to use the maven versions plugin. Suppose we
 have two projects A (latest release 0.0.1, latest snapshot 0.0.2-SNAPSHOT)
 and project B with a dependency on ProjectA - 0.0.2-SNAPSHOT and we want to
 release project B. How can we upgrade project Bs dependencies to the latest
 available release version? The maven versions plugin goal use-releases
 does not change the 0.0.2-SNAPSHOT dependency because there is no 0.0.2
 release version of this project.


 So my question is: how can we automatically remove snapshot dependencies
 and
 replace them with the latest available release version in our scenario?

 Thank you



 --
 View this message in context:
 http://jenkins-ci.361315.n4.nabble.com/Release-Versions-Maven-plugins-tp4739607.html
 Sent from the Jenkins dev mailing list archive at Nabble.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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-dev/1424358413403-4739607.post%40n4.nabble.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAH-zGCgo_pvPwkhbi9Ph--bMOJJLZB4bdQn3YHkHmv8NT0W4-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How does Jenkins test harness run the tests?

2015-02-19 Thread Kirill
Hi,

I use Jenkins test harness (jenkins-test-harness) v 1.551 to test my 
Jenkins plugin.
I'm wondering if there are any guidelines or best practices for writing 
the tests - I haven't found anything better than 
https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test.

My problem is that tests hang or get interrupted occasionally. Sometimes 
the tests pass (more often), sometimes they fail with thread interruption 
or they hang.

Few questions:
1) how does Jenkins JUnit rule organize tests if I run tests via Surefire 
Maven plugin without any custom settings (so it's 1 JVM and threads are 
reused)? 
2) is Jenkins instance shared by all the tests? I have a few tests that 
delete all the projects and then create the project with the same name - 
MY_PROJECT on set up (annotated by @Before). However, sometimes tests fail 
complaining that MY_PROJECT already exists - but quite rarely, probably 1 
in 10 times. It shouldn't have happened if tests would have different 
Jenkins instances. But if tests would share Jenkins, it would happen every 
time, not occasionally. I'm stunned.
2) how many threads are started by Jenkins rule? Probably only one; when I 
run the test, I am able to open the Jenkins instance in browser only if I 
put Thread.sleep() in test code. Is this correct?
3) how can I find out which test hangs and where?
4) why does Jenkins interrupt tests sometimes?
5) is jenkins-test-harness a good thing to use for integration tests, or 
there are better alternatives? Is 
https://github.com/jenkinsci/acceptance-test-harness a newer and better 
alternative?

I volunteer for documentation update if I understand how this thing works 
under the hood :)

Regards,
Kirill.

-- 
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/c535026b-4e9d-408b-aac4-caea03562871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Groups Moderation

2015-02-19 Thread Larry Shatzer, Jr.
I've been banning them, and deleting the post in google groups when I see
them.

On Wed, Feb 18, 2015 at 4:22 PM, Richard Bywater rich...@byh2o.com wrote:

 Hi

 Mailing the dev list as more of an operations type list :)

 There seems to have been a huge increase in the number of recruiters
 spamming the lists with job offers and CVs etc.

 Just wondering who has access to ban the people (assuming that's a thing
 you can do in Google groups)?

 I'd be happy to have access to do so if everyone else is too busy :)

 Richard.

 --
 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/CAMui945b3YxFRVUz5494ktXd84mDm83PbnR%3DX%2BGAruK8NGKgPQ%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-dev/CAMui945b3YxFRVUz5494ktXd84mDm83PbnR%3DX%2BGAruK8NGKgPQ%40mail.gmail.com?utm_medium=emailutm_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/CAPr6TnTxyHzsWxD5uc-9wA58W%2BPKyR7JFJoG2Hb-F%2BB6B%2BwQUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How can I customize build details page?

2015-02-19 Thread Kirill
Hi,

I'm new to Jenkins plugin development. Looks like plugins like Git or Maven 
plugin are able to add stuff to build's details (see example attached).
As a result, there are different sections - Changes, Triggered by, 
Test result, etc. How are they added? My understanding is that they 
appear on build's details page if there's summary.jelly defined for 
extension (Action). Is this correct? That question #1.
Question #2 is - can I alter other summary sections (like Changes), 
created by other plugins used in the build?

Regards,
Kirill.

-- 
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/ee4f5aee-536e-4770-9ad0-2de6896a1f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I customize build details page?

2015-02-19 Thread Baptiste Mathus
Le 19 févr. 2015 16:06, Kirill yam...@gmail.com a écrit :

 Hi,

 I'm new to Jenkins plugin development. Looks like plugins like Git or
Maven plugin are able to add stuff to build's details (see example
attached).
 As a result, there are different sections - Changes, Triggered by,
Test result, etc. How are they added? My understanding is that they
appear on build's details page if there's summary.jelly defined for
extension (Action). Is this correct? That question #1.
 Question #2 is - can I alter other summary sections (like Changes),
created by other plugins used in the build?

That's totally dependent on those plugins. Jenkins indeed defines a bunch
of core extension points which the plugins are using. And any plugin can
also define its own set of extension point (that might be THE reason of
Jenkins' success BTW).
So to answer here you'll have to ask or check a given part to see if the
generating plugin defines an EP.


 Regards,
 Kirill.

 --
 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/ee4f5aee-536e-4770-9ad0-2de6896a1f4e%40googlegroups.com
.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins 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/CANWgJS4i-%3DHT6tYkGt_2A%3DJUBZUyUSyBJA3TOvuA7rg%2BvPYM5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: New plug-in: Uno Choice Plug-in for dynamic parameters

2015-02-19 Thread Daniel Beck

On 19.02.2015, at 16:17, 'Bruno P. Kinoshita' via Jenkins Developers 
jenkinsci-dev@googlegroups.com wrote:

 rename the artifact ID

The old one will still be available in update center, and just be a dead end. 
Not sure whether we've ever removed anything (there are a few plugins where 
this happened and it's not pretty).

-- 
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/3A1751C9-76F0-40C0-9D48-4A764ECF19AB%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: New plug-in: Uno Choice Plug-in for dynamic parameters

2015-02-19 Thread 'Bruno P. Kinoshita' via Jenkins Developers
Hi Daniel!  
The plug-in hasn't been released to the Jenkins update center yet, just to the 
update center hosted at BioUno - we do this because of some niche plug-ins 
(phylogenetics, PBS/Torque, etc).

If the plug-in proposal gets accepted here and we agree on a new name, we can 
then release it to all users under the new artifact id.
Cheers,Bruno


  From: Daniel Beck m...@beckweb.net
 To: jenkinsci-dev@googlegroups.com 
 Sent: Thursday, February 19, 2015 3:47 PM
 Subject: Re: New plug-in: Uno Choice Plug-in for dynamic parameters
   

On 19.02.2015, at 16:17, 'Bruno P. Kinoshita' via Jenkins Developers 
jenkinsci-dev@googlegroups.com wrote:

 rename the artifact ID

The old one will still be available in update center, and just be a dead end. 
Not sure whether we've ever removed anything (there are a few plugins where 
this happened and it's not pretty).

-- 
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/3A1751C9-76F0-40C0-9D48-4A764ECF19AB%40beckweb.net.


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/271565627.716651.1424369013143.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Re: New plug-in: Uno Choice Plug-in for dynamic parameters

2015-02-19 Thread Daniel Beck
Sorry, forgot about that.

On 19.02.2015, at 19:03, 'Bruno P. Kinoshita' via Jenkins Developers 
jenkinsci-dev@googlegroups.com wrote:

 Hi Daniel! 
 
 The plug-in hasn't been released to the Jenkins update center yet, just to 
 the update center hosted at BioUno - we do this because of some niche 
 plug-ins (phylogenetics, PBS/Torque, etc).
 
 If the plug-in proposal gets accepted here and we agree on a new name, we can 
 then release it to all users under the new artifact id.
 
 Cheers,
 Bruno
 
 From: Daniel Beck m...@beckweb.net
 To: jenkinsci-dev@googlegroups.com 
 Sent: Thursday, February 19, 2015 3:47 PM
 Subject: Re: New plug-in: Uno Choice Plug-in for dynamic parameters
 
 
 On 19.02.2015, at 16:17, 'Bruno P. Kinoshita' via Jenkins Developers 
 jenkinsci-dev@googlegroups.com wrote:
 
  rename the artifact ID
 
 The old one will still be available in update center, and just be a dead end. 
 Not sure whether we've ever removed anything (there are a few plugins where 
 this happened and it's not pretty).
 
 -- 
 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/3A1751C9-76F0-40C0-9D48-4A764ECF19AB%40beckweb.net.
 
 
 
 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/271565627.716651.1424369013143.JavaMail.yahoo%40mail.yahoo.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/0F31F37A-FD6C-48E2-8A68-FBA28C7D7AC6%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.