You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sonic-utilities] Enclose conditional statements in a 'script' block (sonic-net#189)
It appears that in declarative pipelines, conditional statements must be enclosed within `script` blocks, otherwise we will see errors like the following:
```
14:10:20 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
14:10:20 WorkflowScript: 14: Expected a step @ line 14, column 17.
14:10:20 if ('${ghprbTargetBranch}' == '201911') {
14:10:20 ^
```
0 commit comments