diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..43ccad0 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,37 @@ +pipeline { + agent { + label 'master' + } + tools { + maven 'Maven-v3.8.6' + } + + stages { + stage('Build') { + steps { + sh 'mvn -B -DskipTests clean install' + } + } + stage('Test') { + steps { + sh 'mvn test' + } + post { + always { + junit 'target/surefire-reports/*.xml' + } + } + } + stage('Deploy') { + steps { + archiveArtifacts '**/target/*.jar' + } + post { + success { + mail (cc: "ravic@sproutonweb.com", to: "pradi.ravi@gmail.com", subject: "Job '${JOB_NAME}' (${BUILD_NUMBER}) is waiting for input", body: "Please go to ${BUILD_URL} and verify the build") + } + } + } + + } +} diff --git a/README.md b/README.md index 2e9ed99..8249946 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,6 @@ to run scripts/deliver.sh -this is a uild trigger test +Updating build trigger by Ravichandra V +New Test +Test diff --git a/src/main/java/com/mycompany/FileNew.html b/src/main/java/com/mycompany/FileNew.html new file mode 100644 index 0000000..fc7c315 --- /dev/null +++ b/src/main/java/com/mycompany/FileNew.html @@ -0,0 +1,6 @@ + + Testing + +

This is a test

+ + diff --git a/src/main/java/com/mycompany/app/test.html b/src/main/java/com/mycompany/app/test.html new file mode 100644 index 0000000..fc7c315 --- /dev/null +++ b/src/main/java/com/mycompany/app/test.html @@ -0,0 +1,6 @@ + + Testing + +

This is a test

+ +