jenkins jira - account request

2013-07-12 Thread Roberto Rizzetto
Hello, I would ask access to jenkins-jira, to submit an issue Br, Roberto Rizzetto Due to the spam problem, we need additional verification for your sign-up request. Please contact jenkinsci-dev@googlegroups.com -- You received this message because you are subscribed to the Google Groups

How to get the location of the slave.jar on a Slave

2013-07-12 Thread Stefan Wolf
Hi, in order to start a JVM with the Launcher for the ChannelProcessCommand in the remote-terminal-access Plugin I need to get the location of the slave.jar to start a new JVM using this jar. How do I do this? Which.jarFile(hudson.remoting.Launcher.class) gives me the location on the Master

Re: java.lang.NullPointerException

2013-07-12 Thread Ulli Hafner
What about setting a NPE breakpoint in your debugger? Then you will see what is causing the NPE… Am 11.07.2013 um 19:43 schrieb Zhengyuan Shen esdot...@gmail.com Hi everyone, I am implementing the function below in my Jenkins plugin. Utilities.login(uri, username, password); If I put

Re: How to get the location of the slave.jar on a Slave

2013-07-12 Thread Jesse Glick
On 07/12/2013 07:52 AM, Stefan Wolf wrote: Which.jarFile(hudson.remoting.Launcher.class) gives me the location on the Master which I cannot use on the slave. https://github.com/jenkinsci/jenkins/blob/master/maven-plugin/src/main/java/hudson/maven/AbstractMavenProcessFactory.java#L317 -- You

Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
I'm working on a rewrite of the EC2 plugin, and as part of it I'm going to leverage the SSH Slaves plugin rather than having SSH connection and management logic directly in the new plugin. To do this, I've got a class, SSHConnectionMethod, which has a field that is of type

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Jesse Glick
On 07/12/2013 09:41 AM, Kevin Fleming (BLOOMBERG/ 731 LEXIN) wrote: st:include class=hudson.plugins.sshslaves.SSHConnector page=config.jelly it=${it.connector}/ Unfortunately, when this is rendered, Jelly looks for doFillCredentialsIdItems (needed for one of the fields in SSHConnector's

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Interesting idea, but I'm not sure that will work when 'connector' is null because the object is being created by the user of the config form. I was going to do something similar in the Java code but realized I needed to get the descriptor of connector's class, not of connector itself. -

Re: jenkins jira - account request

2013-07-12 Thread Larry Shatzer, Jr.
Created. An email to your gmail should have been sent with the password. On Fri, Jul 12, 2013 at 2:01 AM, Roberto Rizzetto robriz...@gmail.comwrote: Hello, I would ask access to jenkins-jira, to submit an issue Br, Roberto Rizzetto Due to the spam problem, we need additional

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Jesse Glick
On 07/12/2013 09:53 AM, Kevin Fleming (BLOOMBERG/ 731 LEXIN) wrote: Interesting idea, but I'm not sure that will work when 'connector' is null because the object is being created by the user of the config form. Usually in this context ${descriptor} is already set by the control that lets the

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Right, this is not polymorphic, it's simple composition. I'll experiment with setting 'descriptor' directly in the Jelly code before calling st:include, and I'll also look into possibly using Groovy instead, since this will be a new plugin. Thanks! - Original Message - From:

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
OK, I've gotten closer: j:scope j:set var=descriptor value=${descriptor.SSHConnectorDescriptor}/ st:include ... / /j:scope This gets the st:include-d Jelly to refer to the proper descriptor. However, when the DataBoundConstructor for the class that has an SSHConnector field is invoked,

Re: Can Jelly/Stapler understand an 'embedded' Describable object?

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Got it. f:property is what I needed, it works beautifully inside an f:entry with just the field name specified; all the rest of the detailed are inferred as they should be, and the object is properly instantiated and persisted. As a bonus, the help links for the fields of the embedded object

Help with resources in first plugin (MatrixExecutionStrategy)

2013-07-12 Thread Jack Strohm
This is my first time writing a plugin for Jenkins. I've started by trying to just duplicate an existing one and clearly I don't understand something about resources. I've created a copy of DefaultMatrixExecutionStrategyImpl along with all of it's resources in a separate package with a new

Somewhat complex Jelly form question

2013-07-12 Thread Kevin Fleming (BLOOMBERG/ 731 LEXIN)
Continuing my development of a replacement AWS plugin... I've got a class that extends Cloud (called EC2), so it can be added and configured from the global config page (it appears in an f:hetero-list). I have another class which is Describable, that EC2 keeps a list of in a DescribableList,

Re: Somewhat complex Jelly form question

2013-07-12 Thread Stephen Connolly
You need to put ../ in the @QueryParam on the doFill... Methods On Friday, 12 July 2013, Kevin Fleming (BLOOMBERG/ 731 LEXIN) wrote: Continuing my development of a replacement AWS plugin... I've got a class that extends Cloud (called EC2), so it can be added and configured from the global

Re: java.lang.NullPointerException

2013-07-12 Thread Zhengyuan Shen
Thanks, I figured it out. It is because one of my dependency jar is missing and it caused the javax object cannot be initialized due to NullPointer problem. On Friday, July 12, 2013 5:23:33 AM UTC-7, Ullrich Hafner wrote: What about setting a NPE breakpoint in your debugger? Then you will

Re: Bundling shared native library with plugin

2013-07-12 Thread Vinod Kone
ping? -- Vinod On Wed, Jul 10, 2013 at 8:55 PM, Vinod Kone vinodk...@gmail.com wrote: Hi, I'm planning to write a jenkins plugin that needs access to a shared native library. I have 2 questions regarding this. 1) How do I bundle the native library with the plugin, so that when users

RE: Unable to create bug reporting account

2013-07-12 Thread Alberti, Johannes
Ping? From: johannes.albe...@sap.com Sent: Tuesday, July 09, 2013 1:34 PM To: jenkinsci-dev@googlegroups.com Subject: FW: Unable to create bug reporting account Hi, I tried to create an account on https://jenkins-ci.org/account/doSignup for