diff --git a/jenkinsfile1 b/jenkinsfile1
new file mode 100644
index 0000000000..f05ff03659
--- /dev/null
+++ b/jenkinsfile1
@@ -0,0 +1,35 @@
+node
+{
+ mavenHome = tool name: 'Maven 3.9.12'
+ stage('debug-settings') {
+ sh "${mavenHome}/bin/mvn help:effective-settings"
+}
+ stage ('checkoutcodegit')
+ {
+ git branch: 'development', credentialsId: 'e19dbdde-5445-4170-9c4e-2f518493875a', url: 'https://github.com/nishanthsannagiri1518-gif/maven-web-application.git'
+ }
+ stage ('build')
+ {
+ sh "${mavenHome}/bin/mvn clean package"
+ }
+ stage ('sonarqubeanalysis')
+ {
+ withSonarQubeEnv('sonarqube') {
+ sh "${mavenHome}/bin/mvn sonar:sonar"
+ }
+ }
+ stage ('nexusrepositoryupload')
+ {
+ withCredentials([usernamePassword(credentialsId: 'nexus-cred', passwordVariable: 'NEXUS_PASSWD', usernameVariable: 'NEXUS_USER')]) {
+ sh "${mavenHome}/bin/mvn deploy "
+ }
+ }
+ stage ('deploywebapp')
+ {
+ sshagent(['379f77d7-e86d-47d1-8b11-5d5ae2bf7e1d']) {
+ sh 'scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@54.221.87.9:/opt/tomcat/webapps/'
+ }
+ }
+
+}
+
diff --git a/pom.xml b/pom.xml
index cfc5be39ad..3cf43ca80a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,9 +21,11 @@
5.1.2.RELEASE
4.11
1.2.17
+
UTF-8
UTF-8
@@ -98,13 +100,13 @@
nexus
Mithun Technologies Releases Nexus Repository
- http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-snapshot/
+ http://54.242.30.99:8081/repository/flipkart-release/
nexus
Mithun Technologies Snapshot Nexus Repository
- http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-release/
+ http://54.242.30.99:8081/repository/flipkart-snapshot/