[Hudson-Issues] [JIRA] Created: (HUDSON-8738) NPE in hudson.plugins.descriptionsetter.DescriptionSetterPublisher

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Hudson-Issues] [JIRA] Created: (HUDSON-8738) NPE in hudson.plugins.descriptionsetter.DescriptionSetterPublisher

JIRA issues@hudson.java.net
NPE in hudson.plugins.descriptionsetter.DescriptionSetterPublisher
------------------------------------------------------------------

                 Key: HUDSON-8738
                 URL: http://issues.hudson-ci.org/browse/HUDSON-8738
             Project: Hudson
          Issue Type: Bug
          Components: description-setter
         Environment: Solaris
            Reporter: roostergx
            Assignee: huybrechts


My build output will contain one of two possible messages indicating that an artifact was created or if no artifact, then some other text prefixed by "BUILD_MESSAGE:".

I'm attempting to set build description from one of these two possible patterns.  Since the description plugin only accepts a single regex and replacement pattern pair, I tried to define an expresion with two groups describing the two possible patterns.

regex:
(some text indicating artifact (PFX_x.y.z) was build)|(BUILD_MESSAGE: (some message))
Also tried:
(some text indicating artifact (PFX_x.y.z) was build)?|(BUILD_MESSAGE: (some message))?


And defined a description that referenced the inner group of each outer group.
desc:
<b>\2</b><em>\4</em>

This configuration produced the NPE stack trace below.  



Archiving artifacts
ERROR: Publisher hudson.plugins.descriptionsetter.DescriptionSetterPublisher aborted due to exception
java.lang.NullPointerException
        at java.lang.String.replace(String.java:2207)
        at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.getExpandedDescription(DescriptionSetterPublisher.java:158)
        at hudson.plugins.descriptionsetter.DescriptionSetterPublisher.perform(DescriptionSetterPublisher.java:80)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:622)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:601)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:579)
        at hudson.model.Build$RunnerImpl.post2(Build.java:156)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:548)
        at hudson.model.Run.run(Run.java:1386)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:145)


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira