Forked from arehmandev/Get Jenkins GDSL working with IntelliJ IDEA
Last active
September 12, 2020 22:00
-
-
Save btamayo/571f5826f8d53616275c09079a444ac4 to your computer and use it in GitHub Desktop.
Get Jenkins GDSL working with IntelliJ IDEA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Setup a project | |
2. Add groovy SDK support: | |
https://www.bonusbits.com/wiki/HowTo:Add_Groovy_SDK_to_IntelliJ_IDEA | |
```shell | |
# 1. Install sdkman: https://sdkman.io/install | |
curl -s "https://get.sdkman.io" | bash | |
``` | |
```shell | |
sdk install groovy | |
``` | |
3. Download http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/gdsl | |
- this will give you the .gdsl file - download this to the src folder of your project. | |
4. Finally follow this step - right click on the src folder -> Mark directory as -> Sources Root | |
5. Now create a .groovy file and begin writing, the autocompletion will work. | |
references: | |
http://stackoverflow.com/questions/41062514/use-gdsl-file-in-a-java-project-in-intellij |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment