0

how to halt a job from email click by Jenkins existing plugin?

hi, Sir, Madam and experts, 

 

I would like to use existing plugins instead of making one by myself to (as below)

if there is no objection from all stakeholders within a period, let's say 1 week, then it will automatically to deploy to production env.

if there is object, the stakeholder click 'reject' button on email to halt, the deployment to production env will be stopped.

thank you very much

 

Stephen

4 comments

  • 0
    Avatar
    James Nord Engineering

    if you use can use a pipleine you can halt the pipleine with an input step and a timeout step.

    The input step can be triggered by a link (if you use an ID this can be known up front so you can send the pre computed link in an email.)

    For input and timeout usage see this example.

  • 0
    Avatar
    Ronaldo Ronaldinho

    hi, James, can the email be sent from jenkins? i.e. configure whole email in jenkins and with jenkins plugin

  • 0
    Avatar
    James Nord Engineering

    Email is supported in Jenkins by 2 different plugins (mailer and email-ext)

    mailer is installed by default on almost every instance, email-ext you would need to install yourself.

    email-ext can use email templates - but if you are using a pipeline then i recommend you use the mailer plugin first and then use email-ext if you want its more powerful features.  Check out the mail step (example)

  • 0
    Avatar
    Ronaldo Ronaldinho

    thanks , noted and will study further

Please sign in to leave a comment.