RE: ERROR: Could not send email as a part of the post-build

2012-10-10 Thread Alex Earl
 publishers.
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=e89a8ff1c166fd555b04cbc1c39d

--e89a8ff1c166fd555b04cbc1c39d
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

The exception is different from that issue. I can't debug an old
version, so please upgrade and see if the problem persists. If it does,
file an issue in jira with as much information as you can.

Sent from my Windows Phone
From: hitesh kumar
Sent: 10/10/2012 10:23 PM
To: jenkinsci-dev@googlegroups.com; slide.o@gmail.com
Cc: jenkinsci-us...@googlegroups.com
Subject: Re: ERROR: Could not send email as a part of the post-build
publishers.
Thanks Slide for reply.
i am using email ext-2.22
is latest   2.24.1 having fix of it???

as per https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
below raised issue already should be fixed in 2.19 version.

   - JENKINS-12047 

ERROR: Could not send email as a part of the post-build
publishers.

Please share your comment?


On Thu, Oct 11, 2012 at 2:00 PM, Slide  wrote:

> Looks like you are on an older version of email-ext.
>
> slide
>
>
> On Wed, Oct 10, 2012 at 9:59 PM, hitesh kumar  wrote:
>
>> Hi,
>> Please let me know if any one facing below issue and having
>> any solution or workaround.
>> *env:*
>> LTS jenkins 1.447.2
>> email ext-2.22
>> ubuntu 10.04
>>
>> *Job config:*
>> -matrix job
>> -Variants 1 2 3
>> -select "Trigger for each configuration" at editable email Notification.
>>
>> *ISSUE :one of variant job is not sending mail and generating below
>> issue: other variant jobs are sending mails.*
>> ERROR: Could not send email as a part of the post-build publishers.
>> javax.mail.MessagingException: IOException while sending message;
>>   nested exception is:
>> java.io.IOException
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
>> at javax.mail.Transport.send0(Transport.java:195)
>>  at javax.mail.Transport.send(Transport.java:124)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:282)
>>  at
>> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
>>  at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
>>  at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
>>  at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
>> at hudson.model.Run.run(Run.java:1448)
>>  at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>>  at hudson.model.Executor.run(Executor.java:238)
>> Caused by: java.io.IOException
>> at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
>>  at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:293)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)
>>  at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)
>> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)
>>  at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:302)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
>> ... 14 more
>>
>>
>
>
> --
> Website: http://earl-of-code.com
>

--e89a8ff1c166fd555b04cbc1c39d
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

The exception is different from that issue. I can't debug=
 an old version, so please upgrade and see if the problem persists. If it d=
oes, file an issue in jira with as much information as you can.Sent=
 from my Windows PhoneFrom: hitesh kumarSent: 10/10/2012 10:23 PMTo: jenkinsci-dev@googleg=
roups.com; slide.o@gmail.comCc: jenkinsci-users@googl=
egroups.comSubject: Re: ERROR: Could not send email as a p=
art of the post-build publishers.Thanks Slide for reply.i am using=C2=A0email=C2=A0ext-2.22=C2=A0
is latest =C2=A0=C2=A02.24.1=C2=A0having fix of it???

as per=C2=A0https://wiki.jenkins-ci.org/display/JENKIN=
S/Email-ext+plugin
below raised issue already should be fixed in 2.19 version.

https://issues.jenkins-ci.org/browse/JENKINS-12047"; t=
arget=3D"_blank" style=3D"color:rgb(210,73,57)">JENKINS-12047
https://iss=
ues.jenkins-ci.org/browse/JENKINS-12047" target=3D"_blank" styl

Re: ERROR: Could not send email as a part of the post-build publishers.

2012-10-10 Thread hitesh kumar
Thanks Slide for reply.
i am using email ext-2.22
is latest   2.24.1 having fix of it???

as per https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
below raised issue already should be fixed in 2.19 version.

   - JENKINS-12047 

ERROR: Could not send email as a part of the post-build
publishers.

Please share your comment?


On Thu, Oct 11, 2012 at 2:00 PM, Slide  wrote:

> Looks like you are on an older version of email-ext.
>
> slide
>
>
> On Wed, Oct 10, 2012 at 9:59 PM, hitesh kumar  wrote:
>
>> Hi,
>> Please let me know if any one facing below issue and having
>> any solution or workaround.
>> *env:*
>> LTS jenkins 1.447.2
>> email ext-2.22
>> ubuntu 10.04
>>
>> *Job config:*
>> -matrix job
>> -Variants 1 2 3
>> -select "Trigger for each configuration" at editable email Notification.
>>
>> *ISSUE :one of variant job is not sending mail and generating below
>> issue: other variant jobs are sending mails.*
>> ERROR: Could not send email as a part of the post-build publishers.
>> javax.mail.MessagingException: IOException while sending message;
>>   nested exception is:
>> java.io.IOException
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
>> at javax.mail.Transport.send0(Transport.java:195)
>>  at javax.mail.Transport.send(Transport.java:124)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:282)
>>  at
>> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
>>  at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
>>  at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
>>  at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
>> at hudson.model.Run.run(Run.java:1448)
>>  at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>>  at hudson.model.Executor.run(Executor.java:238)
>> Caused by: java.io.IOException
>> at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
>>  at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:293)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)
>>  at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)
>> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)
>>  at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:302)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
>> ... 14 more
>>
>>
>
>
> --
> Website: http://earl-of-code.com
>


Re: ERROR: Could not send email as a part of the post-build publishers.

2012-10-10 Thread hitesh kumar
Thanks Slide for reply.
i am using email ext-2.22
is latest   2.24.1 having fix of it???

as per https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
below raised issue already should be fixed in 2.19 version.

   - JENKINS-12047 

ERROR: Could not send email as a part of the post-build
publishers.

Please share your comment?


On Thu, Oct 11, 2012 at 2:00 PM, Slide  wrote:

> Looks like you are on an older version of email-ext.
>
> slide
>
>
> On Wed, Oct 10, 2012 at 9:59 PM, hitesh kumar  wrote:
>
>> Hi,
>> Please let me know if any one facing below issue and having
>> any solution or workaround.
>> *env:*
>> LTS jenkins 1.447.2
>> email ext-2.22
>> ubuntu 10.04
>>
>> *Job config:*
>> -matrix job
>> -Variants 1 2 3
>> -select "Trigger for each configuration" at editable email Notification.
>>
>> *ISSUE :one of variant job is not sending mail and generating below
>> issue: other variant jobs are sending mails.*
>> ERROR: Could not send email as a part of the post-build publishers.
>> javax.mail.MessagingException: IOException while sending message;
>>   nested exception is:
>> java.io.IOException
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
>> at javax.mail.Transport.send0(Transport.java:195)
>>  at javax.mail.Transport.send(Transport.java:124)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:282)
>>  at
>> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
>> at
>> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
>>  at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
>>  at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
>> at
>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
>>  at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
>> at hudson.model.Run.run(Run.java:1448)
>>  at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
>> at hudson.model.ResourceController.execute(ResourceController.java:88)
>>  at hudson.model.Executor.run(Executor.java:238)
>> Caused by: java.io.IOException
>> at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
>>  at
>> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:293)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)
>>  at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)
>> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)
>>  at
>> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
>> at javax.activation.DataHandler.writeTo(DataHandler.java:302)
>>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
>> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
>>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
>> ... 14 more
>>
>>
>
>
> --
> Website: http://earl-of-code.com
>


Re: SCM polling with parametrized build

2012-10-10 Thread Pekka Nikander

>
> i need to use SCM polling option in hudson configuration. but, my 
> job/build is parametrized build 
> when scm polls the changes from version control system , it does not take 
> any parameters defined in the job configuration when the build fires
> how to pass all these parameters when SCM poling option is enabled??


Based on my rather casual study on the interaction between SCM plugins and 
polling, it looks to me that when polling, Jenkins does not consider 
parametrized builds.  That is, in SCM.java the poll() and 
compareRemoteRevisionWith() methods take a project, not a build, as an 
input object.   In practical terms, the Jenkins polling mechanism is not 
considering whether the project should be built with certain parameters, 
but whether Jenkins should build the project at all, "independent" of the 
parameter values.  I guess that most SCM plugins don't even consider 
parameters.

More generally, in order to make polling and parametrized builds to really 
work together, it looks to me that there should be a more generic framework 
that would allow polling to be defined in a matrix build in such a way that 
the build would be separately considered with each parameter set defined in 
the matrix build.  And, of course, this should work through the 
parametrized build trigger plugin, allowing polling to be defined in the 
matrix build and the parameters to be used in an SCM plugin defined in a 
triggered parametrized project.  Looks like a rather big change to me, but 
then I don't know the gory details well enough.

--Pekka Nikander



Re: Generic SCM plugin test cases

2012-10-10 Thread Pekka Nikander

>
> > the source code where the poll() or calcRevisionsFromBuild() and 
> compareRemoteRevisionWith() are called from. 
>
> Find Usages from an IDE would give you this kind of information. At that 
> point you will probably know more than me. 
>

Thanks Jesse, but call me old school or simply lazy, but I don't use an 
IDE, I still use emacs & command line.  (I wrote my first lines of code 
back in 1980.  I hand't even glimpsed on Jenkins plugin or core internals 
before this week.)

