[JIRA] (JENKINS-36846) request to have a contribution guildeline to build email-ext-plugin from source

1 view
Skip to first unread message

writeback2pooja@gmail.com (JIRA)

unread,
Jul 21, 2016, 7:48:01 AM7/21/16
to jenkinsc...@googlegroups.com
pooja shah updated an issue
 
Jenkins / Improvement JENKINS-36846
request to have a contribution guildeline to build email-ext-plugin from source
Change By: pooja shah
Summary: Need request to have a contribution guildeline to build email-ext-plugin from source
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

david@vanlaatum.id.au (JIRA)

unread,
Jul 23, 2016, 10:04:02 PM7/23/16
to jenkinsc...@googlegroups.com
David van Laatum commented on Improvement JENKINS-36846
 
Re: request to have a contribution guildeline to build email-ext-plugin from source

It should just work. I am having issues with the current head not building on the build server I am trying to figure out. I suggest checking out the latest release tag and see if that builds.

writeback2pooja@gmail.com (JIRA)

unread,
Jul 24, 2016, 1:47:01 AM7/24/16
to jenkinsc...@googlegroups.com
pooja shah updated an issue
Change By: pooja shah
Attachment: Screen Shot 2016-07-24 at 11.17.13 am.png

writeback2pooja@gmail.com (JIRA)

unread,
Jul 24, 2016, 2:19:02 AM7/24/16
to jenkinsc...@googlegroups.com
pooja shah commented on Improvement JENKINS-36846
 
Re: request to have a contribution guildeline to build email-ext-plugin from source

thanks David,
latest pull have solved few but still it fails on "findbugs", any work-around I can try? on a hunch i'm thinking of commenting these lines of code, though not aware of the impact at the moment.

?

```
Downloaded: http://repo.jenkins-ci.org/public/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar (0 B at 0.0 KB/sec)
[INFO] Fork Value is true
[java] Warnings generated: 7
[INFO] Done FindBugs Analysis....
[INFO]
[INFO] <<< findbugs-maven-plugin:3.0.3:check (findbugs) < :findbugs @ email-ext <<<
[INFO]
[INFO] — findbugs-maven-plugin:3.0.3:check (findbugs) @ email-ext —
[INFO] BugInstance size is 7
[INFO] Error size is 0
[INFO] Total bugs: 7
[INFO] Possible null pointer dereference in hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisherContext) due to return value of called method [hudson.plugins.emailext.ExtendedEmailPublisher, hudson.plugins.emailext.ExtendedEmailPublisher] Dereferenced at ExtendedEmailPublisher.java:[line 595]Known null at ExtendedEmailPublisher.java:[line 595] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
[INFO] Exception is caught when Exception is not thrown in hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisherContext) [hudson.plugins.emailext.ExtendedEmailPublisher] At ExtendedEmailPublisher.java:[line 462] REC_CATCH_EXCEPTION
[INFO] Exception is caught when Exception is not thrown in hudson.plugins.emailext.plugins.EmailTriggerDescriptor._createDefault() [hudson.plugins.emailext.plugins.EmailTriggerDescriptor] At EmailTriggerDescriptor.java:[line 47] REC_CATCH_EXCEPTION
[INFO] Found reliance on default encoding in hudson.plugins.emailext.plugins.content.AbstractEvalContent.getManagedFile(String): String.getBytes() [hudson.plugins.emailext.plugins.content.AbstractEvalContent] At AbstractEvalContent.java:[line 148] DM_DEFAULT_ENCODING
[INFO] Possible null pointer dereference in hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider.addRecipients(ExtendedEmailPublisherContext, EnvVars, Set, Set, Set) due to return value of called method [hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider, hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider] Dereferenced at CulpritsRecipientProvider.java:[line 57]Known null at CulpritsRecipientProvider.java:[line 57] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
[INFO] Possible null pointer dereference in hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider.addRecipients(ExtendedEmailPublisherContext, EnvVars, Set, Set, Set) due to return value of called method [hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider, hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider] Dereferenced at CulpritsRecipientProvider.java:[line 62]Known null at CulpritsRecipientProvider.java:[line 62] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
[INFO] Possible null pointer dereference in hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider.addRecipients(ExtendedEmailPublisherContext, EnvVars, Set, Set, Set) due to return value of called method [hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider, hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider] Dereferenced at FirstFailingBuildSuspectsRecipientProvider.java:[line 87]Known null at FirstFailingBuildSuspectsRecipientProvider.java:[line 87] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
[INFO]

To see bug detail using the Findbugs GUI, use the following command "mvn findbugs:gui"

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:39 min
[INFO] Finished at: 2016-07-24T11:08:52+05:30
[INFO] Final Memory: 58M/766M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.3:check (findbugs) on project email-ext: failed with 7 bugs and 0 errors -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.3:check (findbugs) on project email-ext: failed with 7 bugs and 0 errors
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: failed with 7 bugs and 0 errors
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)
at org.codehaus.mojo.findbugs.FindbugsViolationCheckMojo.execute(FindbugsViolationCheckMojo.groovy:529)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
```

david@vanlaatum.id.au (JIRA)

unread,
Jul 24, 2016, 2:42:01 AM7/24/16
to jenkinsc...@googlegroups.com

david@vanlaatum.id.au (JIRA)

unread,
Jul 24, 2016, 5:05:02 AM7/24/16
to jenkinsc...@googlegroups.com

writeback2pooja@gmail.com (JIRA)

unread,
Jul 26, 2016, 3:56:01 AM7/26/16
to jenkinsc...@googlegroups.com

I tried
1. mvn compile (this succeeded)
2. mvn install (failed)
3. mvn clean install (failed)

am I building it wrong way?

writeback2pooja@gmail.com (JIRA)

unread,
Jul 26, 2016, 3:58:01 AM7/26/16
to jenkinsc...@googlegroups.com
pooja shah edited a comment on Improvement JENKINS-36846

david@vanlaatum.id.au (JIRA)

unread,
Jul 26, 2016, 5:04:01 AM7/26/16
to jenkinsc...@googlegroups.com

If you want to test use mvn hpi:run which will build and create an install of jenkins with the plugin installed
if you want to run all unit tests mvn package (which install does do)
before sending a pull request make sure mvn clean verify passes

writeback2pooja@gmail.com (JIRA)

unread,
Jul 27, 2016, 7:16:01 AM7/27/16
to jenkinsc...@googlegroups.com
pooja shah updated an issue
Change By: pooja shah
Attachment: Screen Shot 2016-07-27 at 4.45.59 pm.png

david@vanlaatum.id.au (JIRA)

unread,
Aug 17, 2016, 9:47:01 PM8/17/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages