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.
but it is not working as expected. could you please let us know if there is any better way to do it.