However, I did some digging into the source, mainly AbstractProject.java, 
and I think I have discovered a rather fundamental problem with polling 
implementation vs. parametrized builds.  In a nutshell, the current way 
polling is implemented is not compatible with parametrized SCM plugins, and 
more generally it may also result in builds not being made when they 
should, depending on how you user parameters in the project build scripts. 
 That is, if you have a parametrized project that is called from a build 
matrix through the parametrized trigger plugin, and if you do polling, the 
results are not well defined, at least as far as I can see. Fixing that 
seems to require a rather major rehaul of the polling mechanism, and I'm 
not inclined to do that.  (I probably shouldn't, given how little I know 
about Jenkins internals.  I'd be quite likely to screw things up.)

Anyway, for now, my plan is to simply implement a choice into the plugin: 
Either enable parameters, or polling.  If parameters are enabled, 
attempting to poll will result in some kind of an error, and if polling is 
enabled, attempting to use parameters in the plugin will result in another 
error.  Ugly, but saves me from being exposed to the gory details.

--Pekka



Re: ERROR: Could not send email as a part of the post-build publishers.

2012-10-10 Thread Slide
Looks like you are on an older version of email-ext.

slide

On Wed, Oct 10, 2012 at 9:59 PM, hitesh kumar  wrote:

> Hi,
> Please let me know if any one facing below issue and having
> any solution or workaround.
> *env:*
> LTS jenkins 1.447.2
> email ext-2.22
> ubuntu 10.04
>
> *Job config:*
> -matrix job
> -Variants 1 2 3
> -select "Trigger for each configuration" at editable email Notification.
>
> *ISSUE :one of variant job is not sending mail and generating below
> issue: other variant jobs are sending mails.*
> ERROR: Could not send email as a part of the post-build publishers.
> javax.mail.MessagingException: IOException while sending message;
>   nested exception is:
> java.io.IOException
>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
> at javax.mail.Transport.send0(Transport.java:195)
>  at javax.mail.Transport.send(Transport.java:124)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:282)
>  at
> hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
> at
> hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
>  at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
> at
> hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
>  at
> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
> at
> hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
>  at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
> at hudson.model.Run.run(Run.java:1448)
>  at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
>  at hudson.model.Executor.run(Executor.java:238)
> Caused by: java.io.IOException
> at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
>  at
> hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
> at javax.activation.DataHandler.writeTo(DataHandler.java:293)
>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
> at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)
>  at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)
> at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)
>  at
> javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
> at javax.activation.DataHandler.writeTo(DataHandler.java:302)
>  at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
> at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
>  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
> ... 14 more
>
>


-- 
Website: http://earl-of-code.com


ERROR: Could not send email as a part of the post-build publishers.

2012-10-10 Thread hitesh kumar
Hi,
Please let me know if any one facing below issue and having any solution or
workaround.
*env:*
LTS jenkins 1.447.2
email ext-2.22
ubuntu 10.04

*Job config:*
-matrix job
-Variants 1 2 3
-select "Trigger for each configuration" at editable email Notification.

*ISSUE :one of variant job is not sending mail and generating below issue:
other variant jobs are sending mails.*
ERROR: Could not send email as a part of the post-build publishers.
javax.mail.MessagingException: IOException while sending message;
  nested exception is:
java.io.IOException
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
at javax.mail.Transport.send0(Transport.java:195)
at javax.mail.Transport.send(Transport.java:124)
at
hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:282)
at
hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:265)
at
hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:225)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:697)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:672)
at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:650)
at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171)
at hudson.model.Run.run(Run.java:1448)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: java.io.IOException
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:175)
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:151)
at javax.activation.DataHandler.writeTo(DataHandler.java:293)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)
at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
at javax.activation.DataHandler.writeTo(DataHandler.java:302)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
... 14 more


Re: Audit2DB Plugin

2012-10-10 Thread Ben Castellucci
Ima hijack this real quick just to throw in a few comments unrelated to
what is actually being requested...

First this looks like a really cool plugin. Nice job! I want to use this
but first...

It may be advantageous to offer a configuration option of using a
datasource via JNDI defined at the container level. Even Jenkins' built-in
Winstone servlet container suports JDBC connection pooling with JNDI
lookup. Also, many Jenkins deployments reside in containers such as
Weblogic that offer strong credential encryption. The advantages to using a
connection pool versus building up and tearing down a connection each time
are obvious.

Also, it would be extremely flexible if the schema offered a build_stats
table that was 'verticle' instead of 'horizontal' meaning there are just
generic 'id',  'name' and 'value' colums for the stats. Each row could be a
different stat, it's id tied to a row in the build_details table. This
could allow dynamic stats, configurable either at the Jenkins level or the
job level (think checkbox list of availabe stats to audit). The available
stats could be added to over time and existing schemas would still be valid.

