From aad87c569b8a3de467bf6504c06127822e2845aa Mon Sep 17 00:00:00 2001 From: Jon Hamm Date: Wed, 4 Jan 2023 21:41:19 -0500 Subject: [PATCH] add jenkinsfile to groovy files --- lib/functions/buildFileList.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 8eba8855..731ecb27 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -438,8 +438,10 @@ function BuildFileList() { ######################## # Get the GROOVY files # ######################## + # Use BASE_FILE here because FILE_TYPE is not reliable when there is no file extension elif [ "$FILE_TYPE" == "groovy" ] || [ "$FILE_TYPE" == "jenkinsfile" ] || - [ "$FILE_TYPE" == "gradle" ] || [ "$FILE_TYPE" == "nf" ]; then + [ "$FILE_TYPE" == "gradle" ] || [ "$FILE_TYPE" == "nf" ] || + [[ "$BASE_FILE" =~ .*jenkinsfile.* ]]; then ################################ # Append the file to the array # ################################