forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonic-utilities] Enclose conditional statements in a 'script' block (s…
…onic-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 ^ ```
- Loading branch information
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters