Skip to content

Commit

Permalink
ci: missing flatten()
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdibi committed Dec 5, 2024
1 parent db4324e commit c9a6731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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") }
Expand Down

0 comments on commit c9a6731

Please sign in to comment.