From b1ea0a9560518ec55208fa8e5df51a89ab8e27bf Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 16 Jun 2015 12:07:49 +0200 Subject: [PATCH] Add SOURCE_REPOSITORY_REF parameter --- openshift/templates/nodejs.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openshift/templates/nodejs.json b/openshift/templates/nodejs.json index 9973043..4626a1e 100644 --- a/openshift/templates/nodejs.json +++ b/openshift/templates/nodejs.json @@ -72,7 +72,8 @@ "source": { "type": "Git", "git": { - "uri": "${SOURCE_REPOSITORY_URL}" + "uri": "${SOURCE_REPOSITORY_URL}", + "ref": "${SOURCE_REPOSITORY_REF}" }, "contextDir": "${CONTEXT_DIR}" }, @@ -170,6 +171,10 @@ "description": "The URL of the repository with your application source code", "value": "https://github.com/openshift/nodejs-ex.git" }, + { + "name": "SOURCE_REPOSITORY_REF", + "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch" + }, { "name": "CONTEXT_DIR", "description": "Set this to the relative path to your project if it is not in the root of your repository"