diff --git a/CICD-pipeline-complete b/CICD-pipeline-complete index c9c807f..bd34b06 100644 --- a/CICD-pipeline-complete +++ b/CICD-pipeline-complete @@ -1,3 +1,5 @@ +commit 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 f5bf245..a680bd5 100644 --- a/Newfiletraigger +++ b/Newfiletraigger @@ -1,10 +1,18 @@ +java code update by developers during the day + +perform commit for webhook + Commit on the repo for polling SCM trigger Commit for runnign review doing a new commit on repo +commit in the repo + new change to trigger the pipeline. -this is done for CICD job run +this is done for CICD job rundsgdfg +upding the code +khkjhkj New commit in the repo Change on the repo to test webhooks 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..2298e58 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/myimageprojectdevops --- kind: Service @@ -25,7 +25,7 @@ metadata: spec: type: NodePort ports: - - port: 80 - targetPort: 80 + - port: 8080 + targetPort: 8080 selector: app: kubeserve