Skip to content

Commit

Permalink
README: Offer Correct Example for expandAll
Browse files Browse the repository at this point in the history
"node" is a constant string here hence
should come before the macro value
  • Loading branch information
rwp0 authored and slide committed Nov 10, 2023
1 parent fdc7d5d commit 57b938f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ variables](http://ci.jenkins-ci.org/env-vars.html) using `TokenMacro.expandAll`.
```java
String template = "My revision is ${SUBVERSION_REVISION} at #${BUILD_NUMBER} and was executed on node ${NODE_NAME}"
String text = TokenMacro.expandAll( build, listener, template );
System.out.println(text); // something like "My revision is 125 at #12 and was executed on controller node"
System.out.println(text); // something like "My revision is 125 at #12 and was executed on node Controller"
```

## Databinding Token Macro
Expand Down

0 comments on commit 57b938f

Please sign in to comment.