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' + } + } + 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' + } + } 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' + } + } 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' + } + }