Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29711

Snippet Generator: missing attribute names in single-entry forms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      workflow 1.4..1.8
    • Similar Issues:

      Description

      Using the snippet generator for the HTML publisher, the generated code, yields an exception:

      hudson.AbortException: Cannot publish the report. Target is not specified
      	at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:64)
      	at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:43)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)
      

      Follow-up to https://github.com/jenkinsci/htmlpublisher-plugin/pull/15/files#r35805641 ...I suspect a bug in workflow, but probably it has been fixed.

      When a form/class contains only one entry, Snippet Generator provides a code without an attribute name :

      publishHtml([reportName : "", ...])
      

      After that the flow execution calls a constructor with null, because a target is missing. The right call is:

      publishHtml(target: [reportName : "", ...])```
      

      Has this bug been fixed in newer workflow versions? I suspect the answer is "no", but probably I'm doing something wrong in the code

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is blocking JENKINS-30519 [ JENKINS-30519 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-26343 [ JENKINS-26343 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Jesse Glick [ jglick ] Oleg Nenashev [ oleg_nenashev ]
            cruftex Jens Wilke made changes -
            Description Follow-up to https://github.com/jenkinsci/htmlpublisher-plugin/pull/15/files#r35805641 ...I suspect a bug in workflow, but probably it has been fixed.

            When a form/class contains only one entry, Snippet Generator provides a code without an attribute name :
            {noformat}
            publishHtml([reportName : "", ...])
            {noformat}

            After that the flow execution calls a constructor with null, because a target is missing. The right call is:
            {noformat}
            publishHtml(target: [reportName : "", ...])```
            {noformat}

            Has this bug been fixed in newer workflow versions? I suspect the answer is "no", but probably I'm doing something wrong in the code
            Using the snippet generator for the HTML publisher, the generated code yields in an exception:
            {noformat}
            hudson.AbortException: Cannot publish the report. Target is not specified
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:64)
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:43)
            at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)
            {noformat}

            Follow-up to https://github.com/jenkinsci/htmlpublisher-plugin/pull/15/files#r35805641 ...I suspect a bug in workflow, but probably it has been fixed.

            When a form/class contains only one entry, Snippet Generator provides a code without an attribute name :
            {noformat}
            publishHtml([reportName : "", ...])
            {noformat}

            After that the flow execution calls a constructor with null, because a target is missing. The right call is:
            {noformat}
            publishHtml(target: [reportName : "", ...])```
            {noformat}

            Has this bug been fixed in newer workflow versions? I suspect the answer is "no", but probably I'm doing something wrong in the code
            cruftex Jens Wilke made changes -
            Description Using the snippet generator for the HTML publisher, the generated code yields in an exception:
            {noformat}
            hudson.AbortException: Cannot publish the report. Target is not specified
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:64)
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:43)
            at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)
            {noformat}

            Follow-up to https://github.com/jenkinsci/htmlpublisher-plugin/pull/15/files#r35805641 ...I suspect a bug in workflow, but probably it has been fixed.

            When a form/class contains only one entry, Snippet Generator provides a code without an attribute name :
            {noformat}
            publishHtml([reportName : "", ...])
            {noformat}

            After that the flow execution calls a constructor with null, because a target is missing. The right call is:
            {noformat}
            publishHtml(target: [reportName : "", ...])```
            {noformat}

            Has this bug been fixed in newer workflow versions? I suspect the answer is "no", but probably I'm doing something wrong in the code
            Using the snippet generator for the HTML publisher, the generated code, yields an exception:
            {noformat}
            hudson.AbortException: Cannot publish the report. Target is not specified
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:64)
            at htmlpublisher.workflow.PublishHTMLStepExecution.run(PublishHTMLStepExecution.java:43)
            at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:40)
            {noformat}

            Follow-up to https://github.com/jenkinsci/htmlpublisher-plugin/pull/15/files#r35805641 ...I suspect a bug in workflow, but probably it has been fixed.

            When a form/class contains only one entry, Snippet Generator provides a code without an attribute name :
            {noformat}
            publishHtml([reportName : "", ...])
            {noformat}

            After that the flow execution calls a constructor with null, because a target is missing. The right call is:
            {noformat}
            publishHtml(target: [reportName : "", ...])```
            {noformat}

            Has this bug been fixed in newer workflow versions? I suspect the answer is "no", but probably I'm doing something wrong in the code
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26126 [ JENKINS-26126 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-32674 [ JENKINS-32674 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34261 [ JENKINS-34261 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35393 [ 171186 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-36173 [ JENKINS-36173 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 164694 ] JNJira + In-Review [ 181681 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-29922 [ JENKINS-29922 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-37477 [ JENKINS-37477 ]
            abayer Andrew Bayer made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ] Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #49 (Web Link)" [ 14761 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jglick Jesse Glick made changes -
            Link This issue is blocked by JENKINS-38037 [ JENKINS-38037 ]
            bitwiseman Liam Newman made changes -
            Link This issue relates to JENKINS-41456 [ JENKINS-41456 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-43073 [ JENKINS-43073 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-157 (Web Link)" [ 19275 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-51395 [ JENKINS-51395 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-51405 [ JENKINS-51405 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-51395 [ JENKINS-51395 ]

              People

              Assignee:
              abayer Andrew Bayer
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              12 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: