Commit Graph

631 Commits

Author SHA1 Message Date
Shinya Maeda e0c150da2f Merge from master(Fix conflicts) 2017-07-07 22:33:32 +09:00
Shinya Maeda 08fba1327f merge from master 2017-07-07 16:12:13 +09:00
Achilleas Pipinellis d633bf0afb Copyedit docs for group-level secret variables
[ci skip]
2017-07-07 15:35:12 +09:00
Shinya Maeda 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
Lin Jen-Shin d9435d6121 Backports for ee-2112
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2112
2017-07-06 16:25:03 +08:00
Kamil Trzciński 7f500acb5f Merge branch '33772-readonly-gitlab-ci-cache' into 'master'
Introduce cache policies for CI jobs

Closes #33772

See merge request !12483
2017-07-06 07:40:43 +00:00
Shinya Maeda 0d51f4f600 Revert unnecesary changes in doc/ci/variables/README.md 2017-07-06 01:21:19 +09:00
Nick Thomas 35f4a00f37 Introduce cache policies for CI jobs 2017-07-05 15:39:26 +01:00
Lin Jen-Shin 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
Shinya Maeda 324cfe0f9b Fix spec. Add PipelineScheduleVariable for import_export 2017-07-05 18:38:35 +09:00
Eric Eastwood 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
Shinya Maeda b6f41544d8 Fix spec. Add PipelineScheduleVariable for import_export 2017-07-05 18:36:19 +09:00
Eric Eastwood 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
Rémy Coutable b036d50ca1 Merge branch 'feature/no-hypen-at-end-of-commit-ref-slug' into 'master'
no trailing / leading hyphens in CI_COMMIT_REF_SLUG.

Closes #32035

See merge request !11218
2017-07-04 17:19:59 +00:00
Lin Jen-Shin d7c32c5870 Fix various descriptions given the feedback 2017-07-04 02:00:50 +08:00
Achilleas Pipinellis 469ea5eab4 Refactor and copyedit "Using Docker images" docs 2017-07-03 15:26:05 +02:00
Tomasz Maczukin da2f003ccf Update syntax description to new syntax introduced in !12536. 2017-07-03 15:24:23 +02:00
Tomasz Maczukin 512254ef7a Add documentation for extended docker configuration options for CI 2017-07-03 15:24:23 +02:00
Lin Jen-Shin 057c3c4e31 Introduce CI_CONFIG_PATH 2017-06-30 16:14:48 +08:00
Sean 339313270a Update README.md to reflect where "Secret variables" are located 2017-06-28 22:47:52 +00:00
Rémy Coutable 1371dfcb25 Merge branch 'docs-examples-deployment-composer-npm' into 'master'
Change composer update to install to follow PHP/composer best practice

See merge request !12400
2017-06-26 14:22:12 +00:00
bikebilly f9be772aa7 Replace 'Settings ➔ CI/CD Pipelines' with 'Settings ➔ Pipelines' in docs 2017-06-23 22:59:35 +02:00
Gabriele 812899d166 Change composer update to install to follow PHP/composer best practice
[ci skip]
2017-06-22 21:37:01 +00:00
Stefan Hanreich f4c05e0380 no trailing / leading hyphens in CI_COMMIT_REF_SLUG. Fixes #32035 2017-06-18 23:57:22 +02:00
Joe Marty 543dc9478e Clarify job choosing algorithm examples (the language used was a bit hard to understand) 2017-06-15 19:53:44 +00:00
Rémy Coutable 75d425e4fc Merge branch 'docs-registry-hostname-part-of-service-hostname' into 'master'
Service hostname also include registry name, when using non Docker Hub registry.

See merge request !11729
2017-06-15 16:37:51 +00:00
Sean Packham f469a46868 Merge branch 'docs/codeclimate-fix-link' into 'master'
Fix wrong link to codeclimate diff docs

See merge request !12158
2017-06-14 08:25:40 +00:00
Achilleas Pipinellis 8fb33b8f01 Add docs for personal access tokens 2017-06-14 08:40:21 +02:00
Achilleas Pipinellis 4052342029 Fix wrong link to codeclimate diff docs 2017-06-14 08:22:47 +02:00
Matej Zerovnik af156c6081 Language typos fixed 2017-06-12 21:36:08 +02:00
Sean Packham b4972c4b23 Merge branch 'docs/shared-runners' into 'master'
Refactor Runners docs

Closes #18882

See merge request !11948
2017-06-08 15:08:42 +00:00
Achilleas Pipinellis 268d9f8f04 Refactor CI triggers docs 2017-06-08 13:56:19 +02:00
Filip Krakowski ecb54cddd1 Add all sources as special keywords for only and except 2017-06-08 00:34:58 +09:00
Filip Krakowski 8db63b2628 Use pipeline.source to determine what triggered a pipeline 2017-06-08 00:34:58 +09:00
Filip Krakowski 6c8e72b410 Add 'schedules' keyword to 'only' and 'except' 2017-06-08 00:34:58 +09:00
Achilleas Pipinellis e717c7358a Refactor Runners docs
- Update overall documentation
- Update images
- Add information about fair usage
2017-06-07 17:01:30 +02:00
Achilleas Pipinellis 8e4c6a0e54 Add more info on private Registry docs 2017-06-06 18:19:02 +02:00
Sean Packham 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
Grzegorz Bizon 35083dc9e7 Merge branch 'fix_explanation_of_job_level_variable_override' into 'master'
Update explanation of job-level variable override to fit example

See merge request !11923
2017-06-06 13:47:23 +00:00
John Spaetzel 1d0219a526 Add PowerShell to CI variable docs 2017-06-06 15:02:03 +02:00
Achilleas Pipinellis 59bd1d2cea Merge branch 'dz-backport-codeclimate-docs' into 'master'
Backport CI codeclimate example doc change from EE

See merge request !11903
2017-06-06 08:50:44 +00:00
Tor Bechmann Yamamoto-Sørensen c4878a762f Update explanation of job-level variable override to fit example 2017-06-06 16:59:53 +09:00
Dmitriy Zaporozhets 30f4f6b1fb
Fix link to ee code quality doc
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-06-05 14:10:25 +03:00
Kamil Trzciński 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
Kamil Trzciński 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
Dmitriy Zaporozhets 144f0e0d12
Backport CI codeclimate example doc change from EE
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-06-05 06:26:34 +03:00
Sébastien 846b478d3c Resolve "Documentation of `.gitlab-ci.yml` states incorrect example for variables" 2017-06-04 06:14:42 +00:00
vanadium23 3f80281d9c Add slugify project path to CI enviroment variables 2017-06-03 10:36:41 +03:00
Lin Jen-Shin 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
Lin Jen-Shin 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