GitHub - ehkr1997/simple-java-maven-app: For an introductory tutorial on how to use Jenkins to build a simple Java application with Maven. · GitHub
Skip to content

ehkr1997/simple-java-maven-app

 
 

Folders and files

Repository files navigation

simple-java-maven-app

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 : noreply@gmail.com(optional) Charset : UTF-8 (by default it is UTF-8)image


How to create a Gmail password for Jenkins

- 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

Create a new App password for Jenkins image

About

For an introductory tutorial on how to use Jenkins to build a simple Java application with Maven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Shell 53.6%
  • Java 46.4%