I have a pipeline that uses the when condition with changeset to decide specific actions. However for first builds the when condition always evaluates to false because the changelog is empty. I get this warning in the console:
Warning, empty changelog. Have you run checkout?
Is there a way to use declarative syntax to check if the changelog is empty? Something like:
stage {
when {
changelog ''
}
steps {
do stuff here
}
}