[JIRA] (JENKINS-43821) Groovy AST Transformation class not called

2 views
Skip to first unread message

tavin.cole@gmail.com (JIRA)

unread,
Apr 18, 2020, 6:02:02 PM4/18/20
to jenkinsc...@googlegroups.com
Tavin Cole commented on Bug JENKINS-43821
 
Re: Groovy AST Transformation class not called

I made it work by writing a java class to implement ASTTransformation, and placing the compiled class file in the shared library src tree.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

tavin.cole@gmail.com (JIRA)

unread,
Apr 18, 2020, 6:25:02 PM4/18/20
to jenkinsc...@googlegroups.com
Tavin Cole edited a comment on Bug JENKINS-43821
I made it work by writing a java class to implement {{ASTTransformation,}} and placing the compiled class file in the shared library {{src}} tree.


It also works with a Groovy implementation, if the {{visit}} method is annotated {{@NonCPS}}. Without {{@NonCPS}} there is an error.

No doubt, Pipeline has changed a lot since this bug was filed.
Reply all
Reply to author
Forward
0 new messages