diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5f13ca9 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..08db441 --- /dev/null +++ b/Jenkinsfile @@ -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.' + } + } +} diff --git a/README.md b/README.md index 6ae4ea5..03fa777 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Sysfoo Application -A Devops Learning App +A Devops Learning App modify brand commit hehe ## About the Application diff --git a/changelogs.txt b/changelogs.txt new file mode 100644 index 0000000..0b8749d --- /dev/null +++ b/changelogs.txt @@ -0,0 +1 @@ +git sasfas sa das ss