diff --git a/Dockerfile b/Dockerfile index 3f47f821..af75753c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jdk-alpine +FROM amazoncorretto:8-alpine WORKDIR /app COPY ./target/*.jar /app.jar CMD ["java", "-jar", "/app.jar"] diff --git a/Jenkinsfile b/Jenkinsfile index 3392428c..ca6422f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline{ choice(name: 'action', choices: 'create\ndelete', description: 'Choose create/Destroy') string(name: 'ImageName', description: "name of the docker build", defaultValue: 'javapp') string(name: 'ImageTag', description: "tag of the docker build", defaultValue: 'v1') - string(name: 'DockerHubUser', description: "name of the Application", defaultValue: 'praveensingam1994') + string(name: 'DockerHubUser', description: "name of the Application", defaultValue: 'neworange28') } stages{ @@ -19,8 +19,8 @@ pipeline{ when { expression { params.action == 'create' } } steps{ gitCheckout( - branch: "main", - url: "https://github.com/praveen1994dec/Java_app_3.0.git" + branch: "patch-1", + url: "https://github.com/NewMayur/Java_app_3.0.git" ) } }