IntelliJ & pipeline.gdsl broken

31 views
Skip to first unread message

Charles Moulliard

unread,
Jan 12, 2021, 4:35:49 PM1/12/21
to jenkins...@googlegroups.com
Hi,

It seems that the pipeline.gdsl does not work anymore using a pipeline groovy project under IntelliJ.

The following syntax
def pipelinesPath = /.*\/resources\/.*groovy/

def ctx = context(scope: scriptScope(), pathRegexp: pipelinesPath)
contributor(ctx) {
    method(name: 'parallel', type: 'Object', params: ['closures':'java.util.Map'], doc: 'Execute in parallel')
...

does not allow to use auto completion within the a pipeline groovy file

@Library('snowdrop-lib@0.2') _
import org.jenkinsci.plugins.workflow.libs.Library

def AGENT_LABEL = null

node('master') {
    stage('Determine platform and set agent'){


A few tags/DSL are highlighted but if we click on it, we cannot access the class or do autocompletion. This is really bad.

Cheers

Charles Moulliard

Software Engineer Manager - Spring

Red Hat

Rue de Franchimont 52A, Florennes, Belgium

cmoul...@redhat.com    
M: +32473604014    

Reply all
Reply to author
Forward
0 new messages