[JIRA] (JENKINS-38821) Global library class calling another global libraries static method fails
Title: Message Title Jesse Glick commented on JENKINS-38821 Re: Global library class calling another global libraries static method fails Well TBD if it works or not. Whether or not a fix is required, there needs to be an integration test for it. Anyway best discussed in the original issue. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-38821) Global library class calling another global libraries static method fails
Title: Message Title Mike Kobit commented on JENKINS-38821 Re: Global library class calling another global libraries static method fails Jesse Glick - haven't tried it but yet, but right now at least the source code has METHOD value for @Target Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-38821) Global library class calling another global libraries static method fails
Title: Message Title Jesse Glick resolved as Duplicate I am afraid constructors need to be marked @NonCPS. Jenkins / JENKINS-38821 Global library class calling another global libraries static method fails Change By: Jesse Glick Status: Open Resolved Resolution: Duplicate Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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 http
[JIRA] (JENKINS-38821) Global library class calling another global libraries static method fails
Title: Message Title Mike Kobit created an issue Jenkins / JENKINS-38821 Global library class calling another global libraries static method fails Issue Type: Bug Assignee: Unassigned Components: workflow-cps-global-lib-plugin, workflow-cps-plugin Created: 2016/Oct/07 2:38 PM Environment: Jenkins ver. 2.19 Pipeline: Shared Groovy Libraries - 2.4 Priority: Minor Reporter: Mike Kobit I ran into a strange issue with with a global library using the legacy way of the Git repository in the workflowLibs folder. When calling another class' static method in the Global library (in this fashion at least) caused the execution to fail. I was trying to write behavior similar to the Checks.checkArg(boolean argument) method. I think an example will help explain at least what I ran into. Code com.mkobit.MyClass package com.mkobit class MyClass implements Serializable { final String myVar MyClass(final String myVar) { this.myVar = Objects.requireNonNull(myVar) } MyClass(final boolean arg) { Checks.checkArg(arg) this.myVar = 'got through' } } com.mkobit.MyClassFactory package com.mkobit class MyClassFactory { static MyClass create() { new MyClass(null) } }