From e3d238a7f36e7ebec165827300b0cd36650fdc37 Mon Sep 17 00:00:00 2001 From: aemallaanusha <132611343+aemallaanusha@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:45:54 +0530 Subject: [PATCH 1/2] Delete Jenkinsfile --- Jenkinsfile | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 4a67b06..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,42 +0,0 @@ -pipeline{ - agent any - stages{ - stage('checkout the code from github'){ - steps{ - git url: 'https://github.com/akshu20791/Banking-java-project/' - echo 'github url checkout' - } - } - stage('codecompile with akshat'){ - steps{ - echo 'starting compiling' - sh 'mvn compile' - } - } - stage('codetesting with akshat'){ - steps{ - sh 'mvn test' - } - } - stage('qa with akshat'){ - steps{ - sh 'mvn checkstyle:checkstyle' - } - } - stage('package with akshat'){ - steps{ - sh 'mvn package' - } - } - stage('run dockerfile'){ - steps{ - sh 'docker build -t myimg .' - } - } - stage('port expose'){ - steps{ - sh 'docker run -dt -p 8091:8091 --name c000 myimg' - } - } - } -} From b4a29161073019c50ba702aa00bdb8220bde7ef5 Mon Sep 17 00:00:00 2001 From: aemallaanusha <132611343+aemallaanusha@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:49:06 +0530 Subject: [PATCH 2/2] Create jenkinsfile --- jenkinsfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..18f13aa --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,42 @@ +pipeline{ + agent any + stages{ + stage('checkout the code from github'){ + steps{ + git url: 'https://github.com/aemallaanusha/Banking-java-project/' + echo 'github url checkout' + } + } + stage('codecompile with aemallaanusha'){ + steps{ + echo 'starting compiling' + sh 'mvn compile' + } + } + stage('codetesting with aemallaanusha'){ + steps{ + sh 'mvn test' + } + } + stage('qa with aemallaanusha'){ + steps{ + sh 'mvn checkstyle:checkstyle' + } + } + stage('package with aemallaanusha'){ + steps{ + sh 'mvn package' + } + } + stage('run dockerfile'){ + steps{ + sh 'docker build -t myimg .' + } + } + stage('port expose'){ + steps{ + sh 'docker run -dt -p 8091:8091 --name c000 myimg' + } + } + } +}