Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #34

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Dev #34

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: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FROM adoptopenjdk/openjdk11

FROM adoptopenjdk/openjdk11
EXPOSE 8080

ENV APP_HOME /usr/src/app

COPY target/*.jar $APP_HOME/app.jar

WORKDIR $APP_HOME





CMD ["java", "-jar", "app.jar"]




17 changes: 7 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
pipeline {
agent {label 'slave-1'}

tools {
maven 'maven3'
jdk 'jdk17'
}
agent any

stages {
stages {
stage('Compile') {
steps {
sh "mvn compile"
sh "mvn compile"
}
}

stage('Test') {

stage('test') {
steps {
sh "mvn test"
}
}

stage('Build') {

stage('build') {
steps {
sh "mvn package"
}
Expand Down
28 changes: 0 additions & 28 deletions Jenkinsfileaditya

This file was deleted.

1 change: 1 addition & 0 deletions artifact/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#thia ia a test file