And... it may be more helpful if the build_stats table had actual job name,
build # and build id instead of build number as the name.

I may be interested in contributing but time is tight...

Let me know any thoughts.

Thanks!
Ben
On Oct 10, 2012 7:44 AM, "Marco Scata"  wrote:

> Hi all.
>
> I'd like to have my new plugin on Jenkins org if possible.
> Current source is on GitHub
> https://github.com/mscata/jenkins-audit2db-plugin.git
> My GitHub ID is mscata
>
> Can I also use the Jenkins CI infrastructure? At the moment it's using
> CloudBees.
>
> I also started writing a wiki page at
> https://wiki.jenkins-ci.org/display/JENKINS/Audit+To+Database+Plugin
> Hope that's ok.
>
> Marco
>


Re: Request for Jenkins CIA Program in Mellanox

2012-10-10 Thread R. Tyler Croy

On Tue, 09 Oct 2012, Vlad Aginsky wrote:

> 
> 
> Hello Jenkins Developers!
> 
> I would like to become Jenkins CI Ambassador.
> 
> In Mellanox I am promoting  a successful Jenkins pilot project, involving 1 
> team, ~10 users.The whole company is around ~1000 people, multiple teams 
> and projects. At  the moment most of them need CI product, but use other 
> products. I would like to spread the word, and CIA Program seems to fit 
> nicely here.


Is this a talk that's open to the public, or is this an internal talk?


- R. Tyler Croy
--
Code: https://github.com/rtyler
 Chatter: https://twitter.com/agentdero


signature.asc
Description: Digital signature


Re: Does a plugin to handle this exist?

2012-10-10 Thread Mark Waite
If you can detect when the tests complete on the embedded system, you might be 
able to copy the XML test results back to Jenkins, transform the XML to JUnit 
format, and let Jenkins present the results with its standard JUnit 
presentation.  There are a number of systems which write JUnit compatible 
output, so you might be able to leverage one of those to assist with the 
transformation from your XML format to JUnit format.

If you "own" the code that writes the test results in XML, you could also 
consider writing it directly as JUnit format, thus using a defacto standard for 
test result output and avoiding translation of the XML to JUnit format.

Mark Waite




>
> From: tiburblium 
>To: jenkinsci-dev@googlegroups.com 
>Sent: Wednesday, October 10, 2012 2:08 PM
>Subject: Does a plugin to handle this exist?
> 
>
>I have integration tests implemented in JavaScript which run automatically on 
>an embedded system post build. Currently Jenkins kicks off the image build, 
>deploys it to the device, and ssh into the device to validate basic 
>success/fail. The device has an embedded browser which has API hooks I need to 
>test, I have created a bunch of tests implemented in JavaScript that run 
>within the browser. Currently the tests just produces output displaying the 
>results of the tests in XML. I'd like to tie the results of the tests back 
>into Jenkins if possible and wondering what the easiest way of going about 
>this would be. So far the options I have thought of thus far are:
>   * Use JavaScript to make HTTP requests to the Jenkins server, sending a 
> pass/fail in the request. Is there an easy way to listen for these requests 
> with a Jenkins plugin?
>   * Produce an XML page displaying the test results, Jenkins scrapes and 
> parses the XML for the results
>Any other thoughts? Any plugins I could leverage for this? The challenge here 
>is that my tests run on the device within the embedded browser (JavaScript, 
>HTML4 domapi)
>
>
>Thanks for any ideas
>
>

Re: Generic SCM plugin test cases

2012-10-10 Thread Jesse Glick

On 10/10/2012 02:48 PM, Pekka Nikander wrote:

Under what circumstances should compareRRW return INSIGNIFICANT vs. SIGNIFICANT?


Generally SIGNIFICANT means that there were changes in sources and you want to do a new build as a result, whereas INSIGNIFICANT meant that there were changes but they 
should have no effect on a build and should not trigger a new build—for example, changes in svn:ignore/.gitignore/.hgignore, or in files/modules that the user explicitly 
indicated are to be ignored.



that doesn't help me to understand what are the supposed polling semantics


Probably following code of an existing SCM implementation would help clarify 
things generally, though perhaps not in your case which seems rather 
specialized.


the source code where the poll() or calcRevisionsFromBuild() and 
compareRemoteRevisionWith() are called from.


Find Usages from an IDE would give you this kind of information. At that point 
you will probably know more than me.


Does a plugin to handle this exist?

2012-10-10 Thread tiburblium


