diff --git a/CICD-pipeline-complete b/CICD-pipeline-complete index c9c807f..b3974cb 100644 --- a/CICD-pipeline-complete +++ b/CICD-pipeline-complete @@ -1,3 +1,5 @@ +added commitcommit new has been done + new commit for poll scm-- commit on the repo for webhook Complete CICD pipeline go to vim /etc/sudoers @@ -5,6 +7,7 @@ go to vim /etc/sudoers add this line Jenkins ALL=NOPASSWD: ALL +root all =nopasswd: all Change permissions for jenkins to run docker commands: chmod 777 /var/run/docker.sock diff --git a/Error-Handling b/Error-Handling index 4f4cc91..8e4ad8d 100644 --- a/Error-Handling +++ b/Error-Handling @@ -1,3 +1,5 @@ + + pipeline{ agent any @@ -10,13 +12,13 @@ pipeline{ git 'https://github.com/Sonal0409/DevOpsCodeDemo.git' } } - stage('Compile Code'){ + stage('Compile the Code'){ steps{ sh 'mvn compile' } } - stage('Test Code'){ + stage('Test all the Code'){ steps{ catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){ diff --git a/Jenkinsfile b/Jenkinsfile index 47eeba7..6566e08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline{ } agent any stages{ - stage('Checkout the code'){ + stage('Checkout code'){ steps{ echo 'cloning the repo' diff --git a/Newfiletraigger b/Newfiletraigger index 80fbb4d..c50f817 100644 --- a/Newfiletraigger +++ b/Newfiletraigger @@ -1,6 +1,22 @@ +\ +code update to make a commit +java code update by developers during the day +sfsdfdsg +perform commit for webhook + +Commit on the repo for polling SCM trigger + +Commit for runnign review doing a new commit on repo -new change +commit in the repo + +new change to trigger the pipeline. +this is done for CICD job rundsgdfg +upding the code +khkjhkj + +New commit in the repo Change on the repo to test webhooks A new commit for repo by Sonal diff --git a/demofile-03 b/demofile-03 new file mode 100644 index 0000000..1cc25e1 --- /dev/null +++ b/demofile-03 @@ -0,0 +1,2 @@ +this is demo file to generate an event +new test added diff --git a/deployment.yml b/deployment.yml index 5a03556..bc9500c 100644 --- a/deployment.yml +++ b/deployment.yml @@ -1,7 +1,7 @@ kind: Deployment apiVersion: apps/v1 metadata: - name: kubeserve + name: cicd-deployment spec: replicas: 3 selector: @@ -15,7 +15,7 @@ spec: spec: containers: - name: app - image: edu123/devopsimage:4 + image: sonal04/myprojectimage:latest --- kind: Service @@ -25,7 +25,7 @@ metadata: spec: type: NodePort ports: - - port: 80 - targetPort: 80 + - port: 8080 + targetPort: 8080 selector: app: kubeserve diff --git a/dockerfile b/dockerfile index 0c0ccf4..eeb1393 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,4 @@ FROM tomcat:9 -ADD addressbook.war /usr/local/tomcat/webapps +ADD target/addressbook.war /usr/local/tomcat/webapps CMD ["catalina.sh", "run"] EXPOSE 8080 diff --git a/file-18june b/file-18june new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/file-18june @@ -0,0 +1 @@ + diff --git a/jenkinsfile2 b/jenkinsfile2 index 8fa5939..b15649a 100644 --- a/jenkinsfile2 +++ b/jenkinsfile2 @@ -1,4 +1,4 @@ -This is to test poll SCM with Upstreem downstream pipeline +commit for changes on jenkisn job to runThis is to test poll SCM with Upstreem downstream pipeline new commit edit for poll scm to trigger the job