Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
OWASP Dependency Check Plugin is commented out as the dependency check took too long. See here: jeremylong/DependencyCheck#6747

Check changes has been removed as it is not required
  • Loading branch information
Krackern committed Jun 29, 2024
1 parent 58c77c2 commit ee34737
Showing 1 changed file with 14 additions and 51 deletions.
65 changes: 14 additions & 51 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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 {
Expand Down

0 comments on commit ee34737

Please sign in to comment.