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

emailext cannot use in pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Email Extension Plugin 2.62

      No matter which 'body' I use, it report the error in the image.Is it wrong with my writing, or is it a bug?Looking forward to your answer~

      stage('成功后发送邮件'){
      when

      {equals expected: true, actual: params.email-commit}

      steps{
      // emailext body: '''${SCRIPT, template="jenkins-matrix-email-html.template"}''', subject: 'Test email', to: 'myemail'
      emailext body: 'A Test EMail', subject: 'Test', to: 'myemail'
      }
      }

            davidvanlaatum David van Laatum
            alby tang alby
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: