title: Embed image in email body in Jenkins pipeline
body: <p>I need to add an image in email as email body not as attachment, from Jenkins via pipeline.
  I am using emailext plugin in Jenkins pipeline, below is the code I am using.</p>
  <pre><code>emailext (
            subject: &quot;test email&quot;,
            body: &quot;&quot;&quot;
            &lt;html&gt;
            &lt;body&gt;
            &lt;p&gt;please find attached score: Job '${env.JOB_NAME}':&lt;/p&gt;
            &lt;p&gt; The last commit was by ${last_commit_user} &lt;/p&gt;
            &lt;p&gt;Please check jenkins console at &quot;&lt;/p&gt; 
            &lt;p&gt; For detailed report on this analysis, visit &quot;&lt;/p&gt;
            &lt;/body&gt;
            &lt;/html&gt;
            &quot;&quot;&quot;,
            to: email_recipients,
            attachmentsPattern: '${BUILD_NUMBER}.jpg'
  )
  </code></pre>
  <p>I do not want to use &quot;attachmentsPattern&quot; , that comes as an attachment,
  I tried using,</p>
  <pre><code>body: &quot;&quot;&quot; 
  &lt;html&gt;
  &lt;img src=&quot;image_name.jpg&quot; &gt;
  &lt;/html&gt;
  &quot;&quot;&quot;
  </code></pre>
  <p>That comes only as blue box in my email , I am giving proper image path relative to my Jenkins workspace,
  I tried to search relevant solutions but in vain.</p>