I have integration tests implemented in JavaScript which run automatically 
on an embedded system post build. Currently Jenkins kicks off the image 
build, deploys it to the device, and ssh into the device to validate basic 
success/fail. The device has an embedded browser which has API hooks I need 
to test, I have created a bunch of tests implemented in JavaScript that run 
within the browser. Currently the tests just produces output displaying the 
results of the tests in XML. I'd like to tie the results of the tests back 
into Jenkins if possible and wondering what the easiest way of going about 
this would be. So far the options I have thought of thus far are:

   - 
   
   Use JavaScript to make HTTP requests to the Jenkins server, sending a 
   pass/fail in the request. Is there an easy way to listen for these requests 
   with a Jenkins plugin?
   - 
   
   Produce an XML page displaying the test results, Jenkins scrapes and 
   parses the XML for the results
   
Any other thoughts? Any plugins I could leverage for this? The challenge 
here is that my tests run on the device within the embedded browser 
(JavaScript, HTML4 domapi)


Thanks for any ideas


Re: Generic SCM plugin test cases

2012-10-10 Thread Pekka Nikander

>
> > I don't know where to look at within the Jenkins source code 
>>
>> SCM.java itself, and implementations in various SCM plugins. 
>>
>
> Thanks, I guess I need to go there.
>

Well, I now read SCM.java source code, and it doesn't help me much. 
 Basically, in SCM.java, the two method are only called from poll(), which 
is then called from outside of the class.  So, that doesn't help me to 
understand what are the supposed polling semantics, and under what 
conditions Jenkins does such polling, and why.

So, I would appreciate a pointer to the source code where the poll() or 
calcRevisionsFromBuild() and compareRemoteRevisionWith() are called from.

--Pekka Nikander



Re: Generic SCM plugin test cases

2012-10-10 Thread Pekka Nikander
On Wednesday, 10 October 2012 15:57:24 UTC+3, Jesse Glick wrote:
>
> On 10/10/2012 03:56 AM, Pekka Nikander wrote: 
> > logic between calcRevisionsFromBuild and compareRemoteRevisionWith. 
>  However, the exact 
> > relationship how they are supposed to work together does not seem to be 
> that well documented 
>
> The Javadoc seems reasonably complete to me; anything specific missing? 
>

Maybe I'm asking for too much here (and should delve myself to the source), 
but reading the JavaDoc several times leaves me wondering how the two 
methods are really meant to work together.  Sure, I do understand that 
calcRFB is supposed to capture the revision state into an SCMRevisionState 
object, but what exactly needs to be captured there? Under what 
circumstances should compareRRW return INSIGNIFICANT vs. SIGNIFICANT?  

In a word, directly coming to this API through the plugin source code 
without any of the background does not lead me, even when going through the 
various other classes involved, into understanding what these APIs are 
really used for, i.e. what is the underlying polling mechanism that needs 
the information whether the repository has changed or not. Having a pointer 
to the right document / direction would be very helpful here; then, when I 
found the relevant wiki page on "Polling for changes", that is not really 
sufficient, and it also seems to be partially wrong.  

Anyway, in my particular case, what I am trying to do (and which 
more-or-less works already) is to enable using the Android repo tool with 
different configurations within a single project.  That is, I want to allow 
a Jenkins project to be parametrized so that the project can be used to 
build slightly different variants of Android.  I am then calling that 
project from a matrix project, using the parametrized trigger plugin, 
causing Jenkins to build the various variants of Android.  The way I have 
implemented that is to allow the repo SCM plugin to expand parameters that 
then determine what are the exact arguments the Android repo tool gets. 
Hence, in practise, depending on the parameters received from the 
parametrized trigger plugin, the repo plugin causes the Android repo tool 
to check out one or another branch, bug only for a few git repositories, 
keeping the 100+ other git repositories in the Android build identical. 
 For that I apparently need to record the EnvVars into the SCMRevisionState 
at calcRFB so that compareRRW is able to get the parameters, as it doesn't 
get any build object, only a project.

But to me this is somewhat weird, as I don't understand what Jenkins does 
with the compareRRW result.  In particular, is there any guarantee that if 
I return NONE or INSIGNIFICANT that the build Jenkins was considering would 
be really build that would use an equal EnvVars than that was recorded in 
the calcRFB or the previous computeRRW call?  What if it is considering 
another build with a different set of EnvVars, with the result that with 
those parameters repo would have changed the repo state?
 

> > I don't know where to look at within the Jenkins source code 
>
> SCM.java itself, and implementations in various SCM plugins. 
>

Thanks, I guess I need to go there.
 

> > if there are generic tests for SCM plugins 
>
> Not that I know of. That would be hard since a particular SCM plugin’s 
> tests typically actually make or simulate SCM-specific changes in some test 
> repository and then monitor polling, changelog computation, checkouts, 
> updates, and any other interesting operations. 
>

Any SCM plugin having any good examples of those?  Right now the repo 
plugin has only very simple test cases, clearly not covering even a 
fraction of what really should be tested.

--Pekka
 


Re: access for violations-plugin

2012-10-10 Thread Stephen Connolly
Peter if you are still stuck give me a note and we can do a book swap,
coffee, and fix your maven ;-)

On Wednesday, 10 October 2012, Peter Reilly wrote:

> Hi all,
>
> My yearly attempt to update the violations plugin has come.
>
> I have updated my github account and checked my jenkins account.
>
> I can pull and push to the github repository and can build the plugin
> (after switching back to jdk6).
>
> However, I am unable to release using:
>  mvn release:prepare release:perform
>  and
>  mvn release:prepare release:perform -Dusername=peterkittreilly
> -Dpassword=
>
>
> I get
>
> Failed to deploy artifacts: Could not transfer artifact
> org.jenkins-ci.plugins:violations:hpi:0.7.12 from/to
> maven.jenkins-ci.org
> (http://maven.jenkins-ci.org:8081/content/repositories/releases):
> Failed to transfer file:
>
> http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/violations/0.7.12/violations-0.7.12.hpi
> .
> Return code is: 401, ReasonPhrase:Unauthorized
>
>
> Could someone with good karma have a look please?
>
> Peter
>


javadoc api jenkins versions

2012-10-10 Thread flaviu


Hi guys,

Can anybody tell me how can I get to an older java doc api for Jenkins than 
1.485 ? I want to check some backward compatibility issue that concerns me 
and just wondering. Could I get the api doc generated on my computer from 
the Jenkins git hub somehow ?

http://javadoc.jenkins-ci.org/overview-summary.html points to 1.485

Thanks,

Flaviu


Re: access for violations-plugin

2012-10-10 Thread Baptiste Mathus
Hi,
Having gone through our plugin release recently, I would advise the
following:

* use ssh (I tried releasing using https many times without much luck)
* update your confluence and "aligned" JIRA account to use the same id and
password as on github)
* register if not done yet your ssh pub key on both github and
jenkins-ci.org account.

Then you should be able to release without specifying any user or passwd
parameter.

Note that I'm not pretending https and having non aligned account doesn't
work. It's just simpler to use the mainstream recommended configuration.
And it actually worked fine for me.

Hth.
Cheers
Le 10 oct. 2012 17:09, "Peter Reilly"  a
écrit :

