diff --git a/Jenkinsfile b/Jenkinsfile index 3ea1e6054e..4d79ccb934 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ def onlyDocsChanged() { return false } - def changedFiles = currentBuild.changeSets.collect { it.items }.flatten().collect { it.affectedPaths } + def changedFiles = currentBuild.changeSets.collect { it.items }.flatten().collect { it.affectedPaths }.flatten() echo "Changed files: ${changedFiles}" // Debug return changedFiles.every { it.endsWith(".md") || it.endsWith(".txt") }