How to add Pipeline DSL support to Intellij
How to add Pipeline DSL support to Intellij
Purpose
Add Pipeline DSL support to Intellij
Prerequisites
- Intellij is installed
- Existing Jenkins-Pipeline job
Install Groovy SDK
- Download desired groovy-sdk version from this site
- Extract archive to your preferred location
Add Groovy framework support
- Create new groovy project
-
Right-click on project root and choose ‘Add Framework Support’
-
Check ‘Groovy’ and create a new library from downloaded sdk
- Click ‘OK’
Add Pipeline DSL Support
- Create a temp Jenkins Pipeline job or use an existing one to browse the following link pattern: http://[JENKINS_HOST]/job/[JOB_NAME]/pipeline-syntax/gdsl.
- Copy the entire body text to a newly created file (pipeline.gdsl) under
src
folder in your groovy project. - Create new Groovy script and start coding your JenkinsFile. Auto-completion should popup automatically.
Repeat steps 1-2 in case Jenkins’ installed plugins, the ones that supports Pipeline DSL, get updated.
Thank you for your interest!
We will contact you as soon as possible.
We will contact you as soon as possible.