diff --git a/Jenkinsfile b/Jenkinsfile index dc29aa8..b253c38 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,43 +11,6 @@ pipeline { git(url: 'https://github.com/Ninjarku/WhatTheDuck', branch: 'main', credentialsId: 'juan-pound-fish') } } - // stage('Check Changes') { - // when { - // branch 'main' - // } - // steps { - // script { - // def changeLogSets = currentBuild.changeSets - // def foundChange = false - - // for (int i = 0; i < changeLogSets.size(); i++) { - // def entries = changeLogSets[i].items - // for (int j = 0; j < entries.length; j++) { - // def files = entries[j].affectedFiles - // for (int k = 0; k < files.size(); k++) { - // def file = files[k] - // if (file.path.startsWith('src/')) { - // foundChange = true - // break - // } - // } - // if (foundChange) { - // break - // } - // } - // if (foundChange) { - // break - // } - // } - - // if (!foundChange) { - // echo "No changes in the specified folder. Skipping build." - // currentBuild.result = 'SUCCESS' - // error("No changes in the specified folder.") - // } - // } - // } - // } stage('Code Quality Check via SonarQube') { @@ -61,21 +24,21 @@ pipeline { } } - stage('OWASP Dependency-Check Vulnerabilities') { - steps { - script { - dependencyCheck additionalArguments: '--scan src --format HTML --format XML', odcInstallation: 'OWASP Dependency-Check Vulnerabilities' - } - } - } + // stage('OWASP Dependency-Check Vulnerabilities') { + // steps { + // script { + // dependencyCheck additionalArguments: '--scan src --format HTML --format XML', odcInstallation: 'OWASP Dependency-Check Vulnerabilities' + // } + // } + // } - stage('Build') { - steps { - script { - sh 'composer install' - } - } - } + // stage('Build') { + // steps { + // script { + // sh 'composer install' + // } + // } + // } stage('PHPUnit Test') { steps {