From 1efd647d372546b170771b59aaf9d6dce03ef19b Mon Sep 17 00:00:00 2001 From: Jonatan Ivanov Date: Mon, 24 Aug 2020 21:36:11 -0700 Subject: [PATCH] Adding support for .jenkinsfile extension and Jenkinsfile.* filename pattern So that it will be consistent with the support of Dockerfile. The file is using tabs AND spaces for indentation, this commit follows the formatting rules defined in .editorconfig (2 spaces). --- extensions/groovy/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/groovy/package.json b/extensions/groovy/package.json index 55da6a97fc8..ab2ef0da7ba 100644 --- a/extensions/groovy/package.json +++ b/extensions/groovy/package.json @@ -13,8 +13,8 @@ "languages": [{ "id": "groovy", "aliases": ["Groovy", "groovy"], - "extensions": [".groovy", ".gvy", ".gradle"], - "filenames": [ "Jenkinsfile" ], + "extensions": [".groovy", ".gvy", ".gradle", ".jenkinsfile"], + "filenamePatterns": ["Jenkinsfile.*"], "firstLine": "^#!.*\\bgroovy\\b", "configuration": "./language-configuration.json" }],