diff --git a/JENKINS-FILE b/JENKINS-FILE new file mode 100644 index 000000000..b1ed6904e --- /dev/null +++ b/JENKINS-FILE @@ -0,0 +1,38 @@ +pipeline{ + agent any + stages{ + stage("coode checkout from github"){ + steps{ + git url :"https://github.com/deepak8971/DevOpsClassCodes.git" + } + } + stage("code compile"){ + steps{ + sh 'mvn compile' + } + } + stage("code test"){ + steps{ + sh 'mvn test' + } + } + stage("code qa by pmd"){ + steps{ + sh 'mvn pmd:pmd' + recordIssues(tools: [pmdParser()]) + } + } + stage("code qa by checkstyle"){ + steps{ + sh 'mvn checkstyle:checkstyle' + recordIssues(tools: [checkStyle()]) + } + } + stage("code package"){ + steps{ + sh 'mvn package' + } + } + + } +} diff --git a/Jenkinsfile b/Jenkinsfile index 03ca46861..8bc8b2f92 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,14 @@ pipeline{ agent any - tools{ - maven "test-maven" + //tools{ + // maven "test-maven" } stages{ stage('Checkout'){ steps{ echo 'cloning..' - git 'https://github.com/akshu20791/DevOpsClassCodes.git' + git 'https://github.com/deepak8971/DevOpsClassCodes.git' } } stage('Compile'){ diff --git a/README.md b/README.md index 7b4302d66..404eeb58e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ a fast read for learning how to get started -ddd not an example on =sasdasdasdas akshat second edi ssskk mmm Running the example from the command hello test -------------------hi akshat hello how are you vvvvjj -```jjjj +```jjjj hi $ mvn jetty:runheee ``` diff --git a/test b/test new file mode 100644 index 000000000..b08471a3b --- /dev/null +++ b/test @@ -0,0 +1 @@ +this is to test webhook trigger