Re: Request hosting for global-variable-string-parameter

2012-11-02 Thread Patrick McKeown
Thanks nicolas.

Advantiss - I agree.  I think it would be nice if they were incorporated in 
such a way that more plugins supported using them out of the box, rather 
than some plugins providing support by 
querying Hudson.getInstance().getGlobalNodeProperties().

On Wednesday, October 31, 2012 2:11:25 AM UTC-7, AdvanTiSS wrote:

 I think, such functionality of using env vars in parameter default value 
 declaration should be available out of the box.

 On Friday, October 19, 2012 8:31:25 AM UTC+3, Patrick McKeown wrote:

 Hi,

 I'd like to host a simple plugin I wrote to substitute global node 
 properties in string parameters.

 Github - https://github.com/pmaccamp/global-variable-string-parameter

 Github ID - pmaccamp  https://github.com/pmaccamp

 Cheers,
 Patrick



Re: accessing VCS credentials from inside a Builder

2012-11-02 Thread Ivan Kalinin
Hi there!

What particularly are you trying to accomplish?
To get SVN credentials to use with the SVNKit, you can try to do as follows:

hudson.scm.SubversionSCM.DescriptorImpl descriptor = 
(hudson.scm.SubversionSCM.DescriptorImpl) 
Jenkins.getInstance().getDescriptor(hudson.scm.SubversionSCM.class);
ISVNAuthenticationProvider authenticationProvider = 
descriptor.createAuthenticationProvider(build.getProject());


And use the authenticationProvider with SVNKit stuff.

On Thursday, November 1, 2012 1:35:15 PM UTC+4, Michael Hüttermann wrote:

 Hello, 

 in a Builder, how can I access the Subversion credentials that are used to 
 access the Subversion repository for checkout of code? 


 Thank you. 


 Best regards 
 Michael 




Re: accessing VCS credentials from inside a Builder

2012-11-02 Thread domi
currently they don't, but I think these plugins should provide there 
credentials via the CredentialsProvider Interface of the credentials plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin
/Domi

On 01.11.2012, at 10:35, Michael Hüttermann mich...@huettermann.net wrote:

 Hello,
 
 in a Builder, how can I access the Subversion credentials that are used to
 access the Subversion repository for checkout of code?
 
 
 Thank you.
 
 
 Best regards
 Michael
 
 



Re: accessing VCS credentials from inside a Builder

2012-11-02 Thread Stephen Connolly
Yes that is what I would see as a plan. One reason I have not been dogmatic
and rushed a load of pull requests is that it is important to get the
credential type right...

Take ssh credentials... These come in two forms: user/pass and
user/key(/passphrase)

Now git credentials can be: ssh credentials or http user/pass credentials

Svn credentials can be: ssh or straight user/pass.

There is the issue of scoping where a credential is valid.

We need to iron out the basic credential interfaces before pushing this on
everyone... I am starting slow with ssh as it is a good initial point
(sufficiently complex but not overly so)

On Friday, 2 November 2012, domi wrote:

 currently they don't, but I think these plugins should provide there
 credentials via the CredentialsProvider Interface of the credentials plugin:
 https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin
 /Domi

 On 01.11.2012, at 10:35, Michael Hüttermann 
 mich...@huettermann.netjavascript:;
 wrote:

  Hello,
 
  in a Builder, how can I access the Subversion credentials that are used
 to
  access the Subversion repository for checkout of code?
 
 
  Thank you.
 
 
  Best regards
  Michael
 
 




Re: How to change concurrent build path separator?

2012-11-02 Thread Simon Wiest

Hi Jason,

you can change the separator - called 'combinator' in the Jenkins 
sources - by setting a Java system property when launching Jenkins, e.g.


  java -Dhudson.slaves.WorkspaceList=§ -jar jenkins.war

The combinator defaults to @ when this system property is unset. BTW, 
from looking at the sources, the combinator does not have to be a single 
character. It is defined in 
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/slaves/WorkspaceList.java#L265 
.


Note that this is an undocumented feature and subject to change without 
prior notice - so use it at your own risk ;o)


Cheers,
Simon.
--
Jason Swager wrote (01.11.2012 02:54):

When marking a job as able to run concurrently on the same node, Jenkins
will append a @X (where X is the number of the concurrent build) to the
normal workspace directory to get a new, unique workspace directory.
  Normally, this is all fine and good, but we've encountered a couple
tools that cannot handle a @ in the path name even though the operating
system can.

