Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source set for GDSL #44

Open
mkobit opened this issue Jan 22, 2018 · 4 comments
Open

Add source set for GDSL #44

mkobit opened this issue Jan 22, 2018 · 4 comments

Comments

@mkobit
Copy link
Owner

mkobit commented Jan 22, 2018

No description provided.

@mkobit mkobit added this to the 0.5.0 milestone Jan 22, 2018
@mkobit mkobit modified the milestones: 0.5.0, 0.6.0 Mar 2, 2018
@mkobit
Copy link
Owner Author

mkobit commented Mar 2, 2018

need to also make an issue to add a demo/documentation for how to use it

@mkobit mkobit removed this from the 0.6.0 milestone Mar 28, 2018
@jimklimov
Copy link

FWIW, one can be added from one's $JENKINS_URL/pipeline-syntax/gdsl

I did not figure out why there are two different copies of the file in the example project in jenkinsResources/ and in resources/ which IDEA recognizes as a "resources root" and probably that is the one helping code-completion etc.

@hakanai
Copy link

hakanai commented Jun 14, 2023

I managed to get as far as IDEA recognising the file, but all the declared classes for all properties seem to be off by one.

e.g. in the gdsl served by Jenkins, it says that currentBuild is a RunWrapperBinder. IDEA then shows currentBuild.rawBuild as an unknown property. The actual type should be RunWrapper, which does have the rawBuild property. It seems you can call getValue on the binder object to get the actual object, but IDEA doesn’t do this. I have no idea whether IDEA is handling the file incorrectly or whether Jenkins is serving the file with the wrong types.

@jimklimov
Copy link

Well, IDEA's integration with Groovy generally is helpful, but with Jenkins effective dialects it struggles :)

I had posted a loosely related issue which so far got little traction: https://youtrack.jetbrains.com/issue/IDEA-320924/IDEA-does-not-handle-Groovy-call-class-methods-call-operator-for-context-help-and-auto-completion and one replier pointed to https://github.com/lppedd/idea-jenkins-pipeline - which might be a useful point to collaborate with regarding IDE support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants