This repository is for the Build a Java app with Maven tutorial in the Jenkins User Documentation.
The repository contains a simple Java application which outputs the string "Hello world!" and is accompanied by a couple of unit tests to check that the main application works as expected. The results of these tests are saved to a JUnit XML report.
The jenkins
directory contains an example of the Jenkinsfile
(i.e. Pipeline)
you'll be creating yourself during the tutorial and the jenkins/scripts
subdirectory
contains a shell script with commands that are executed when Jenkins processes
the "Deliver" stage of your Pipeline.
SMTP Details from Gmail
○ smtp server : smtp.gmail.com
○ default user email suffix : @gmail.com
○ username : (Your gmail id)
○ password : (application specific password generated from previous step)
○ SMTP port : 465
○ Reply to address : [email protected](optional)
Charset : UTF-8 (by default it is UTF-8)
- Generate App Password for Google
○ Navigate to Google account
○ Select Security and Enable 2 factor authentication if you have not done it
○ Once 2MFA is enable navigate back to security Tab and click on 2 Step Verification in Right Pane
○ On bottom of the page you will find App Password