Commit Graph

222 Commits

Author SHA1 Message Date
Nicolas Borderes 0ef06e146d Removing 'Premium' label in block title
Added when it has been moved to core
2019-09-04 05:44:18 +00:00
Evan Read b4a0e14cb7 Clarify when new values are valid 2019-08-20 17:55:33 +00:00
Achilleas Pipinellis f33a7530e8 Merge branch 'docs-civariables-mr' into 'master'
Docs: CI predefined variables: push request -> MR

See merge request gitlab-org/gitlab-ce!31711
2019-08-12 10:34:17 +00:00
Stefan Schmalzhaf c19b32e6a3 CI predefined variables: push request -> MR 2019-08-12 09:31:21 +00:00
Hordur Freyr Yngvason 5f82ff1469 Bring scoped environment variables to core
As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
2019-08-08 18:51:52 +00:00
Achilleas Pipinellis 95145f3e3e Compress images with pngquant 2019-08-07 10:01:48 +00:00
Grzegorz Bizon 9e421d6d4e Merge branch 'mc/feature/add-at-colon-variable-masking' into 'master'
Allow masking @ and : characters

Closes #63043

See merge request gitlab-org/gitlab-ce!31065
2019-08-07 09:42:35 +00:00
Marcel Amirault 61e1a14925 Expand markdown linting rules for docs
MD002 - First header should be level 1
MD006 - Start bullets at beginning of line
MD019 - No multiple spaces after header style
MD022 - Headers surrounded by blank lines
MD025 - Only 1 level 1 header
MD028 - No blank lines within blockquote
MD038 - Spaces inside code span elements
2019-08-05 02:13:46 +00:00
Vlad Stoianovici cb76850037 Portray better use of types of variables in .gitlab-ci.yml 2019-08-01 11:29:44 +00:00
Matija Čupić 136865713b
Document new masking requirements 2019-07-23 21:22:26 +02:00
Balasankar "Balu" C 4ef831ae80
Add docs about CI_SERVER_HOST env variable
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2019-07-10 20:30:11 +05:30
Marcel Amirault 73c6477b7e Changing badges to use parentheses not brackets
Previously, we used brackets to denote the tier badges,
but this made Kramdown, the docs site Markdown renderer,
show many warnings when building the site. This is now
fixed by using parentheses instead of square brackets.

This was caused by [PREMIUM] looking like a link to
Kramdown, which couldn't find a URL there.

See:
- https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/484
- https://gitlab.com/gitlab-org/gitlab-ce/issues/63800
2019-07-08 08:50:38 +00:00
Marcel Amirault 1464b1e000 Fix markdown to reduce number of kramdown warnings
Add backticks around square brackets, or fix links, as necessary.
2019-07-03 07:12:04 +00:00
Evan Read e128239340 Add Markdown linting
Also adds and one linting rule
and makes project conform to it.
2019-06-25 04:34:55 +00:00
Blair Lunceford 18c155012e Updated explanation of CI_COMMIT_BEFORE_SHA variable 2019-06-25 01:19:10 +00:00
Evan Read 9ef27250a0 Refactor and add version text to variable syntax 2019-06-24 08:26:39 +00:00
Marcia Ramos be2bd97752 Docs: link to predefined env variables reference more evident 2019-06-24 01:20:29 +00:00
Evan Read a5cc5f6e96 Edit after script context text 2019-06-16 21:21:06 +00:00
Tomasz Maczukin f4b5f930ff
Leave clear notices about after_script execution context
We frequently see new issues mentioning that something defined
in `before_script` or `script` doesn't work with `after_script`.

Our documentation mentions that first two are concatenated and
executed together, why the third one is executed in a separated
shell context. But it looks like it's not clear enough.

Since this misunderstanding of how scripts are being executed
is repeated frequently, let's make it more clear in docs.
2019-06-12 08:44:17 +02:00
Matija Čupić 432d24ac9a
Expose javascript regex 2019-06-06 15:46:45 +01:00
Thomas Nilsson ff3486a92b
Allow masking if 8 or more characters in base64
This should allow for private ssh-keys to remain private.

Solves https://gitlab.com/gitlab-org/gitlab-ce/issues/60790.
2019-06-06 15:46:45 +01:00
Kamil Trzciński 502cbda11b Merge branch 'ci-variable-expression-con-dis-junction' into 'master'
CI variable expression conjunction/disjunction

See merge request gitlab-org/gitlab-ce!27925
2019-06-06 08:34:57 +00:00
Mike Greiling 42b7503820 Merge branch '11204-turn-off-mask-by-default' into 'master'
Default masked to false for new variables

Closes gitlab-ee#11204

