Re: Jenkins.getAuthentication()

2014-08-07 Thread David Rautureau
Hi Jesse, thanks for your answer, I tried it but is return anonymous. Looks like a bud, may I report an issue? Anyway, I will change the code to use Jenkins.getAuthentication().getName(); as it is the proper way to do it. Thanks Le mercredi 6 août 2014 20:09:01 UTC+2, Jesse Glick a écrit :

Missing getScm() method in the new Run/Job update.

2014-08-07 Thread pallen
Hi Guys, I'm trying to update the Perforce 'p4' plugin to use Run/Job and not the old AbstractBuild/AbstractProject, but can't seem to access the SCM without an ugly cast. AbstractBuild?, ? build = (AbstractBuild?, ?) run; AbstractProject?, ? project = build.getProject(); PerforceScm scm =

Re: Jenkins.getAuthentication()

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 12:36 AM, David Rautureau drautur...@gmail.com wrote: I tried it but is return anonymous. Looks like a bu[g] More likely something misconfigured in your security realm, or something odd about when this code is being called. The authentication will normally only be set

Re: Jenkins.getAuthentication()

2014-08-07 Thread David Rautureau
When submitting the form for instance? Le jeudi 7 août 2014 15:55:52 UTC+2, Jesse Glick a écrit : On Thu, Aug 7, 2014 at 12:36 AM, David Rautureau draut...@gmail.com javascript: wrote: I tried it but is return anonymous. Looks like a bu[g] More likely something misconfigured in your

Re: Missing getScm() method in the new Run/Job update.

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 6:10 AM, pallen pal...@perforce.com wrote: I'm trying to update the Perforce 'p4' plugin to use Run/Job and not the old AbstractBuild/AbstractProject Great! https://github.com/jenkinsci/workflow-plugin/blob/master/scm-step/README.md#supporting-workflow-from-an-scm-plugin

Re: Jenkins.getAuthentication()

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 7:01 AM, David Rautureau drautur...@gmail.com wrote: When submitting the form for instance? Definitely Jenkins.getAuthentication().getName() should give your user ID during form submission if you are logged in. Reporting a bug is not helpful since you have no idea yet

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Jesse Glick
On Thu, Jul 31, 2014 at 5:47 AM, addict@gmail.com wrote: 1. add removed fields and mark them as transient If you mark them transient, they will not even be deserialized. (You might expect this to only prevent them from being *serialized* but it actually does both.) So you have to keep those

Re: Jenkins.getAuthentication()

2014-08-07 Thread David Rautureau
Just tried it and I get the authenticated user! Thought I was calling the method outside the form submission but this was not the case. Sorry to have disturb you and thanks again for your help. Le jeudi 7 août 2014 16:08:57 UTC+2, Jesse Glick a écrit : On Thu, Aug 7, 2014 at 7:01 AM, David

Re: How and when to use plug-in defined job properties

2014-08-07 Thread Jesse Glick
On Mon, Aug 4, 2014 at 5:40 AM, yo...@ignissoft.com wrote: After reading some more, I think I can simplify my question. Ah, if only every message started this way! :-) I have a class that extends Cloud and overrides Cloud.canProvision and Cloud.provision. Inside my implementation of

Re: Determining the consequences of starting a job from the REST API

2014-08-07 Thread Jesse Glick
On Mon, Aug 4, 2014 at 6:51 AM, Salim Fadhley salimfadh...@gmail.com wrote: Are files handled in a different kind of way to regular parameters? Yes. Best to read the source code for FileParameterValue. -- You received this message because you are subscribed to the Google Groups Jenkins

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Stephen Connolly
On 7 August 2014 15:26, Jesse Glick jgl...@cloudbees.com wrote: On Thu, Jul 31, 2014 at 5:47 AM, addict@gmail.com wrote: 1. add removed fields and mark them as transient If you mark them transient, they will not even be deserialized. (You might expect this to only prevent them from

Re: Request to host plug-in: Flaky Tests Handler

2014-08-07 Thread Jesse Glick
On Tue, Aug 5, 2014 at 12:16 AM, Vincent Latombe vincent.lato...@gmail.com wrote: I have just created https://github.com/jenkinsci/flaky-test-handler for you Do not use this. Plugin repositories should have a name ending with ‘-plugin’. (The artifactId should _not_.) -- You received this

Re: Request to host plug-in: Flaky Tests Handler

2014-08-07 Thread Jesse Glick
On Fri, Aug 1, 2014 at 5:44 PM, Qingzhou Luo qingzhou...@google.com wrote: We recently made some contribution to Maven Surefire to add the new option -rereunFailingTestsCount. Sounds very valuable. the first part of our plugin is to integrate with this new feature from Maven Surefire. It

Re: Request to host plug-in: Flaky Tests Handler

2014-08-07 Thread Vincent Latombe
Sorry for that, I realised it after the fact but couldn't perform the rename operation. Vincent 2014-08-07 16:41 GMT+02:00 Jesse Glick jgl...@cloudbees.com: On Tue, Aug 5, 2014 at 12:16 AM, Vincent Latombe vincent.lato...@gmail.com wrote: I have just created

Re: websphere-deployer-plugin patches

2014-08-07 Thread Jesse Glick
On Tue, Aug 5, 2014 at 1:30 AM, Michael Nothhard michael.nothh...@gmail.com wrote: The dependencies are listed in the POM but the jar's aren't available in a public maven repo If the JARs are freely redistributable, then the preferred approach is to get them into Central. If they cannot go into

Re: Should we come up with a browser support matrix?

2014-08-07 Thread Jesse Glick
It would be best to try to degrade gracefully on older or less functional browsers. If the page looks ugly, fine. If some JavaScript tricks do not work, fine, so long as there is some other way to accomplish the same task. -- You received this message because you are subscribed to the Google

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 7:36 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: previously non-transient fields will be deserialized into the evolved classes transient version Not last I checked—they are skipped even though defined in the XML. -- You received this message because you

Re: Request to host plug-in: Flaky Tests Handler

2014-08-07 Thread Vincent Latombe
Thanks a lot Jesse. Vincent 2014-08-07 17:06 GMT+02:00 Jesse Glick jgl...@cloudbees.com: On Thu, Aug 7, 2014 at 7:57 AM, Vincent Latombe vincent.lato...@gmail.com wrote: Sorry for that, I realised it after the fact but couldn't perform the rename operation. OK, renamed:

Re: plugin ConsoleLogFilter class not loaded suddenly

2014-08-07 Thread sdetweil
this was a user error. the filter class did load correctly, but the log filter was incorrect. the original problem was one line of code missing which initiated the data capture. no idea what caused the lost code problem, but I must have done it as I am the only developer -- You received

SV: Lead on Youtrack Component in Jira

2014-08-07 Thread Erik Zielke
Hi, can I become the lead on the YouTrack component in Jira, my Jenkins dev ID is: erikzielke Fra: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] På vegne af Erik Zielke Sendt: 10. juli 2014 20:06 Til: jenkinsci-dev@googlegroups.com Emne: SV: Lead on Youtrack Component

Jenkins post-build publishing is always performed on Master

2014-08-07 Thread Rafael Ribeiro Rezende
Hello everyone, I'm developing a plugin that work as a post-build step which generates an Ant file at build-time, depending on the artifacts generated by the respective build steps, and execute it. This plugin extends the Recorder http://javadoc.jenkins-ci.org/hudson/tasks/Recorder.html. The

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Stephen Connolly
Sounds like a regression then On Thursday, 7 August 2014, Jesse Glick jgl...@cloudbees.com wrote: On Thu, Aug 7, 2014 at 7:36 AM, Stephen Connolly stephen.alan.conno...@gmail.com javascript:; wrote: previously non-transient fields will be deserialized into the evolved classes transient

Creating a new job type in Plugin

2014-08-07 Thread Karthik V S
Hi, I need to develop a plugin that helps me to create a new job type. Any pointers on how I can do it? I know implementing TopLevelItem should solve my purpose, but by implementing that there are a lot of methods for which I need to provide definitions, I dunno how to. Any code example or a

