Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM maven:3.9.14-eclipse-temurin-17-alpine AS build

WORKDIR /app

COPY . .

RUN mvn clean package -DskipTests

FROM eclipse-temurin:17-jdk-alpine

WORKDIR /run

COPY --from=build /app/target/*.jar app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pipeline {
agent any
tools {
maven 'Maven 3.9.13'
}
stages {
stage ('build') {
steps {
echo 'compiling....'
sh 'mvn compile'
}
}

stage ('test') {
steps {
echo 'testing....'
sh 'mvn clean test'
}
}

stage ('package') {
steps {
echo 'packaging....'
sh 'mvn package -DskipTests'
}
}
}
post {
always {
echo 'This pipeline is completed.'
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Sysfoo Application

A Devops Learning App
A Devops Learning App modify brand commit hehe

## About the Application

Expand Down
1 change: 1 addition & 0 deletions changelogs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git sasfas sa das ss