【发布时间】:2016-11-09 08:05:42
【问题描述】:
我有以下(简体)gitlab-ci.yml:
variables:
APP_NAME: "hello-gitlab-ci"
deploy:
stage: deploy
script: some-script
environment:
name: staging
url: http://hostname/$APP_NAME/$CI_BUILD_REF_NAME
Gitlab UI 中生成的 url 例如:http://hostname//master。 $APP_NAME 似乎解析为空字符串,而 runner 变量 $CI_BUILD_REF_NAME 正确解析。
GitLab 社区版 8.13.0,gitlab-runner 1.7.1。 我错过了什么?
【问题讨论】:
标签: gitlab gitlab-ci gitlab-ci-runner