Add refspec to docker-publish job
Change-Id: Ie6cff3d4e5b042416582337e9216a2eb4e8d0c9b
diff --git a/jjb/templates/docker-publish.yaml b/jjb/templates/docker-publish.yaml
index 1f67833..6d143f9 100644
--- a/jjb/templates/docker-publish.yaml
+++ b/jjb/templates/docker-publish.yaml
@@ -42,6 +42,11 @@
description: 'git ref to build (commit hash or tag)'
- string:
+ name: gitRefSpec
+ default: '$GERRIT_REFSPEC'
+ description: 'git refSpec to build (refs/changes/)'
+
+ - string:
name: projectName
default: '$GERRIT_PROJECT'
description: 'Name of the project in Gerrit'
diff --git a/jjb/templates/private-docker-publish.yaml b/jjb/templates/private-docker-publish.yaml
index edbba0d..54daf07 100644
--- a/jjb/templates/private-docker-publish.yaml
+++ b/jjb/templates/private-docker-publish.yaml
@@ -66,6 +66,11 @@
description: 'git ref to build (commit hash or tag)'
- string:
+ name: gitRefSpec
+ default: '$GERRIT_REFSPEC'
+ description: 'git refSpec to build (refs/changes/)'
+
+ - string:
name: projectName
default: '$GERRIT_PROJECT'
description: 'Name of the project in Gerrit'