From 8c34ca38c5e40cd897a76cced20b627bbaa8053e Mon Sep 17 00:00:00 2001 From: GopiBrahmahmaih Date: Sun, 28 Dec 2025 19:49:13 +0530 Subject: [PATCH 1/4] updated by me in git hub --- auth/jenkins.file | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 auth/jenkins.file diff --git a/auth/jenkins.file b/auth/jenkins.file new file mode 100644 index 0000000..b3d9534 --- /dev/null +++ b/auth/jenkins.file @@ -0,0 +1,42 @@ +pipeline { + agent any + + environment { + scannerHome = tool "sonar" + } + + stages { + + stage('cleanws') { + steps { + cleanWs() + } + } + + stage('Code') { + steps { + git 'https://github.com/gopi-wp/python-code-library-app.git' + } + } + + stage('dependancy-check') { + steps { + dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit\'', nvdCredentialsId: 'owaps-cred', odcInstallation: 'dp-check' + dependencyCheckPublisher pattern: 'dependency-check-report.xml' + } + } + + stage('CQA') { + steps { + withSonarQubeEnv('sonar') { + sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=library" + } + } + } + + stage('Qualitygates') { + steps { + waitForQualityGate abortPipeline: false, credentialsId: 'sonar-id' + } + } + From a3f712863ffbbb4091056422449ec2f61a6f5e2b Mon Sep 17 00:00:00 2001 From: GopiBrahmahmaih Date: Sun, 28 Dec 2025 19:50:06 +0530 Subject: [PATCH 2/4] Add Jenkins pipeline configuration for project --- book/jenkins.file | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 book/jenkins.file diff --git a/book/jenkins.file b/book/jenkins.file new file mode 100644 index 0000000..9202877 --- /dev/null +++ b/book/jenkins.file @@ -0,0 +1,41 @@ +pipeline { + agent any + + environment { + scannerHome = tool "sonar" + } + + stages { + + stage('cleanws') { + steps { + cleanWs() + } + } + + stage('Code') { + steps { + git 'https://github.com/gopi-wp/python-code-library-app.git' + } + } + + stage('dependancy-check') { + steps { + dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit\'', nvdCredentialsId: 'owaps-cred', odcInstallation: 'dp-check' + dependencyCheckPublisher pattern: 'dependency-check-report.xml' + } + } + + stage('CQA') { + steps { + withSonarQubeEnv('sonar') { + sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=library" + } + } + } + + stage('Qualitygates') { + steps { + waitForQualityGate abortPipeline: false, credentialsId: 'sonar-id' + } + } From 10a27dfcc20f7a6252541417d73e1f8894015678 Mon Sep 17 00:00:00 2001 From: GopiBrahmahmaih Date: Sun, 28 Dec 2025 19:50:35 +0530 Subject: [PATCH 3/4] Add Jenkins pipeline configuration for CI/CD --- borrow/jenkins.file | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 borrow/jenkins.file diff --git a/borrow/jenkins.file b/borrow/jenkins.file new file mode 100644 index 0000000..9202877 --- /dev/null +++ b/borrow/jenkins.file @@ -0,0 +1,41 @@ +pipeline { + agent any + + environment { + scannerHome = tool "sonar" + } + + stages { + + stage('cleanws') { + steps { + cleanWs() + } + } + + stage('Code') { + steps { + git 'https://github.com/gopi-wp/python-code-library-app.git' + } + } + + stage('dependancy-check') { + steps { + dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit\'', nvdCredentialsId: 'owaps-cred', odcInstallation: 'dp-check' + dependencyCheckPublisher pattern: 'dependency-check-report.xml' + } + } + + stage('CQA') { + steps { + withSonarQubeEnv('sonar') { + sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=library" + } + } + } + + stage('Qualitygates') { + steps { + waitForQualityGate abortPipeline: false, credentialsId: 'sonar-id' + } + } From 94a1e33ffeb2774d3c8267a2557c839ec04c4d6b Mon Sep 17 00:00:00 2001 From: GopiBrahmahmaih Date: Sun, 28 Dec 2025 19:51:02 +0530 Subject: [PATCH 4/4] Create jenkins.file --- database/jenkins.file | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 database/jenkins.file diff --git a/database/jenkins.file b/database/jenkins.file new file mode 100644 index 0000000..9202877 --- /dev/null +++ b/database/jenkins.file @@ -0,0 +1,41 @@ +pipeline { + agent any + + environment { + scannerHome = tool "sonar" + } + + stages { + + stage('cleanws') { + steps { + cleanWs() + } + } + + stage('Code') { + steps { + git 'https://github.com/gopi-wp/python-code-library-app.git' + } + } + + stage('dependancy-check') { + steps { + dependencyCheck additionalArguments: '--scan ./ --disableYarnAudit --disableNodeAudit\'', nvdCredentialsId: 'owaps-cred', odcInstallation: 'dp-check' + dependencyCheckPublisher pattern: 'dependency-check-report.xml' + } + } + + stage('CQA') { + steps { + withSonarQubeEnv('sonar') { + sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=library" + } + } + } + + stage('Qualitygates') { + steps { + waitForQualityGate abortPipeline: false, credentialsId: 'sonar-id' + } + }