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

Default sendCIMessage requires "overrides [:]", but Snippet Generator doesn't add it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.204.2, JMS Messaging Plugin 1.1.13

      When Snippet Generator generates a snippet for sendCIMessage for the default topic, it does not add "overrides" parameter. But the script refuses to run without at least

      overrides [:]

      To reproduce:
      1. Create a pipeline project.
      2. Add a "Hello World" script.
      3. Run Snippet generator and generate a sendCIMessage snippet with default parameters.
      4. Try to run the job – it gives an error:

      WorkflowScript: 8: Missing required parameter: "overrides" @ line 8, column 13.
                     sendCIMessage failOnError: false, messageContent: '', messageProperties: '', messageType: 'CodeQualityChecksDone', providerName: 'Provider1'
                     ^
      

            scoheb Scott Hebert
            tkzv T.K. Z.V
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: