Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnnymarquez/cicd-jenkins-java-spring-jpa-h2-groovy

CI/CD Pipeline sample with Jenkins and Groovy programming.
https://github.com/johnnymarquez/cicd-jenkins-java-spring-jpa-h2-groovy

groovy java jenkins spring-boot

Last synced: 28 days ago
JSON representation

CI/CD Pipeline sample with Jenkins and Groovy programming.

Awesome Lists containing this project

README

        

# CI/CD Pipeline with Jenkins and Github.

Pipeline project developed with a [Jenkins Shared Libraries](https://www.jenkins.io/doc/book/pipeline/shared-libraries/)
focus in combination with a sample REST coffees CRUD microservice developed with Java, Spring Framework, JPA and H2.

# Pipeline

./vars directory contains multiple Jenkins pipelines scripts coded in groovy language.

# CoffeesCRUDSpring

Sample CRUD REST API application with maven.

## Windows

### Compile Code

./mvnw.cmd clean compile -e

### Test Code

./mvnw.cmd clean test -e

### Jar Code

./mvnw.cmd clean package -e

### Run Jar

Local: ./mvnw.cmd spring-boot:run
Background: nohup bash mvnw.cmd spring-boot:run &

### Open Application

http://localhost:8080/coffees

## Linux

### Compile Code

./mvnw clean compile -e

### Test Code

./mvnw clean test -e

### Jar Code

./mvnw clean package -e

### Run Jar

Local: ./mvnw spring-boot:run
Background: nohup bash mvnw spring-boot:run &

### Open Application

http://localhost:8080/coffees

# Docker

### Docker Build

docker build -t demo .

### Docker run

docker run -d -p 8080:8080 demo

### This Project can be integrated with [CI/CD example pipeline](https://github.com/johnnymarquez/CICD-Pipeline-Jenkins).