Kenneth Baltrinic edited a comment on New Feature JENKINS-18349

Perhaps I don't understand the terms clearly either so I will attempt to be a descriptive as possible. First this is with Jenkins v 1.592 which has the Hudson Groovy Builder 1.24 installed and all of the Workflow 1.0 plugins installed. In its earlier version Hudson Groovy Builder appears to have also been called the "Groovy Plugin."

With this combination of components, @Grab works when using the "Execute Groovy script" option within a free-style job (this is what I meant above the "Groovy Plugin" and "Groovy build step".) To my knowledge this is the only place that it works.

The locations I specifically have tried and confirmed not to work are:

  1. In the Groovy Console: Jenkins > Manage Jenkins > Script Console
  2. In workflow jobs, in the Workflow Definition when using Groovy CPS DSL.
  3. A coworker of mine on a slightly older build (1.552) also reports that he gets the same error when attempting to use @Grab with the Build Flow Plugin (v 0.10).

I have not contacted the reporter but am presuming this to be the same issue because I am getting the same error in what I presumed to be the same location (i.e. I interpret his reference to the "Groovy Script console" to be the same location as I referenced in #1 above.) I am not clear on what his original reference to "System Groovy Scripts" refers to but it seems to yet a forth location where @grab does not work.

As to whether or not this is a single issue with a common root cause and solution or multiple issues that will each need their own resolution, I will defer to more knowledgable heads. However there already are several other tickets open about adding @Grab support to various plugins, etc: JENKINS-15512, JENKINS-16361, JENKINS-18400, JENKINS-18484. We just seem to be missing one for the new workflow plugin.

I hope this helps.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to