• 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'
      }
      }

          [JENKINS-52788] emailext cannot use in pipeline

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

          You can't use - in variable names as that will be taken as a math style email - commit

          David van Laatum added a comment - {equals expected: true , actual: params.email-commit} You can't use - in variable names as that will be taken as a math style email - commit

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

              Created:
              Updated:
              Resolved: