[JIRA] (JENKINS-37134) Add @NonCPS to Jenkinsfile GDSL

8 views
Skip to first unread message

dcsobral@gmail.com (JIRA)

unread,
Aug 2, 2016, 6:55:01 PM8/2/16
to jenkinsc...@googlegroups.com
Daniel Sobral created an issue
 
Jenkins / Improvement JENKINS-37134
Add @NonCPS to Jenkinsfile GDSL
Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: workflow-plugin
Created: 2016/Aug/02 10:54 PM
Environment: IntelliJ 2016.2, Pipeline plugin 2.2
Labels: workflow
Priority: Minor Minor
Reporter: Daniel Sobral

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 1:11:01 PM8/29/16
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
Component/s: workflow-cps-plugin
Component/s: pipeline

jglick@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 1:11:01 PM8/29/16
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
Labels: workflow

bamapookie@gmail.com (JIRA)

unread,
Nov 13, 2019, 10:12:02 AM11/13/19
to jenkinsc...@googlegroups.com
Shawn Kovalchick commented on Improvement JENKINS-37134
 
Re: Add @NonCPS to Jenkinsfile GDSL

Are there any workarounds for this issue?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

aleksi.simell@eficode.com (JIRA)

unread,
Jan 10, 2020, 1:18:05 AM1/10/20
to jenkinsc...@googlegroups.com

Shawn Kovalchick 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.

Reply all
Reply to author
Forward
0 new messages