Jenkinsfile開發語言 -- Groovy
http://www.groovy-lang.org/
A multi-faceted language for the Java platform
Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java program, and immediately delivers to your application powerful features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.
開發環境
http://groovy-lang.org/ides.html
IDE integration
The Groovy language is supported by lots of IDEs and text editors.
Editor | Support level | Syntax highlighting | Code completion | Refactoring |
---|---|---|---|---|
Yes |
No |
No |
||
Yes |
Yes |
Yes |
||
Yes |
Yes |
Yes |
||
Yes |
Yes |
Yes |
||
Yes |
Yes |
Yes |
||
Yes |
No |
No |
||
Yes |
No |
No |
||
Yes |
No |
No |
https://www.jianshu.com/p/777cc61a6202
Step6:使用IntelliJ IDEA編輯Groovy##
自帶的編輯器畢竟太挫了,IntelliJ IDEA可以支持寫Groovy,不需要安裝任何東西。
新建一個Project,選擇Groovy,注意要選擇Project SDK和Groovy library。

項目名就叫HelloGroovy吧。

右鍵src新建一個Groovy文件,選擇Groovy Script。

文件名也叫HelloGroovy好了。

還是輸入<code>pritnln "Hello Groovy"</code>,CTRL + SHIFT + F10運行。