| Denis Egorenko | ff32a4d | 2016-12-21 14:41:53 +0000 | [diff] [blame] | 1 | // Usage example |
| 2 | node { | ||||
| 3 | gerritPatchsetCheckout{ | ||||
| 4 | credentialsId = "credentials-id-string" | ||||
| 5 | } | ||||
| 6 | } | ||||
| 7 | |||||
| 8 | // Usage example with merging to checkouted branch | ||||
| 9 | node { | ||||
| 10 | gerritPatchsetCheckout{ | ||||
| 11 | credentialsId = "credentials-id-string" | ||||
| 12 | withMerge = true | ||||
| 13 | } | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | // wipe our repository and force clone | ||||
| 17 | node { | ||||
| 18 | gerritPatchsetCheckout{ | ||||
| 19 | credentialsId = "credentials-id-string" | ||||
| 20 | withWipeOut = true | ||||
| 21 | } | ||||
| 22 | } | ||||