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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

FROM maven:3.9.6-eclipse-temurin-17

WORKDIR /build

COPY . .

RUN mvn package -DskipTest && mv target/sysfoo*.jar /run/sysfoo.jar

EXPOSE 8080

CMD [ "java","-jar","/run/sysfoo.jar" ]

37 changes: 37 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pipeline {
agent none
stages {
stage('one') {
steps {
echo 'compiling the app....'
sh 'mvn compile'
}
}

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

stage('three') {
steps {
echo 'packaging the app....'
sh 'mvn package -DskipTests'
sh 'mvn -v'
archiveArtifacts '**/target/*.jar'
}
}

}
tools {
maven 'Maven 3.9.11'
}
post {
always {
echo 'This pipeline is completed..'
}

}
}