Skip to content

Commit

Permalink
Display warning message on missing build script mapping for identifie…
Browse files Browse the repository at this point in the history
…d impacted files (#401)

* Report warning when impacted file does not have a script mapping

Signed-off-by: Dennis Behm <[email protected]>
  • Loading branch information
dennis-behm authored Aug 16, 2023
1 parent b78b8a4 commit 1996c04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utilities/ImpactUtilities.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ def createImpactBuildList() {
// impactedFile found, but on Exclude List
// Possible reasons: Exclude of file was defined after building the collection.
// Rescan/Rebuild Collection to synchronize it with defined build scope.
if (props.verbose) println "!! $impactFile is impacted by changed file $changedFile, but is on Exlude List. Not added to build list."
if (props.verbose) println "*! $impactFile is impacted by changed file $changedFile, but is on Exlude List. Not added to build list."
}
} else {
String warningMsg = "*! $impactFile is impacted by changed file $changedFile, but is not added to build list, because it is not mapped to a language script."
buildUtils.updateBuildResult(warningMsg:warningMsg)
println(warningMsg)
}
}

Expand Down

0 comments on commit 1996c04

Please sign in to comment.