Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8417619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:06:16+00:00 2026-06-10T02:06:16+00:00

I want to edit email body in pre-send script in Email-ext Jenkins plugin. What

  • 0

I want to edit email body in pre-send script in Email-ext Jenkins plugin.
What language should I use to write code?
Bash script or other?
Can you add some piece of code?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:06:18+00:00Added an answer on June 10, 2026 at 2:06 am

    The language you must use is Groovy, you can test your piece of code in the script console under Jenkins > Manage > script for anything that doesn’t rely on build specific values.

    Example that cancels sending the email if there have been no changes (tested when using Git):

    if (build.changeSet.emptySet) cancel=true;

    Groovy is some sort of convenient scripting language that really uses Java behind the scenes, so you’ll probably have to dig into the Jenkins java classes to see what is defined/what objects you can use. For instance the build variable in my sample code is really the java object FreeStyleBuild when I run it on my Jenkins job (which is a free style build job obviously).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send email using the php code, Following is the code should
I want to use ms sql 2005 to send email reminders to my customers.
I want to do something, like edit my email address in a profile page,
I'm attempting to write a Python function to send an email to a list
I am using this code to send email var message = new MailMessage(abc@somedomain.com, administrator@anotherdomain.com);
the form is still submitted. if i want to use your code and add
I want to edit an user. I dispay the corresponding data(username, email,..etc..password, confirmation pass)
EDIT: In case you want to test i have deployed the code to this
I want edit multiple strings at once by selection the list of strings needs
I want to edit links when the user changes the value of a <input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.