Is there some way to change the @ character to something else?  Say
maybe a double underscore (__) or something?
Thanks,
Jason


Re: Displaying Images with Jelly

2012-11-02 Thread Michael Pailloncy

Thanks for the tips :-)
Is there a wiki page explaining this feature ?

Michaël

Le 01/11/2012 15:14, Jesse Glick a écrit :

On 10/31/2012 04:45 AM, Michaël Pailloncy wrote:

add your images to src/main/webapp/images


Useless for dynamically generated images.

Stapler-bind a hudson.util.Graph from your action so it is accessible 
from a dynamic URL. ProjectDiskUsageAction [1] [2] is a good example.


[1] 
https://github.com/jenkinsci/disk-usage-plugin/blob/master/src/main/java/hudson/plugins/disk_usage/ProjectDiskUsageAction.java
[2] 
https://github.com/jenkinsci/disk-usage-plugin/blob/master/src/main/resources/hudson/plugins/disk_usage/DiskUsageAction/floatingBox.jelly




Re: New plugin - debian package builder

2012-11-02 Thread Marat Mavlyutov
could you fix this issue also:
https://issues.jenkins-ci.org/browse/JENKINS-15637

we need jira component assigned to this plugin

On Monday, October 22, 2012 12:58:43 PM UTC+4, nicolas de loof wrote:

 granted you access, but you just can push commits to github

 2012/10/22 Ivan Kalinin pups...@gmail.com javascript:

 Great! What do i do next? How do I grigger the job?


 On Monday, October 22, 2012 12:32:04 PM UTC+4, nicolas de loof wrote:

 forked as 
 https://github.com/jenkinsci/**debian-package-builder-pluginhttps://github.com/jenkinsci/debian-package-builder-plugin
 CI job on https://jenkins.ci.**cloudbees.com/job/plugins/job/**
 debian-package-builder-plugin/https://jenkins.ci.cloudbees.com/job/plugins/job/debian-package-builder-plugin/

 2012/10/22 Ivan Kalinin pups...@gmail.com

 Hello! I would like to contribute a plugin to the community – a debian 
 package builder tool. It's created to analyze, build and publish debian 
 packages.

 My github id is *pupssman*, the plugin is at 
 https://github.com/pupssman/**debian-package-builderhttps://github.com/pupssman/debian-package-builder

 Best,
 Ivan Kalinin.






Re: Error in compiling Jenkins for Eclipse

2012-11-02 Thread Ulli Hafner
Does it work when you call 'mvn install'?

BTW: please direct development questions to the developer list…

Ulli

Am 02.11.2012 um 12:48 schrieb makiselev kiselev.maxi...@gmail.com:

 Hi all.
 
 I tried compile Jenkins for eclipse as described in 
 https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins. But after step 
 $ mvn -DdownloadSources=true eclipse:eclipse I get next error:
 
 [INFO] 
 [INFO] 
 
 [INFO] Building Jenkins UI sample plugin 1.490-SNAPSHOT
 [INFO] 
 
 [INFO] 
 [INFO]  maven-eclipse-plugin:2.8:eclipse (default-cli) @ ui-samples-plugin 
 
 [INFO] 
 
 [INFO] Reactor Summary:
 [INFO] 
 [INFO] Jenkins main module ... SUCCESS [1.582s]
 [INFO] Jenkins CLI ... SUCCESS [0.313s]
 [INFO] Jenkins core .. SUCCESS [4.330s]
 [INFO] Maven Integration plugin .. SUCCESS [4.481s]
 [INFO] Jenkins war ... SUCCESS [1.979s]
 [INFO] Test harness for Jenkins and plugins .. SUCCESS [1.476s]
 [INFO] Jenkins UI sample plugin .. FAILURE [0.113s]
 [INFO] Jenkins plugin POM  SKIPPED
 [INFO] 
 
 [INFO] BUILD FAILURE
 [INFO] 
 
 [INFO] Total time: 16.361s
 [INFO] Finished at: Fri Nov 02 14:43:58 MSK 2012
 [INFO] Final Memory: 53M/305M
 [INFO] 
 
 [ERROR] Failed to execute goal on project ui-samples-plugin: Could not 
 resolve dependencies for project 
 org.jenkins-ci.main:ui-samples-plugin:hpi:1.490-SNAPSHOT: Failure to find 
 org.jenkins-ci.main:jenkins-test-harness:jar:1.490-SNAPSHOT in 
 http://maven.jenkins-ci.org/content/repositories/snapshots/ was cached in the 
 local repository, resolution will not be reattempted until the update 
 interval of maven.jenkins-ci.org has elapsed or updates are forced
 
 Does anybody can give correct instruction for compile it?
 



Re: Displaying Images with Jelly

2012-11-02 Thread Jesse Glick

On 11/02/2012 08:35 AM, Michael Pailloncy wrote:

Is there a wiki page explaining this feature?


Not that I know of. Get it working in your plugin and add such a page! Or better yet, make sure (*) the Javadoc for Graph includes all the details you need to know, then 
link to this Javadoc page [1] from some developer-oriented wiki page.


(*) I.e. pull request if necessary.

[1] http://javadoc.jenkins-ci.org/hudson/util/Graph.html


Re: Displaying Images with Jelly

2012-11-02 Thread LordShacks
Followed these steps and the graph is being displayed perfectly.
 
Many thanks for your help!

On Wednesday, October 31, 2012 8:45:43 AM UTC, mpapo - Michaël Pailloncy 
wrote:

 Hi,

  

 You can access to images of your plugin like this : 

 - add your images to src/main/webapp/images in your project

 - add your image in your jelly file like this 
 : img src=${rootURL}/plugin/yourPluginName/images/yourIcon.png/

  

 ${rootURL} refers to the root path of Jenkins.

  

 Michaël

 2012/10/25 LordShacks chris@gmail.com javascript:

 Hi

 I am new to Jenkins and am writing a custom plugin similar to CppCheck 
 that
 takes in XML files from a test unit and displays the results as a graph.

 I have successfully created a graph from my XML file and saved this to 
 disk
 as a .png file. I am now trying to get my ProjectAction's index.jelly file
 to display this graph image.

 I have seen from other plugins (Cppcheck) that this should be achievable 
 by
 simply using the html tag  img/ . I have tried doing this but I cannot
 seem to get the image to display.

 I am unsure what to put for the src section of the image tag. If I simply
 put  img src=graph.png/ , (as I have done for icons) nothing get's
 displayed. I have also tried to specify the directory on my system where 
 the
 file is located:  img src=/home/user/Desktop/graph.png/  but it still
 does not display the graph. Where do I have to have the graph file located
 so that the index.jelly file can find it?

 Many thanks





 --
 View this message in context: 
 http://jenkins.361315.n4.nabble.com/Displaying-Images-with-Jelly-tp4644335.html
 Sent from the Jenkins dev mailing list archive at Nabble.com.




JUC: personal information, sponsors, and cost

2012-11-02 Thread Kohsuke Kawaguchi


This morning there was a conversation in IRC about JUC SF 2012 sponsors 
spamming attendees [1] (starting [18:39:23]).


First of all, I'd like to apologize for my oversight on this. I'm taking 
this seriously, and people understand that this is an important issue. 
To our defense, we did take this seriously --- here is the actual text 
that Lisa sent to the sponsors.


  As part of your Gold sponsorship, please find the attendee list
  attached. Please treat it gently - we don't want the attendees to
  feel like the conference opts them in to a barrage of emails.[For
  example, send them an email that invites them to opt in or download
  an asset, but don't just merge them with your main database.] I think
  you'll be especially pleased with the quality/size of companies that
  attended!

Lisa is going to write to those sponsors about this once again and let 
them know that it's making them all look bad. Hopefully that'll 
propagate through the sponsors.



We also need to fix this for future conferences.

I was told that sponsors really are after the contact information and if 
we can't use that in the sponsor package, it'll make it very hard to 
have any sponsors. As far as I know, sponsors pay the lion's share of 
the cost. I've asked to give us the summary of the actual figures so 
that we can get the sense of it.


Take JUC Tokyo for example --- it was run really cheap, with the best 
volunteer participation among any other JUCs. But it still cost close to 
$10K.


So something has to give. Ideally I'm hoping that something like an 
opt-out option would be acceptable. Tyler suggested a QR code on a 
attendee badge (that scans vCard). We all want to run the conference 
cheaply, but in JUC SF historically we don't get that many volunteers to 
help, nor we've managed to find any other cheaper venue.


I think JUC is valuable for multiple reasons --- it helps with 
publicity, for one thing. It gets slides created that benefit those who 
aren't attending. It helps building the community by letting people meet 
face to face. So I'd like to keep it going, and for that it needs to be 
sustainable for everyone. We need to find the right balance.


I think we need to talk about this. I put this in for the project 
meeting agenda item [2] in Nov 14th.



[1] http://echelog.com/logs/browse/jenkins/1351810800
[2] https://wiki.jenkins-ci.org/display/JENKINS/Governance+Meeting+Agenda
--
Kohsuke Kawaguchi  http://kohsuke.org/


Re: JUC: personal information, sponsors, and cost

2012-11-02 Thread Alyssa Tong
Hi Kohsuke,

the way i've been printing attendee names is straight from Eventbrite,
using the avery labels setup.
I would need to check w/ Eventbrite to see how or if we can put QR code on
name badges since it automatically generate the names on the table.

alyssa

On Fri, Nov 2, 2012 at 2:46 PM, Kohsuke Kawaguchi k...@kohsuke.org wrote:


 BTW I've done a bit of research about QR code [1].

 One of the common practice in QR code is encoding vCard information [2].
 This is just vCard ASCII data encoded straight in QR code (try [3] and
 decode the result in [4].)

 Apps like [5] turns iPhone into QR code reader. This app for example
 supports bulk-export. So if we affix QR code into attendee stickers, a
 vendor with a booth can scan them and export them all into a CSV format.

 I currently don't know how we print attendee names into stickers, but if I
 can stitch together some QR encoder and Excel spreadsheet or something, the
 whole thing should be manageable.


 [1] 
 http://en.wikipedia.org/wiki/**QR_codehttp://en.wikipedia.org/wiki/QR_code
 [2] http://en.wikipedia.org/wiki/**VCardhttp://en.wikipedia.org/wiki/VCard
 [3] 
 http://yeblon.com/vcard-on-**business-card-with-qr-codehttp://yeblon.com/vcard-on-business-card-with-qr-code
 [4] 
 http://blog.qr4.nl/Online-QR-**Code_Decoder.aspxhttp://blog.qr4.nl/Online-QR-Code_Decoder.aspx
 [5] https://itunes.apple.com/gb/**app/qr-reader-for-iphone/**
 id368494609?mt=8https://itunes.apple.com/gb/app/qr-reader-for-iphone/id368494609?mt=8

 --
 Kohsuke Kawaguchi  http://kohsuke.org/




--


Re: JUC: personal information, sponsors, and cost

2012-11-02 Thread Lars Kruse
We use Google's online chart API for QR codes.

have a look at http://howto.praqma.net/qr-codes

Cheers

Lars Kruse





On Fri, Nov 2, 2012 at 10:46 PM, Kohsuke Kawaguchi k...@kohsuke.org wrote:


 BTW I've done a bit of research about QR code [1].

 One of the common practice in QR code is encoding vCard information [2].
 This is just vCard ASCII data encoded straight in QR code (try [3] and
 decode the result in [4].)

 Apps like [5] turns iPhone into QR code reader. This app for example
 supports bulk-export. So if we affix QR code into attendee stickers, a
 vendor with a booth can scan them and export them all into a CSV format.

 I currently don't know how we print attendee names into stickers, but if I
 can stitch together some QR encoder and Excel spreadsheet or something, the
 whole thing should be manageable.


 [1] 
 http://en.wikipedia.org/wiki/**QR_codehttp://en.wikipedia.org/wiki/QR_code
 [2] http://en.wikipedia.org/wiki/**VCardhttp://en.wikipedia.org/wiki/VCard
 [3] 
 http://yeblon.com/vcard-on-**business-card-with-qr-codehttp://yeblon.com/vcard-on-business-card-with-qr-code
 [4] 
 http://blog.qr4.nl/Online-QR-**Code_Decoder.aspxhttp://blog.qr4.nl/Online-QR-Code_Decoder.aspx
 [5] https://itunes.apple.com/gb/**app/qr-reader-for-iphone/**
 id368494609?mt=8https://itunes.apple.com/gb/app/qr-reader-for-iphone/id368494609?mt=8
 --
 Kohsuke Kawaguchi  http://kohsuke.org/



How to tell a plugin not to load older builds because of (backwards) incompatibility

2012-11-02 Thread Ognjen Bubalo
Hi,

I refactored the JaCoCo plugin and now I get exceptions like: 
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: 
No such field hudson.plugins.jacoco.JacocoBuildAction.build.

This was a bigger refactor so I don't think it should be clever to put back 
the old fields.

Is there a solution for not loading older builds?

Thanks,
Ogi