Redirecting new job to workspace link instead of Configure

2014-08-07 Thread Karthik V S
Hi, In my plugin, I am creating a new Job type. Here goes my requirement, After selecting my custom job type, I need the redirection on Clicking the OK button, to redirect to Workspace Link. Is that possible? Thanks. -- You received this message because you are subscribed to the Google

Re: Request to host plug-in: Flaky Tests Handler

2014-08-07 Thread 'Qingzhou Luo' via Jenkins Developers
Thank you very much, Jesse. Your suggestions are very valuable. I'm not very familiar with Maven 2/3 build and it looks like as you said, most of the features only work for freestyle build. In a Maven 2/3 build it looks like JUnit and its publisher/result archiver is embedded inside the build

Re: Jenkins post-build publishing is always performed on Master

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 10:29 AM, Rafael Ribeiro Rezende rafaelrez...@gmail.com wrote: Aren't the post-build steps expected to be executed in the same node as the build steps? All steps are run in the JVM on the master. If you want to do something on the slave, this is normally implicit in using

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 10:35 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Sounds like a regression then I think not: http://xstream.codehaus.org/faq.html#Serialization_newer_class_versions If a field is removed from the class, deserializing an old version that contains the

Re: Creating a new job type in Plugin

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 10:42 AM, Karthik V S karthik.tec...@gmail.com wrote: I know implementing TopLevelItem should solve my purpose, but by implementing that there are a lot of methods for which I need to provide definitions Well FreeStyleProject for example implements TopLevelItem, which is

Re: Redirecting new job to workspace link instead of Configure

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 11:28 AM, Karthik V S karthik.tec...@gmail.com wrote: After selecting my custom job type, I need the redirection on Clicking the OK button, to redirect to Workspace Link. Is that possible? No: https://issues.jenkins-ci.org/browse/JENKINS-18681 -- You received this

Re: New Plugin: SAML Plugin

2014-08-07 Thread Ben McCann
Hi, Just wanted to follow up on this and see if there was anything I needed to do to have this downloadable from the Jenkins plugin registry. There's no plugin currently supporting SAML 2.0, so I think this will be a very helpful addition. Thanks, Ben On Wed, Aug 6, 2014 at 1:35 PM, Ben

Re: how to convert persisted data from old plugin to new one??

2014-08-07 Thread Stephen Connolly
On Thursday, 7 August 2014, Jesse Glick jgl...@cloudbees.com wrote: On Thu, Aug 7, 2014 at 10:35 AM, Stephen Connolly stephen.alan.conno...@gmail.com javascript:; wrote: Sounds like a regression then I think not: http://xstream.codehaus.org/faq.html#Serialization_newer_class_versions

Re: Should we come up with a browser support matrix?

2014-08-07 Thread Stephen Connolly
On Thursday, 7 August 2014, Jesse Glick jgl...@cloudbees.com wrote: It would be best to try to degrade gracefully on older or less functional browsers. If the page looks ugly, fine. If some JavaScript tricks do not work, fine, so long as there is some other way to accomplish the same task.

Re: Should we come up with a browser support matrix?

2014-08-07 Thread Marky Jackson
From a tools perspective I have always found browserling to be very useful. Free and open source On Aug 7, 2014 1:36 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On Thursday, 7 August 2014, Jesse Glick jgl...@cloudbees.com wrote: It would be best to try to degrade gracefully

Re: Creating a new job type in Plugin

2014-08-07 Thread Karthik V S
Hi Jesse, I have got to know how to create a new Job Type. My Plugin is supposed to do this: 1) Create a new Job type 2) After user selects that Job Type and enters job name redirect user to a new page -- that is added to project actions by the plugin. 3) Update Job configuration based on

Re: Creating a new job type in Plugin

2014-08-07 Thread Jesse Glick
On Thu, Aug 7, 2014 at 2:17 PM, Karthik V S karthik.tec...@gmail.com wrote: 1) Create a new Job type I think this is not actually what you want to do. Creating a new job type is a serious endeavor and very few plugins should do it. 2) After user selects that Job Type and enters job name