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

send E-mail notification on user input

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      Hi, i want to restrict e-mail notifications based on user input. we have parameterized jenkins job, and send E-mail notification is a boolean parameter, if it set to yes the job should send email, if false it shouldn't send e-mails. 

      we are using Jenkins DSL scripts and i mentioned like below. 

      condition {
      booleanCondition('${ENV,var="SEND_NOTIFICATION_EMAILS"}')
      }

       

      but it is not working as expected. could you please let us know if there is any better way to do it.

            davidvanlaatum David van Laatum
            sudhakar470 sudhakar reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: