How to define the environment variable in environments url

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Hi, I'm go glad Gitlab is so powerful, but I have problems when using the CI tool.

Here's my .gitlab-ci.yaml

stages:
  - test

test:
  stage: test
  environment:
    name: test
    url: https://word.mymusise.com/env_test.txt
  script: echo "Running tests TEST=$TEST"

And I've define the test environment in EnvDocker > Pipelines > Environments

But it didn't export the environment from https://word.mymusise.com/env_test.txt in the CI job.

Running with gitlab-runner 11.4.2 (cf91d5e1)
  on gitlab-ci runner a0e18516
Using Docker executor with image ubuntu:16.04 ...
Pulling docker image ubuntu:16.04 ...
Using docker image sha256:2a697363a8709093834e852b26bedb1d85b316c613120720fea9524f0e98e4a2 for ubuntu:16.04 ...
Running on runner-a0e18516-project-123-concurrent-0 via gitlab...
Fetching changes...
HEAD is now at d12c05b Update .gitlab-ci.yml
From https://gitlab.kingdomai.com/mymusise/envdocker
   d12c05b..1a3954f  master     -> origin/master
Checking out 1a3954f8 as master...
Skipping Git submodules setup
$ echo "Running tests TEST=$TEST"
Running tests TEST=
Job succeeded

I define export TEST="test" in https://word.mymusise.com/env_test.txt, but it seems not working.

What should I do... Orz

Gitlab version: 11.4.0-ee

Edited Oct 01, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading