• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • IntelliJ 2016.2, Pipeline plugin 2.2

      The current IntelliJ IDEA GDSL provides no support for @NonCPS, so it gets highlighted as an error. Add support for it.

          [JENKINS-37134] Add @NonCPS to Jenkinsfile GDSL

          Are there any workarounds for this issue?

          Shawn Kovalchick added a comment - Are there any workarounds for this issue?

          Aleksi Simell added a comment -

          bamapookie Your comment is already a few months old, so maybe you have already figured this out. Still, posting a workaround if someone else is struggling with the same thing.

          I downloaded the .jar file from https://mvnrepository.com/artifact/com.cloudbees/groovy-cps/1.24 and then inside IntelliJ IDEA I added the .jar to my project's Global libraries (Project Structure --> Platform Settings --> Global Libraries). After that my IDE didn't complain about @NonCPS anymore.

          Aleksi Simell added a comment - bamapookie Your comment is already a few months old, so maybe you have already figured this out. Still, posting a workaround if someone else is struggling with the same thing. I downloaded the .jar file from https://mvnrepository.com/artifact/com.cloudbees/groovy-cps/1.24 and then inside IntelliJ IDEA I added the .jar to my project's Global libraries (Project Structure --> Platform Settings --> Global Libraries). After that my IDE didn't complain about @NonCPS anymore.

            jglick Jesse Glick
            dcsobral Daniel Sobral
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: