Commit Graph

82 Commits

Author SHA1 Message Date
896e5f5031 Merge branch '26692-predefined-variable-gitlab-user-name' into 'master'
Resolve "Predefined Variable GITLAB_USER_NAME"

Closes #26692

See merge request !13824
2017-08-31 10:03:07 +00:00
22d5cca8a7 Add a Build Variable to represent the triggering GitLab user's login username
* Predefined variable represents the username of the GitLab user that started a build
2017-08-30 11:25:30 +08:00
91cca6e494 Add a Build Variable to represent the triggering GitLab user's name
* Predefined variable represents the name of the GitLab user that started a build
2017-08-30 11:24:59 +08:00
a919188ccf Update README.md 2017-08-24 14:40:38 +00:00
a99b2d8e12 Expose CI_PIPELINE_SOURCE on CI jobs
It was missing and expected it wouldn't hurt anyone
2017-08-23 13:14:49 +02:00
e0c150da2f Merge from master(Fix conflicts) 2017-07-07 22:33:32 +09:00
08fba1327f merge from master 2017-07-07 16:12:13 +09:00
d633bf0afb Copyedit docs for group-level secret variables
[ci skip]
2017-07-07 15:35:12 +09:00
5b0954759c Basic BE change
Fix static-snalysis

Move the precedence of group secure variable before project secure variable. Allow project_id to be null.

Separate Ci::VariableProject and Ci::VariableGroup

Add the forgotton files

Add migration file to update type of ci_variables

Fix form_for fpr VariableProject

Fix test

Change the table structure according to the yorik advice

Add necessary migration files. Remove unnecessary migration spec.

Revert safe_model_attributes.yml

Fix models

Fix spec

Avoid self.variable. Use becomes for correct routing.

Use unique index on group_id and key

Add null: false for t.timestamps

Fix schema version

Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable

Rename the rest of them

Add the rest of files

Basic BE change

Fix static-snalysis

Move the precedence of group secure variable before project secure variable. Allow project_id to be null.

Separate Ci::VariableProject and Ci::VariableGroup

Add the forgotton files

Add migration file to update type of ci_variables

Fix form_for fpr VariableProject

Fix test

Change the table structure according to the yorik advice

Add necessary migration files. Remove unnecessary migration spec.

Revert safe_model_attributes.yml

Fix models

Fix spec

Avoid self.variable. Use becomes for correct routing.

Use unique index on group_id and key

Add null: false for t.timestamps

Fix schema version

Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable

Rename the rest of them

Add the rest of files

Implement CURD

Rename codes related to VariableGroup and VariableProject FE part

Remove unneccesary changes

Make Fe code up-to-date

Add protected flag to migration file

Protected group variables essential package

Update schema

Improve doc

Fix logic and spec for models

Fix logic and spec for controllers

 Fix logic and spec for views(pre feature)

Add feature spec

Fixed bugs. placeholder. reveal button. doc.

Add changelog

Remove unnecessary comment

godfat nice catches

Improve secret_variables_for arctecture

Fix spec

Fix StaticAnlysys & path_regex spec

Revert "Improve secret_variables_for arctecture"

This reverts commit c3216ca212322ecf6ca534cb12ce75811a4e77f1.

Use ayufan suggestion for secret_variables_for

Use find instead of find_by

Fix spec message for variable is invalid

Fix spec remove variable.group_id = group.id

godffat spec nitpicks

Use include Gitlab::Routing.url_helpers for presenter spec
2017-07-07 15:33:17 +09:00
d9435d6121 Backports for ee-2112
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2112
2017-07-06 16:25:03 +08:00
0d51f4f600 Revert unnecesary changes in doc/ci/variables/README.md 2017-07-06 01:21:19 +09:00
33a5157ad4 Merge remote-tracking branch 'upstream/master' into 32815--Add-Custom-CI-Config-Path
* upstream/master: (149 commits)
  Revert change to design. Go back to scrollable page
  Fixes the column widths for the new navigation options in settings
  Migrate #submodule_url_for to Gitaly
  Add test example for external commit status retries
  Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb
  Fix build for !12300.
  Log rescued exceptions to Sentry
  Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths
  Revert "Merge branch 'revert-12499' into 'master'"
  Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion
  Improve the overall UX for the new monitoring dashboard
  Document that GitLab 9.3 requires the TRIGGER permission on MySQL
  Instrument Unicorn with Ruby exporter
  Remove group modal like remove project modal. Closes #33130
  Update prometheus client gem
  Enables the option in user preferences to turn on the new navigation
  Add Jasmine tests for `OAuthRememberMe`
  Simplify authentication logic in the v4 users API for !12445.
  Use stub_application_setting when testing ApplicationHelper#support_url
  wait_for_requests is not needed when AJAX is not in play
  ...
2017-07-05 22:05:39 +08:00
324cfe0f9b Fix spec. Add PipelineScheduleVariable for import_export 2017-07-05 18:38:35 +09:00
2dba0cf0be Add docs for scheduled pipeline variables
See https://gitlab.com/gitlab-org/gitlab-ce/issues/32568
2017-07-05 18:38:32 +09:00
b6f41544d8 Fix spec. Add PipelineScheduleVariable for import_export 2017-07-05 18:36:19 +09:00
888ce89295 Add docs for scheduled pipeline variables
See https://gitlab.com/gitlab-org/gitlab-ce/issues/32568
2017-07-05 18:36:19 +09:00
d7c32c5870 Fix various descriptions given the feedback 2017-07-04 02:00:50 +08:00
057c3c4e31 Introduce CI_CONFIG_PATH 2017-06-30 16:14:48 +08:00
f4c05e0380 no trailing / leading hyphens in CI_COMMIT_REF_SLUG. Fixes #32035 2017-06-18 23:57:22 +02:00
268d9f8f04 Refactor CI triggers docs 2017-06-08 13:56:19 +02:00
de12e4e204 Merge branch 'docs/powershell-ci-vars' into 'master'
Add PowerShell to CI variable docs

See merge request !11935
2017-06-06 14:30:08 +00:00
1d0219a526 Add PowerShell to CI variable docs 2017-06-06 15:02:03 +02:00
c4878a762f Update explanation of job-level variable override to fit example 2017-06-06 16:59:53 +09:00
65581fad5e Merge branch '31061-26135-ci-project-slug-enviroment-variables' into 'master'
Add slugified project path to CI environment variables

Closes #31061

See merge request !11838
2017-06-05 10:25:35 +00:00
f71106425c Merge branch '25680-CI_ENVIRONMENT_URL' into 'master'
Add `$CI_ENVIRONMENT_URL` as a job variable

Closes #25680

See merge request !11695
2017-06-05 07:03:39 +00:00
846b478d3c Resolve "Documentation of .gitlab-ci.yml states incorrect example for variables" 2017-06-04 06:14:42 +00:00
3f80281d9c Add slugify project path to CI enviroment variables 2017-06-03 10:36:41 +03:00
b01bc0a036 Merge remote-tracking branch 'upstream/master' into 25680-CI_ENVIRONMENT_URL
* upstream/master: (39 commits)
  Resolve "Improve Container Registry description"
  Add username parameter to gravatar URL
  Fix replying to a commit discussion displayed in the context of an MR
  Add fog-aliyun as backup storage provider
  Add missing specs
  Make sure protected can't be null; Test protected!
  Update session cookie key name to be unique to instance in development
  Just mention which GitLab version is required
  Fix data inconsistency issue for old artifacts by moving them to a currently used path
  Fix N+1 queries for non-members in comment threads
  Fix rubocop in spec/helpers/diff_helper_spec.rb
  Merge two items into one in the doc
  Only remove FK if it exists
  Maintain notes avatar at smaller breakpoint
  Fix pipeline schedule value name in documentation
  Add test for Project#protected_for?
  Update diff discussion position per discussion instead of per note
  Display Shared Runner status in Admin Dashboard
  Make sure we're loading the fresh variables
  Now secret_variables_for would return the variables
  ...
2017-06-02 04:24:57 +08:00
0ab8c852db Just mention which GitLab version is required
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11688/diffs#note_31277454
2017-06-01 21:22:38 +08:00
fb70cf077c Merge two items into one in the doc 2017-06-01 16:43:07 +08:00
76e738fc0e Fix doc table of contents 2017-05-31 22:52:37 +08:00
c4dded593a Update docs and use protected secret variable as the name 2017-05-31 22:45:51 +08:00
9cc918a5ca Use be_truthy and add back missing link 2017-05-26 15:35:30 +08:00
88ba7a034b Pass external_url from environment if job doesn't have one
Also update the document and add a changelog entry
2017-05-25 23:08:11 +08:00
ef10f4c531 Add docs for protected variables 2017-05-25 20:29:12 +08:00
a4407e75d3 Merge branch 'dz-rename-pipelines-settings-tab' into 'master'
Rename CI/CD Pipelines to Pipelines in the project settings

Closes #31980

See merge request !11305
2017-05-22 14:17:48 +00:00
9189cffb93 Rename CI/CD Pipelines references to just Pipelines in docs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-05-11 22:21:14 +03:00
54abddf1e0 fix $CI_JOB_ID variable
introduced with rename variables commit: a084437b5c
2017-04-27 14:12:29 +00:00
f18e05b9a4 Remove wrong user email from CI variables example output
[ci skip]
2017-04-07 20:51:38 +02:00
2fa10f57c2 fix spelling CI_REPOSITORY_URL (line:355) gitab-ci-token to gitlab-ci-token. 2017-04-03 12:19:11 +00:00
422f015a5a Correct example value variable name.
CI_REPOSITORY_URL is the correct name.
2017-03-27 13:29:42 +00:00
98c4d8a0e1 Fix Slack link when on notify 2017-03-16 23:27:42 +00:00
3ebd29b538 Futher rename the CI variables 2017-03-16 08:49:01 +01:00
90d7b95ae1 Move example variables output to bottom
[ci skip]
2017-03-09 13:06:11 +01:00
91c2b4ce33 Cleanup CI variables table and add a deprecation note
[ci skip]
2017-03-09 10:19:37 +01:00
993a1edd4f Rename REF to SHA 2017-03-07 17:37:05 +01:00
9c25404ac0 Rename BUILD to JOB in CI Variables
Given GitLab moves away from using the term build, everywhere, also the
CI variables are being renamed.

For now, both `CI_BUILD_X` and `CI_JOB_X` are supported, with the same
values. However, in about 3 months, support will be dropped.
2017-03-07 15:41:13 +01:00
d13669c98b Remove remnants of git annex 2017-03-03 18:33:47 +01:00
c1b5795705 Add note about how to use or escape variables inside other variables 2017-02-28 23:49:28 +00:00
3d8c4c903c Fixed instructions for adding Secret Variables to a CI/CD pipeline. 2017-02-23 17:24:34 +00:00