diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-18 18:29:20 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-05-18 18:34:35 +0300 |
commit | dbe0839396f56e30780350e840a1ded303dfbb81 (patch) | |
tree | e6305356f5ee4e2d164ed83cf3bc19901be7a28e /spec/models | |
parent | ff944005c30e6f7fc71fd1dc7393ae178b33584e (diff) |
Fixes deploy tokens build variables
It was using name, instead of username. Fixes documentation as well
Closes #46454
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 7d8bddbcedb..af5f5047803 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -2084,7 +2084,7 @@ describe Ci::Build do let(:deploy_token_variables) do [ - { key: 'CI_DEPLOY_USER', value: deploy_token.name, public: true }, + { key: 'CI_DEPLOY_USER', value: deploy_token.username, public: true }, { key: 'CI_DEPLOY_PASSWORD', value: deploy_token.token, public: false } ] end |