1

I am using a jelly script with ext-email plugin. If I would like to add a picture myself how do I do that in a jelly script. I have tried alot of diffrent ways but still it is the wrong search way.

<IMG SRC="${JENKINS_HOME}email-templates/jenkins-logo/jenkins-logo/32x32/logotitle.jpg"/>
<IMG SRC="${rooturl}email-templates/jenkins-logo/jenkins-logo/32x32/logotitle.png"/>
<IMG SRC="${rooturl}Jenkins/email-templates/jenkins-logo/jenkins-logo/32x32/logotitle.gif"/>
<IMG SRC="C:/Jenkins/email-templates/jenkins-logo/jenkins-logo/32x32/logotitle.gif"/>

Please advise me.

Josh Unger
  • 6,717
  • 6
  • 33
  • 55
Mikael
  • 173
  • 2
  • 12

2 Answers2

3

You can use userContent directory to use any external resources.

For your problem:

1. You should put "myself.png" to $JENKINS_HOME/userContent directory

2. In jelly script you may use <IMG SRC="${rooturl}/userContent/myself.png"/>

Akhil Jain
  • 13,872
  • 15
  • 57
  • 93
vim
  • 407
  • 4
  • 8
0

You can also include your screenshot as attachment. In the advance options of "Editable email notifications" plugin there is such a place:

enter image description here

Specify the name of your image which should be stored in a workspace.

Rarar
  • 419
  • 2
  • 6
  • 19