Revert "Remove redutant vars/ folder"
This reverts commit a78108cfd53931236d3ee2b32c6e48d4d8eb5c88.
Change-Id: Ibc42fdc12b942b72cb0538cfcef6b933fdaec51a
diff --git a/vars/gerritPatchsetCheckout.txt b/vars/gerritPatchsetCheckout.txt
new file mode 100644
index 0000000..2372bf6
--- /dev/null
+++ b/vars/gerritPatchsetCheckout.txt
@@ -0,0 +1,22 @@
+// Usage example
+node {
+ gerritPatchsetCheckout{
+ credentialsId = "credentials-id-string"
+ }
+}
+
+// Usage example with merging to checkouted branch
+node {
+ gerritPatchsetCheckout{
+ credentialsId = "credentials-id-string"
+ withMerge = true
+ }
+}
+
+// wipe our repository and force clone
+node {
+ gerritPatchsetCheckout{
+ credentialsId = "credentials-id-string"
+ withWipeOut = true
+ }
+}