Skip to content

Commit b1ea0a9

Browse files
committed
Add SOURCE_REPOSITORY_REF parameter
1 parent 05fd380 commit b1ea0a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

openshift/templates/nodejs.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"source": {
7373
"type": "Git",
7474
"git": {
75-
"uri": "${SOURCE_REPOSITORY_URL}"
75+
"uri": "${SOURCE_REPOSITORY_URL}",
76+
"ref": "${SOURCE_REPOSITORY_REF}"
7677
},
7778
"contextDir": "${CONTEXT_DIR}"
7879
},
@@ -170,6 +171,10 @@
170171
"description": "The URL of the repository with your application source code",
171172
"value": "https://github.com/openshift/nodejs-ex.git"
172173
},
174+
{
175+
"name": "SOURCE_REPOSITORY_REF",
176+
"description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch"
177+
},
173178
{
174179
"name": "CONTEXT_DIR",
175180
"description": "Set this to the relative path to your project if it is not in the root of your repository"

0 commit comments

Comments
 (0)