- Login to Jenkins
- Go to Configure System
- Go to bottom of the page and stop at Extended E-mail Notification section
- Do required setup related to credentials.
- Do required modification in Subject and Email template as per your requirements.
Note: Check email configuration correctly done or not from E-mail Notification section by using Test feature.
You need to enter recipients email(s) under Project Recipient section from Your Created Job > Configuration > Post-build Actions
Steps to do JAVA and Maven configuration with Jenkins
- Go to Manage Jenkins from options listed on the left side.
- Go to Global Tool Configuration
- Click 'Add JDK' button under 'JDK' panel.
- Uncheck "Install Automatically" checkbox. [This comes bydefault checked to install latest Java version automatically]
- Enter JAVA_HOME in Name textbox.
- Enter jdk folder path path in JAVA_HOME textbox.[e.g; c:\Program Files\Java\jdk1.8.0]
- Scroll down and click 'Add Maven' button under 'Maven' panel.
- Uncheck "Install Automatically" checkbox. [This comes bydefault checked to install latest maven version automatically]
- Enter MAVEN_HOME in Name textbox.
- Enter maven path in MAVEN_HOME textbox. [e.g; D:\Software\Maven\apache-maven-3.4] If it is not installed then first install.
- Click Save button.
Following plugins Jenkins recommend to install while configuring first time:
- Folders
- Timestamper
- Pipeline
- Git
- PAM Authentication
- OWASP Markup Formatter
- Workspace Cleanup
- GitHub Branch Source
- Subversion
- LDAP
- Build Timeout
- Ant
- Pipeline: GitHub Groovy Libraries
- SSH Slaves
- Email Extension
- Credentials Binding
- Gradle
- Pipeline: Stage View
- Matrix Authorization Strategy
- Mailer