Fix order of arguments when running gerrit-release
Volumes and named arguments should be passed before the image name,
whilst the gerrit-release.sh arguments should be passed last.
Change-Id: I7fd7ec4f531f7aefd0bd7b2f7c9508fa71b3fdff
diff --git a/jenkins-docker/agent-release/Makefile b/jenkins-docker/agent-release/Makefile
index 96bd571..872cdb5 100644
--- a/jenkins-docker/agent-release/Makefile
+++ b/jenkins-docker/agent-release/Makefile
@@ -30,13 +30,14 @@
######################################################
run:
- docker run --rm -it --name ${CONTAINER} ${IMAGE} ${BRANCH} ${RELEASE} ${SNAPSHOT} \
+ docker run --rm -it --name ${CONTAINER} \
-u jenkins \
-v `pwd`/.gerritcodereview:/home/jenkins/.gerritcodereview \
-v ${HOME}/.m2:/home/jenkins/.m2 \
-v ${GNUPG}:/home/jenkins/.gnupg \
-v ${GIT_CONFIG}:/home/jenkins/.gitconfig.template \
- -v ${GIT_COOKIES}:/home/jenkins/.gitcookies
+ -v ${GIT_COOKIES}:/home/jenkins/.gitcookies \
+ ${IMAGE} ${BRANCH} ${RELEASE} ${SNAPSHOT}
pull:
-docker pull gerritforge/gerrit-ci-agent-bazel:debian-bullseye-nocache-latest