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

Jelly file was not found in email-ext v. 2.57

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None
    • CentOS 7

      Hello
      I installed Jenkins "jenkins-2.47-1.1.noarch" on CentOS 7, to test locally email notification. It has the plugin Email Extension plugin v. 2.57.

      I followed the instruction in the documentation and also in a previous issue that was describing how to use jelly template, but I was still getting all the time this error:
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script1.groovy: 4: unexpected token: in @ line 4, column 36.
      Jelly file [foobar] was not found in $JENKINS_HOME/email-templates.

      What I did so far is the following:
      1. Create manually a directory $JENKINS_HOME/email-templates because it was missing.
      2. Create a file "foobar.jelly" under $JENKINS_HOME/email-templates and set mod to 777 to be sure that I don't have access right issue.
      3. Set "Default Pre-send Script" to ${JELLY_SCRIPT,template="foobar"}
      4. Create job and use $DEFAULT_PRESEND_SCRIPT in field "Pre-send Script".
      5. and finally run the build.

      Note: After searching for similar issues and proposed solutions, I also tried to use the full file name ${JELLY_SCRIPT,template="foobar.jelly"}, and tried the same thing with Groovy template ${SCRIPT,template="cust"}, where I created "$JENKINS_HOME/email-templates/cust.groovy" but I was always getting the same error.

      Any suggestions or did I do anything wrong?
      Thank you

            davidvanlaatum David van Laatum
            kdaher Karim Daher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: