如果希望 IDEA 将 Jenkinsfile 识别为 Groovy 文件,则可以将 Jenkinsfile 添加为 Groovy 文件的有效文件名模式(通常包含文件结尾),不需要任何其他插件。

Intellij IDEA 全局设置 > File Types > Groovy

新增 Jenkinsfile 即可

Intellij IDEA 支持 Jenkinsfile 语法高亮

相关文章: