Skip to content

Commit

Permalink
Do not save a GString as Keyword.value (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Jan 5, 2023
1 parent 399db8a commit b62af94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import org.jenkinsci.plugins.workflow.cps.CpsFlowExecution
// populate namespace with keywords from pipeline config
LinkedHashMap aggregatedConfig = config.getConfig()
aggregatedConfig[KEY].each{ key, value ->
Keyword keyword = new Keyword(name: key, value: value)
Keyword keyword = new Keyword(name: key, value: (value instanceof GString ? value.toString() : value))
keyword.setParent(keywords)
keywords.add(keyword)
}
Expand Down

0 comments on commit b62af94

Please sign in to comment.