> Hi all,
>
> My yearly attempt to update the violations plugin has come.
>
> I have updated my github account and checked my jenkins account.
>
> I can pull and push to the github repository and can build the plugin
> (after switching back to jdk6).
>
> However, I am unable to release using:
>  mvn release:prepare release:perform
>  and
>  mvn release:prepare release:perform -Dusername=peterkittreilly
> -Dpassword=
>
>
> I get
>
> Failed to deploy artifacts: Could not transfer artifact
> org.jenkins-ci.plugins:violations:hpi:0.7.12 from/to
> maven.jenkins-ci.org
> (http://maven.jenkins-ci.org:8081/content/repositories/releases):
> Failed to transfer file:
>
> http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/violations/0.7.12/violations-0.7.12.hpi
> .
> Return code is: 401, ReasonPhrase:Unauthorized
>
>
> Could someone with good karma have a look please?
>
> Peter
>


Re: Request for Jenkins CIA Program in Mellanox

2012-10-10 Thread Vlad Aginsky
Hello, anybody? 

On Tuesday, October 9, 2012 10:13:09 AM UTC+2, Vlad Aginsky wrote:
>
> Hello Jenkins Developers!
>
> I would like to become Jenkins CI Ambassador.
>
> In Mellanox I am promoting  a successful Jenkins pilot project, involving 
> 1 team, ~10 users.The whole company is around ~1000 people, multiple teams 
> and projects. At  the moment most of them need CI product, but use other 
> products. I would like to spread the word, and CIA Program seems to fit 
> nicely here.
>
> Here are some details:
>
> ·*The presentation will take place in Mellanox Office in 
> Yokneam, Israel, in ~ 1 month.
>
> ·*10-15 people are expected to come, SW team leaders, 
> automation developers.
>
> Please let me know what are next steps.
>
>  
>
> *Vlad Aginsky*
>
> *Architecture and Design Validation Engineer*
>
> www.mellanox.com
>
> *Tel: +972 7 47236524*
>
> *Cell: +972 5 06959463*
>


access for violations-plugin

2012-10-10 Thread Peter Reilly
Hi all,

My yearly attempt to update the violations plugin has come.

I have updated my github account and checked my jenkins account.

I can pull and push to the github repository and can build the plugin
(after switching back to jdk6).

However, I am unable to release using:
 mvn release:prepare release:perform
 and
 mvn release:prepare release:perform -Dusername=peterkittreilly
-Dpassword=


I get

Failed to deploy artifacts: Could not transfer artifact
org.jenkins-ci.plugins:violations:hpi:0.7.12 from/to
maven.jenkins-ci.org
(http://maven.jenkins-ci.org:8081/content/repositories/releases):
Failed to transfer file:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/violations/0.7.12/violations-0.7.12.hpi.
Return code is: 401, ReasonPhrase:Unauthorized


Could someone with good karma have a look please?

Peter


Re: An extra element in the HTML plugin cause js exception

2012-10-10 Thread Jesse Glick

On 10/10/2012 01:26 AM, Uri Scheiner wrote:

I had an 'Advanced' element () under a separated f:section. […] You 
need to be very careful with the tags you're using


There may be some way to have the taglib detect inappropriate nesting and 
report a helpful error; pull requests welcome.


Re: Generic SCM plugin test cases

2012-10-10 Thread Jesse Glick

On 10/10/2012 03:56 AM, Pekka Nikander wrote:

logic between calcRevisionsFromBuild and compareRemoteRevisionWith.  However, 
the exact
relationship how they are supposed to work together does not seem to be that 
well documented


The Javadoc seems reasonably complete to me; anything specific missing?


I don't know where to look at within the Jenkins source code


SCM.java itself, and implementations in various SCM plugins.


if there are generic tests for SCM plugins


Not that I know of. That would be hard since a particular SCM plugin’s tests typically actually make or simulate SCM-specific changes in some test repository and then 
monitor polling, changelog computation, checkouts, updates, and any other interesting operations.


Re: Jenkins security setup and plugin responsibility

2012-10-10 Thread Jesse Glick

On 10/10/2012 04:33 AM, Bue Petersen wrote:

Instead of a new security permission


There is already AbstractProject.WORKSPACE for this purpose.


check if there is workspace access for the user


This is not possible in general since a Jenkins user need have no relationship to the OS-specific access control scheme used on the master or slave node hosting the 
workspace.


Audit2DB Plugin

2012-10-10 Thread Marco Scata
Hi all.

I'd like to have my new plugin on Jenkins org if possible.
Current source is on GitHub 
https://github.com/mscata/jenkins-audit2db-plugin.git
My GitHub ID is mscata

Can I also use the Jenkins CI infrastructure? At the moment it's using 
CloudBees.

I also started writing a wiki page at 
https://wiki.jenkins-ci.org/display/JENKINS/Audit+To+Database+Plugin
Hope that's ok.

Marco


Re: URI of "all.git" repository?

2012-10-10 Thread Simon Wiest

Maybe this machine (cabbage.jenkins-ci.org) is currently down?
Anybody out there who knows something about this?

Cheers,
Simon.
--
nicolas de loof (06.10.2012 17:15):

I tried to clone but this failed :

Cloning into all...
error: Failed connect to git.jenkins-ci.org:80; Operation timed out
while accessing http://git.jenkins-ci.org/all.git/info/refs
fatal: HTTP request failed

any thought ?

2012/10/5 Jesse Glick :

On 10/05/2012 04:44 PM, Max Spring wrote:


What's the URI of the "all.git" Git repository containing all plugins



http://git.jenkins-ci.org/all.git


Re: Jenkins security setup and plugin responsibility

2012-10-10 Thread Bue Petersen
Hi

Actually I just discussed a new idea today with my colleagues.

Instead of a new security permission, we think it will be better to
re-use the workspace permission access?
Having access to the workspace also gives access to the source any
way, so this could be reused.
Each plugin then need to check if there is workspace access for the
user, before enabling browse of source code through their plugin.

Could that be a solution?

Best regards,
Bue Petersen



On Sat, Oct 6, 2012 at 2:44 PM, Bue Petersen  wrote:
> Hi
>
> I think that is an excellent suggestion. Source code browsing probably
> is of general interesting, so having it as a permission of it own
> would be a good idea.
> It would also bring kind of a guideline or standard way, to implement
> if a plugin shows source code or not.
>
> Who can create the change to the core? Should we just crate an issue
> and make the change and a pull request or do we need to discuss
> further about the change or design?
>
> Thanks!
> Greatings,
> Bue
>
>
> On Fri, Oct 5, 2012 at 4:52 PM, Sandell, Robert
>  wrote:
>> In short it is up to each plugin to determine what or if it should be 
>> secured, define its own permissions or use existing etc.
>>
>> But something like displaying source code is something that several plugins 
>> do.
>> I suggest we introduce an overall "Source code read" permission in core and 
>> then kindly ask all plugins who displays source code reports to use it.
>>
>> WDYT?
>>
>>
>> Robert Sandell
>> Software Tools Engineer - Tools and Integration
>> Sony Mobile Communications
>>
>>> -Original Message-
>>> From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-
>>> d...@googlegroups.com] On Behalf Of Bue Petersen
>>> Sent: den 30 september 2012 15:11
>>> To: jenkinsci-dev@googlegroups.com
>>> Subject: Jenkins security setup and plugin responsibility
>>>
>>> Hi,
>>>
>>> is every plugin reponsible for it own choices of security setup? I mean,
>>> does the plugin developers decide who they implement set different
>>> security roles regarding what parts of their footprint on jobs they
>>> show for eg. logged-in users with read permissions overall?
>>>
>>> I'm asking because I'm not able to find the right setup for security on
>>> my Jenkins installation so that logged-in users can do everything, but
>>> anonymous users can only read everything except the source code.
>>> The source code part is what troubles me, as it seems different how the
>>> plugin handles this. There is a difference between the task scanner
>>> plugin, that does not allow to browse down to the source code to see
>>> the warnings, compared to the cobertura plugin that always allows to
>>> see the source code with coverage hits (red/green lines).
>>>
>>> I have tried the following security settings:
>>>
>>> Anonymous, overall = read, jobs = read + discover Anonymous, overall =
>>> read, jobs = read Access to source code for both task scanner and
>>> cobertura, which makes sense in the way that overall gives access to
>>> see jobs and jobs read gives access to all the jobs stuff.
>>>
>>> If I remove overall = read, the anonymous user can not see the jobs.
>>>
>>> So my question really is, if it is up to the plugin to decide how to
>>> use security?
>>> Further, if it is not possible to find a combination that gives
>>> anonymous users access to discover jobs, and read the jobspage and
>>> detail, but not browse the source code.
>>>
>>> We also do plugin development, so if you have information or guidelines
>>> to plugin developers about how to propagate and handle security in the
>>> different part of the jenkins it would be appreciated.
>>>
>>> Thanks, and best regards
>>> Bue Petersen
>
>
>
> --
> Med venlig hilsen
> Bue Petersen
> Praqma A/S
> Mobile: +45 29 72 64 12



-- 
Med venlig hilsen
Bue Petersen
Praqma A/S
Mobile: +45 29 72 64 12


Re: Add a new installer crawler for sonar runner

2012-10-10 Thread Julien HENRY
Pull request sent. Please note that I'm not a groovy expert so I mostly 
duplicate what was done in another crawler.

Thanks


- Mail original -
> De : Kohsuke Kawaguchi 
> À : jenkinsci-dev@googlegroups.com
> Cc : Julien HENRY 
> Envoyé le : Mercredi 10 octobre 2012 0h16
> Objet : Re: Add a new installer crawler for sonar runner
> 
> 
> Go for it, and send in a pull request to 
> https://github.com/jenkinsci/backend-crawler
> 
> On 10/09/2012 10:26 AM, Julien HENRY wrote:
>>  Hi,
>> 
>>  I would like to provide sonar-runner as an installable tool in Jenkins. It 
> seems we need to produce a JSON file hosted in Jenkins update site. Do you 
> think 
> it would be possible to do something in order to publish a 
> hudson.plugins.sonar.SonarRunnerInstaller.json based on the content of the 
> Maven 
> repository [1]? If nobody see an objection I will write the groovy script 
> that 
> produces the json by parsing [2].
>> 
>> 
>>  Regards,
>> 
>>  Julien
>> 
>> 
>>  [1] http://repository.codehaus.org/org/codehaus/sonar-plugins/sonar-runner/
>>  [2] 
> http://repository.codehaus.org/org/codehaus/sonar-plugins/sonar-runner/maven-metadata.xml
>> 
>> 
> 
> 
> -- 
> Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
> Try Nectar, our professional version of Jenkins
>


Generic SCM plugin test cases

2012-10-10 Thread Pekka Nikander
[My apologies if this has been discussed earlier, but I didn't find in the 
archives.]

I'm working on the repo scm plugin, and needed to change the 
plugin-internal logic between calcRevisionsFromBuild 
and compareRemoteRevisionWith.  However, the exact relationship how they 
are supposed to work together does not seem to be that well documented... 
(and I don't know where to look at within the Jenkins source code).

So, I started to wonder if there are generic tests for SCM plugins, and if 
there are, how to a) run them and b) if they cover the "contract" between 
the calcRevisionsFromBuild and compareRemoteRevisionWith methods.

--Pekka Nikander