diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..58944dc7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +pipeline{ + agent any + stages{ + stage('git clone') + { + steps + { + git credentialsId: 'github', url: 'https://github.com/chakriyekula/SaiJavaCode.git' + } + } + stage('build') + { + steps + { + bat "mvn clean install package" + } + } + stage('copy war') + { + steps + { + bat "copy C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Jenkins\\.jenkins\\workspace\\pipeline_job\\webapp\\target\\*war C:\\Users\\SONY\\Downloads\\apache-tomcat-9.0.48\\webapps" + } + } + } +} diff --git a/fetchfile b/fetchfile new file mode 100644 index 00000000..9294d7b3 --- /dev/null +++ b/fetchfile @@ -0,0 +1 @@ +This is fetchfile diff --git a/fetchfile2 b/fetchfile2 new file mode 100644 index 00000000..9c0f0ed0 --- /dev/null +++ b/fetchfile2 @@ -0,0 +1 @@ +This is fetch file2 diff --git a/file1 b/file1 new file mode 100644 index 00000000..71f92da4 --- /dev/null +++ b/file1 @@ -0,0 +1 @@ +File1 diff --git a/file2 b/file2 new file mode 100644 index 00000000..04530c2d --- /dev/null +++ b/file2 @@ -0,0 +1,4 @@ +File2 +This is file1 +This is file2 +myfile diff --git a/file3 b/file3 new file mode 100644 index 00000000..a0ad61a7 --- /dev/null +++ b/file3 @@ -0,0 +1 @@ +File3 diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 00000000..8b797feb --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,25 @@ +pipeline{ + stages{ + stage('git clone') + { + steps + { + git credentialsId: 'github', url: 'https://github.com/chakriyekula/SaiJavaCode.git' + } + } + stage('build') + { + steps + { + bat "mvn clean install package" + } + } + stage('copy war') + { + steps + { + bat "copy C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Jenkins\\.jenkins\\workspace\\pipeline_job\\webapp\\target\\*war C:\\Users\\SONY\\Downloads\\apache-tomcat-9.0.48\\webapps" + } + } + } +} diff --git a/myfile b/myfile new file mode 100644 index 00000000..e35aec9a --- /dev/null +++ b/myfile @@ -0,0 +1,2 @@ +This is completely different line +new line added diff --git a/newfile b/newfile new file mode 100644 index 00000000..f1f77156 --- /dev/null +++ b/newfile @@ -0,0 +1 @@ +This is newfile! diff --git a/testfile b/testfile new file mode 100644 index 00000000..1522a344 --- /dev/null +++ b/testfile @@ -0,0 +1 @@ +This is testfile! diff --git a/webapp/src/main/webapp/index.jsp b/webapp/src/main/webapp/index.jsp index 9f2c479f..55f7c62e 100644 --- a/webapp/src/main/webapp/index.jsp +++ b/webapp/src/main/webapp/index.jsp @@ -1,4 +1,6 @@