Skip to content

Commit

Permalink
Update README.md (#596)
Browse files Browse the repository at this point in the history
The resource index is mandatory to access the resource properties, even if only one resource was locked.
  • Loading branch information
JeffLi01 authored Dec 21, 2023
1 parent 5b5b353 commit b7a1b4e
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 @@ -117,7 +117,7 @@ lock(resource: 'staging-server', inversePrecedence: true) {
```groovy
lock(label: 'some_resource', variable: 'LOCKED_RESOURCE') {
echo env.LOCKED_RESOURCE
echo env.LOCKED_RESOURCE_PROP_ABC
echo env.LOCKED_RESOURCE0_PROP_ABC
}
```

Expand Down

0 comments on commit b7a1b4e

Please sign in to comment.