diff --git a/Jenkinsfile b/Jenkinsfile index 983187f..16119fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,24 +4,27 @@ pipeline{ jdk 'myjava' maven 'mymaven' } - agent any + agent none stages{ stage('Checkout'){ + agent any + // agent {label 'slave1'} steps{ echo 'cloning..' - git 'https://github.com/Sonal0409/DevOpsClassCodes.git' + git 'https://github.com/kobina25/DevOpsCodeDemo.git' } } stage('Compile'){ - + agent {label 'slave1'} + // agent {label 'jenkins_slave'} steps{ echo 'complie the code..' sh 'mvn compile' } } stage('CodeReview'){ - + agent {label 'slave2'} steps{ echo 'codeReview' @@ -29,7 +32,7 @@ pipeline{ } } stage('UnitTest'){ - + agent {label 'slave1'} steps{ sh 'mvn test' @@ -38,7 +41,7 @@ pipeline{ } stage('Package'){ - + agent any steps{ sh 'mvn package' diff --git a/Jenkinsfile2 b/Jenkinsfile2 new file mode 100644 index 0000000..0cac046 --- /dev/null +++ b/Jenkinsfile2 @@ -0,0 +1,50 @@ + +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + agent any + stages{ + stage('Checkout'){ + + steps{ + echo 'cloning..' + git 'https://github.com/kobina25/DevOpsCodeDemo.git' + } + } + stage('Compile'){ + + steps{ + echo 'complie the code..' + sh 'mvn compile' + } + } + stage('CodeReview'){ + + steps{ + + echo 'codeReview' + sh 'mvn pmd:pmd' + } + } + stage('UnitTest'){ + + steps{ + + sh 'mvn test' + } + + } + + stage('Package'){ + + steps{ + + sh 'mvn package' + } + } + + + } +} diff --git a/README.md b/README.md index 232fe2a..39e958d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +.......... + ##Addressbook Tutoriall ==================== diff --git a/ourfile8 b/ourfile8 new file mode 100644 index 0000000..f867109 --- /dev/null +++ b/ourfile8 @@ -0,0 +1 @@ +Devops is great diff --git a/src/main/java/com/mydemo/tutorial/addressbook/AddressbookUI.java b/src/main/java/com/mydemo/tutorial/addressbook/AddressbookUI.java index eafe268..6b52e03 100644 --- a/src/main/java/com/mydemo/tutorial/addressbook/AddressbookUI.java +++ b/src/main/java/com/mydemo/tutorial/addressbook/AddressbookUI.java @@ -44,7 +44,7 @@ public class AddressbookUI extends UI { ContactForm contactForm = new ContactForm(); // ContactService is a in-memory mock DAO that mimics - // a real-world datasource. Typically implemented for + // a real-world datasource. Typically implemented for many instances at theITern // example as EJB or Spring Data based service. ContactService service = ContactService.createDemoService(); @@ -112,7 +112,7 @@ private void buildLayout() { mainLayout.setSizeFull(); mainLayout.setExpandRatio(left, 1); - // Split and allow resizing + // Split and allow resizing of the rows setContent(mainLayout); }