Skip to content

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

Notifications You must be signed in to change notification settings

jsgiraldoh/simple-java-maven-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

113 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Continuous Integration

This repository includes a GitHub Actions workflow at .github/workflows/maven.yml that runs on push and pull requests to master. It uses JDK 17 and runs mvn -B verify, publishing test artifacts.

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.

Elasticsearch embedded in SonarQube

sudo sysctl -w vm.max_map_count=262144

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

 
 
 

Languages

  • Shell 48.2%
  • Java 38.5%
  • Dockerfile 13.3%