From 5652e85b88c40373a616cd3f9b659a0a50e257ad Mon Sep 17 00:00:00 2001
From: millionow <93085914+millionow@users.noreply.github.com>
Date: Tue, 25 Oct 2022 14:24:32 +0400
Subject: [PATCH 1/4] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index eccd2068..b686023c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,8 +34,8 @@
maven-compiler-plugin
- 1.6
- 1.6
+ 1.7
+ 1.7
From 765a72a9b66c8aed2ce23fe800aee004575f1a3f Mon Sep 17 00:00:00 2001
From: millionow <93085914+millionow@users.noreply.github.com>
Date: Tue, 25 Oct 2022 14:29:30 +0400
Subject: [PATCH 2/4] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index b686023c..eccd2068 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,8 +34,8 @@
maven-compiler-plugin
- 1.7
- 1.7
+ 1.6
+ 1.6
From cd53995abbbe196b9c3dec4156d836916586aeab Mon Sep 17 00:00:00 2001
From: millionow <93085914+millionow@users.noreply.github.com>
Date: Tue, 25 Oct 2022 14:33:57 +0400
Subject: [PATCH 3/4] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index eccd2068..3579edbb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,8 +34,8 @@
maven-compiler-plugin
- 1.6
- 1.6
+ 11
+ 11
From 33cf89ec33844de8dae6274143f8b5319b111e79 Mon Sep 17 00:00:00 2001
From: millionow <93085914+millionow@users.noreply.github.com>
Date: Thu, 2 Mar 2023 17:58:20 +0400
Subject: [PATCH 4/4] Create jenkin file
---
jenkin file | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 jenkin file
diff --git a/jenkin file b/jenkin file
new file mode 100644
index 00000000..450e9dff
--- /dev/null
+++ b/jenkin file
@@ -0,0 +1,57 @@
+pipeline {
+ agent any
+
+ stages {
+ stage('fetching') {
+ steps {
+ echo 'Hello World'
+ sh '''
+ ls -lrth
+ '''
+ checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'gitpassword', url: 'https://github.com/millionow/java-hello-world-with-maven']]])
+ }
+
+ }
+ stage('building') {
+ steps {
+ sh '''
+ pwd
+ echo "bulinding in progrs"
+ mvn clean install
+ '''
+
+ }
+
+ }
+ stage("create docker image") {
+ steps {
+ sh '''
+ cp Dockerfile /var/lib/jenkins/workspace/one/target/
+ cd /var/lib/jenkins/workspace/one/target/
+ pwd
+ echo "creating docker image"
+ docker build -t bivindambadi/repo2 .
+ echo "bulding success"
+
+
+
+ '''
+
+ }
+ }
+ stage("pushing to hub") {
+ steps {
+ sh '''
+ echo pushing
+ echo "${dockerpwd}"
+ docker login -u bivindambadi --password Ambadi@143
+ echo "login success"
+
+ echo "pushing"
+ docker push bivindambadi/repo2
+ '''
+ }
+ }
+
+ }
+}