See merge request gitlab-org/gitlab-ce!28186
2019-06-05 17:40:36 +00:00
Marcia Ramos d5995d692c Delete proposed paragraph
TBA to a different MR/issue
2019-06-05 10:08:30 +00:00
drew cimino cfaac75322 && and || operators for CI Pipeline expressions.
Refactored regex pattern matching to eagerly return tokens

Packaged behind a default-enabled feature flag and added operator documentation.
2019-06-04 19:03:24 -05:00
mfluharty 598fa4cdd8
Default masked to false for new variables
Set the default value to false
Adjust tests to expect false as the default
Update documentation to make new default clear
2019-06-04 14:09:01 +01:00
Krasimir Angelov 0ea562cb4d Docs: Clarify allowed characters in masked variables 2019-05-29 23:09:44 +00:00
Phy d03538d0ce Correct CI_API_V4_URL CI variable name 2019-05-28 23:36:50 +00:00
Krasimir Angelov d69cb65830 Add CI variable types usage example
Update documentation with example how to use CI variable types.

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
2019-05-21 16:31:24 +00:00
Marcel Amirault 339d0a5b92 Docs: Merge EE doc/ci to CE 2019-05-05 15:06:37 +00:00
Krasimir Angelov ed68da34ab Update docs related to CI variables
Add `Variable Types` section to explain supported variable types and
update example and related screenshots.
2019-05-03 13:18:38 +00:00
Steve Azzopardi 7bb8286562 Clarify masked variables docs
- Add note that must contain only letters, numbers, underscore
- Add example of escape characters
- Add regex used for validation

closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60785
2019-04-28 22:55:04 +00:00
Peter Leitzen cc311799c9 Fix reference-style links in CI predefined vars 2019-04-26 13:36:23 +00:00
Grzegorz Bizon 7734b834fb Merge branch 'add-ci-variable-protected-ref' into 'master'
Add CI variable CI_REF_PROTECTED

See merge request gitlab-org/gitlab-ce!26716
2019-04-24 14:57:11 +00:00
Kamil Trzciński 8fa1ab4c33 Support negative matches
This adds support for != and !~ operators
giving more flexibility in comparing values
2019-04-23 14:19:06 +02:00
Achilleas Pipinellis b963c5f526 Make it clearer when CI_MERGE_REQUEST_ variables are available 2019-04-23 11:03:19 +00:00
Marcia Ramos 4a51cc54de Docs: fixes grammar/typo 2019-04-22 10:03:43 +00:00
mfluharty 05e367900d
Add Masked Variables to Variables docs 2019-04-10 13:21:49 -06:00
Jason van den Hurk 8d1649f774 Change CI_REF_PROTECTED variable to CI_COMMIT_REF_PROTECTED 2019-04-10 12:56:56 +02:00
Jason van den Hurk cd0eaccbfe Change release version of CI_REF_PROTECTED to 11.11 2019-04-10 11:13:04 +02:00
Jason van den Hurk 22cd71a663 Added documentation for CI_REF_PROTECTED ci variable 2019-04-10 11:13:04 +02:00
Rémy Coutable 98a48b41b9
Change mode to 644 for doc/ci/variables/img/
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-09 17:25:46 +02:00
Marcel Amirault a4a7344515 Docs: Update predefined_variables.md to fix anchor 2019-04-09 03:01:30 +00:00
Marcel Amirault 2040649bba Docs: Fix anchors related to variables doc 2019-04-08 12:32:38 +00:00
Kamil Trzciński 1d4fa0e9b5 Add documentation for new big-repos features
This adds documentation for:

- `CI_BUILDS_DIR`,
- `CI_CONCURRENT_ID`,
- `CI_CONCURRENT_PROJECT_ID`,
- `GIT_CLONE_PATH`,
- `GIT_CLEAN_FLAGS`
2019-04-05 10:24:27 +02:00
Evan Read adec205afd Work around lack of HTML list support in topic 2019-04-04 10:22:13 +00:00
Grzegorz Bizon aeeba4be36 Merge branch '54621_missing_example' into 'master'
Add missing 'export' example for CI_API_V4_API_URL

See merge request gitlab-org/gitlab-ce!26878
2019-04-03 08:57:59 +00:00
Olliver Schinagl 3a9e3aa9ef Add missing 'export' example for CI_API_V4_API_URL
In issue #54621 a new variable CI_API_V4_API_URL was introduced, but
some of the documentation was omitted. Having an example output is
always nice.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2019-04-02 19:21:46 +02:00
Marcia Ramos 6fe5d402ea Add screenshots for variables
- Variables overview
- Variables triggered via manual pipeline
2019-04-02 17:18:44 +00:00
Marcia Ramos 88a0eab992 Fix conflicts with master
Pull master
2019-04-02 13:30:26 +00:00