diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..171e3d4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline{ + agent {label 'angular'} + stages{ + stage('Git Checkout Stage'){ + steps{ + git branch: 'main', url: 'https://github.com/sudheer76R/java-example.git' + } + } + stage('Build Stage'){ + steps{ + sh 'mvn clean install' + } + } + stage('SonarQube Analysis Stage') { + steps{ + withSonarQubeEnv('sonarqube-server') { + sh "mvn clean verify sonar:sonar" + } + } + } + } +} diff --git a/README.md b/README.md index fd0fd7b..7ff233a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Simple Java Project This is a demo project that you can use with [Buddy Continuous Deployment](https://buddy.works). +Adding some lines +Checking POLL scm diff --git a/pom.xml b/pom.xml index 7f5d8b9..b586f6f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,10 +6,13 @@ works-with-heroku 1.0 war + + - 1.6 - 1.6 + 11 + 11 + javax.servlet @@ -25,18 +28,23 @@ org.mockito - mockito-all - 1.10.19 + mockito-core + 3.12.4 test - + + + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + org.apache.maven.plugins maven-dependency-plugin - 2.3 + 3.4.0 package diff --git a/test b/test index eb58ad5..9f4b6d8 100644 --- a/test +++ b/test @@ -1 +1 @@ -Checking POLL SCM +This is a test file