-
Bug
-
Resolution: Fixed
-
Major
-
-
workflow-cps 2.71
User-visible bit: throws an error
Currently if you run a step with asynchronous execution (which is to say, almost all of them, since AbstractSynchronousNonBlockingStepExecution counts) inside a method marked @NonCPS, or otherwise not transformed (for example because of ), you get bizarre results: the return value of the step becomes the return value of the method, regardless of what was supposed to happen in the rest of the method. This is because CpsCallableInvocation is thrown from DSL.invokeMethod and interrupts the method's execution.JENKINS-26481
This is very confusing behavior. It would be better for CpsCallableInvocation.<init> to somehow detect that it is inside an untransformed method and throw a comprehensible error.
- causes
-
JENKINS-60552 Fail to call a script method stored as a class attribute/field
- Open
-
JENKINS-58501 Metaprogramming with InvokerHelper and MethodMissing triggers CPS MisMatch log
- Resolved
-
JENKINS-58620 expected to call CpsGroovyShell.evaluate but wound up catching <something>.run
- Closed
- is duplicated by
-
JENKINS-38317 Input step breaks out of global library
- Resolved
-
JENKINS-39042 CPS failures from calls in @NonCPS blocks fail silently and marks as success
- Resolved
-
JENKINS-42024 Silent error : UnsupportedOperationExceptions are not raised when using each/find
- Resolved
- is related to
-
JENKINS-26481 Mishandling of binary methods accepting Closure
- Resolved
-
JENKINS-32863 Sleep function causes premature exit of loop in some cases
- Resolved
- relates to
-
JENKINS-59667 CpsCallableInvocation.checkMismatch with @NonCPS method calling simple groovy getter (not any step)
- Open
-
JENKINS-58407 Fail to call a Closure stored as a class attribute/field
- Resolved
-
JENKINS-26313 Workflow script fails if CPS-transformed methods are called from constructors
- Resolved
-
JENKINS-27306 unclassified new org.codehaus.groovy.runtime.GStringImpl java.lang.String java.lang.String[]
- Resolved
-
JENKINS-38915 Document limitations of language coverage
- Open
- links to
- Wiki Page
-
Wiki Page Loading...