Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/johnnymarquez/cicd-jenkins-java-spring-jpa-h2-groovy
- Owner: johnnymarquez
- Created: 2022-12-31T13:35:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T21:25:33.000Z (almost 2 years ago)
- Last Synced: 2024-03-16T02:25:58.005Z (10 months ago)
- Topics: groovy, java, jenkins, spring-boot
- Language: Groovy
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).