title: how to send message to whole width in slack?
body: <p>I have a question related to sending a message to Slack from Jenkins (groovy script).
  Currently, I use SlackNotificationPlugin for sending messages to Slack and I'm trying to send line for the whole width of Slack, but instead of it, I can use only half of Slack width.</p>
  <p>I use code below:</p>
  <pre><code>              msg = readJSON text: &quot;&quot;&quot;
                {
                  &quot;pretext&quot;: &quot;&lt;placeholder&gt;&quot;,
                  &quot;text&quot;: &quot;&lt;placeholder&gt;&quot;,
                  &quot;color&quot;: &quot;good&quot;,
                  &quot;mrkdwn_in&quot;: [
                    &quot;pretext&quot;,
                    &quot;text&quot;
                  ],
                  &quot;fields&quot;: [
                      {
                          &quot;title&quot;: &quot;A field's title&quot;,
                          &quot;value&quot;: &quot;This field's valueaaaaaaaaaaaa valueaaaaaaaaaaaa valueaaaaaaaaaaaa valueaaaaaaaaaaaa valueaaaaaaaaaaaa valueaaaaaaaaaaaa valueaaaaaaaaaaaa&quot;,
                          &quot;short&quot;: false
                      },
                      {
                          &quot;title&quot;: &quot;A short field's title&quot;,
                          &quot;value&quot;: &quot;A short field's value&quot;,
                          &quot;short&quot;: true
                      },
                      {
                          &quot;title&quot;: &quot;A second short field's title&quot;,
                          &quot;value&quot;: &quot;A second short field's value&quot;,
                          &quot;short&quot;: true
                      }
                  ],
                  &quot;blocks&quot;: [
                    {
                      &quot;type&quot;: &quot;section&quot;,
                      &quot;text&quot;: {
                        &quot;type&quot;: &quot;mrkdwn&quot;,
                        &quot;text&quot;: &quot;*Alternative hotel options*&quot;
                      }
                    }
                  ]
                }
                &quot;&quot;&quot;
              msg.pretext = pretext.inspect() 
              msg.text = text.inspect()
              slack_channel = partner_channel
              slackSend(channel: slack_channel, color: 'good', attachments: &quot;[${msg.toString()}]&quot;)
  </code></pre>
  <p>On the screenshot below you can see Packages Difference and it showed only on the half of the page.</p>
  <p><a href="https://i.stack.imgur.com/az5xx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/az5xx.png" alt="enter image description here" /></a></p>
  <p>I found a solution for this case and I tested it in Slack Block Kit Builder:</p>
  <pre><code>{
      &quot;blocks&quot;: [
          {
              &quot;type&quot;: &quot;section&quot;,
              &quot;text&quot;: {
                  &quot;type&quot;: &quot;mrkdwn&quot;,
                  &quot;text&quot;: &quot;```{8}```&quot;
              }
          }
      ]
  }
  </code></pre>
  <p><a href="https://app.slack.com/block-kit-builder/T025QN6JG#%7B%22blocks%22:%5B%7B%22type%22:%22section%22,%22text%22:%7B%22type%22:%22mrkdwn%22,%22text%22:%22%60%60%60%7B8%7D%60%60%60%22%7D%7D%5D%7D" rel="nofollow noreferrer">https://app.slack.com/block-kit-builder/T025QN6JG#%7B%22blocks%22:%5B%7B%22type%22:%22section%22,%22text%22:%7B%22type%22:%22mrkdwn%22,%22text%22:%22%60%60%60%7B8%7D%60%60%60%22%7D%7D%5D%7D</a></p>
  <p>It Slack Block Kit Builder, I can successfully send a message and use the whole space of slack:
  <a href="https://i.stack.imgur.com/bkBUN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bkBUN.png" alt="enter image description here" /></a></p>
  <p>In official documentation for Jenkins Slack Plugin (<a href="https://plugins.jenkins.io/slack/" rel="nofollow noreferrer">https://plugins.jenkins.io/slack/</a>), I found that for sending blocks we can use the next construction:</p>
  <pre><code>blocks = [
      [
          &quot;type&quot;: &quot;section&quot;,
          &quot;text&quot;: [
              &quot;type&quot;: &quot;mrkdwn&quot;,
              &quot;text&quot;: &quot;Hello, Assistant to the Regional Manager Dwight! *Michael Scott* wants to know where you'd like to take the Paper Company investors to dinner tonight.\n\n *Please select a restaurant:*&quot;
          ]
      ],
      [
          &quot;type&quot;: &quot;divider&quot;
      ],
      [
          &quot;type&quot;: &quot;section&quot;,
          &quot;text&quot;: [
              &quot;type&quot;: &quot;mrkdwn&quot;,
              &quot;text&quot;: &quot;*Farmhouse Thai Cuisine*\n:star::star::star::star: 1528 reviews\n They do have some vegan options, like the roti and curry, plus they have a ton of salad stuff and noodles can be ordered without meat!! They have something for everyone here&quot;
          ],
          &quot;accessory&quot;: [
              &quot;type&quot;: &quot;image&quot;,
              &quot;image_url&quot;: &quot;https://s3-media3.fl.yelpcdn.com/bphoto/c7ed05m9lC2EmA3Aruue7A/o.jpg&quot;,
              &quot;alt_text&quot;: &quot;alt text for image&quot;
          ]
      ]
  ]
  
  slackSend(channel: &quot;#general&quot;, blocks: blocks)
  </code></pre>
  <p>The mentioned code doesn't work for me I have nothing in Slack when I use block construction.
  Can somebody help me with it? I don't use any Bot User, I just want to send the output of Jenkins to Slack.</p>
  <p>Thanks in advance.</p>