-
Improvement
-
Resolution: Won't Fix
-
Major
-
None
See https://github.com/jenkins-infra/jenkins.io/pull/611
Basically, it was a design decision to not allow any form of thing.method() in Declarative. This was needed to support validation.
It is possible to circumvent this in several ways and there are bugs that might address this, but it is a hard problem.
- relates to
-
JENKINS-41335 Allow variables and functions to be defined within pipeline to be used in any stage
-
- Closed
-
-
JENKINS-37011 Provide a way to write full-fledged Steps in CPS-transformed Groovy
-
- Resolved
-
- links to
[JENKINS-42360] Globals not accessible in Declarative Pipeline outside script directive
Summary | Original: Globals not accessible in Declarative Pipeline. | New: Globals not accessible in Declarative Pipeline outside script directive |
Description |
New:
See https://github.com/jenkins-infra/jenkins.io/pull/611 I need go back over this to see what the actually behavior is. |
Remote Link | New: This issue links to "PR 611 (Web Link)" [ 15497 ] |
Link | New: This issue relates to WEBSITE-321 [ WEBSITE-321 ] |
Description |
Original:
See https://github.com/jenkins-infra/jenkins.io/pull/611 I need go back over this to see what the actually behavior is. |
New:
See https://github.com/jenkins-infra/jenkins.io/pull/611 I need go back over this to see what the actually behavior is. Steps from shared libraries work, but Globals (defined using class) are not. Not sure about what happens without a class. |
Link |
New:
This issue relates to |
Description |
Original:
See https://github.com/jenkins-infra/jenkins.io/pull/611 I need go back over this to see what the actually behavior is. Steps from shared libraries work, but Globals (defined using class) are not. Not sure about what happens without a class. |
New:
See https://github.com/jenkins-infra/jenkins.io/pull/611 Basically, it was a design decision to not allow any form of {{thing.method()}} in Declarative. It is possible to circumvent this in several ways, and there are bugs that might address this. |
Description |
Original:
See https://github.com/jenkins-infra/jenkins.io/pull/611 Basically, it was a design decision to not allow any form of {{thing.method()}} in Declarative. It is possible to circumvent this in several ways, and there are bugs that might address this. |
New:
See https://github.com/jenkins-infra/jenkins.io/pull/611 Basically, it was a design decision to not allow any form of {{thing.method()}} in Declarative. This was needed to support validation. It is possible to circumvent this in several ways and there are bugs that might address this, but it is a hard problem. |
Note that globals are usable within script blocks.