From a03ff832d1375b3fd38357b8fb839c3a0df0d9ba Mon Sep 17 00:00:00 2001 From: GopiBrahmahmaih Date: Sun, 28 Dec 2025 19:53:39 +0530 Subject: [PATCH] Create jenkins.file --- jenkins.file | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 jenkins.file diff --git a/jenkins.file b/jenkins.file new file mode 100644 index 0000000..9202877 --- /dev/null +++ b/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' + } + }