Difference between revisions of ".gitlab-ci.yml"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
* https://gitlab.bt.local/help/ci/yaml/README.md
 
* https://gitlab.bt.local/help/ci/yaml/README.md
  
== Keyword reference ==
+
== [[GitLab CI keyword reference]] ==
* <code>[[job:]]</code>
 
 
 
https://docs.gitlab.com/ee/ci/yaml/#stages
 
* <code>[[GitLab CI: stages:|stages:]]</code> <code>.pre -> [[build]] -> [[test]] -> [[deploy]] -> .post</code>
 
* <code>[[stage]]</code>
 
* <code>[[build:]]</code>
 
 
 
https://docs.gitlab.com/ee/ci/yaml/
 
* <code>script</code> https://docs.gitlab.com/ee/ci/yaml/#script
 
* <code>before_script</code>
 
* <code>after_script</code>
 
* <code>stage</code> https://docs.gitlab.com/ee/ci/yaml/#stage
 
* <code>[[tags]]</code> https://docs.gitlab.com/ee/ci/yaml/#tags
 
* <code>rules (if, changes, exists)</code> https://docs.gitlab.com/ee/ci/yaml/#rules
 
* <code>[[artifacts:]]</code>
 
 
 
Security:
 
* <code>[[artifacts:reports:dast]]</code> <ref>https://gitlab.bt.local/help/ci/yaml/README.md#artifactsreportssast-ultimate</ref>
 
[[License management]]:
 
* <code>[[artifacts:reports:license_management]]</code> <ref>https://gitlab.bt.local/help/ci/yaml/README.md#artifactsreportslicense_management-ultimate</ref> (will be deprecated  <code>- template: License-Scanning.gitlab-ci.yml</code>)
 
 
 
 
 
* <code>[[secrets:]]</code> https://docs.gitlab.com/ee/ci/yaml/#secrets
 
  
 
== [[Gitlab-ci.yml and CI/CD pipelines changelog]] ==
 
== [[Gitlab-ci.yml and CI/CD pipelines changelog]] ==
Line 32: Line 9:
 
== Activities ==
 
== Activities ==
 
# Read <code>gitlab-ci.yml</code> reference documentation https://docs.gitlab.com/ee/ci/yaml/
 
# Read <code>gitlab-ci.yml</code> reference documentation https://docs.gitlab.com/ee/ci/yaml/
# Review new keyworks introduced in <code>gitlab-ci.yml</code> reading this page
+
# Review predefined <code>[[GitLab CI: variables:|variables]]:</code> https://docs.gitlab.com/ee/ci/variables/predefined_variables.html and self defined variables https://docs.gitlab.com/ee/ci/variables/README.html#creating-a-custom-environment-variable in <code>[[gitlab-ci.yml]]</code> or in <code>Settings > CI/CD > Variables</code> in your project
# Review predefined [[variables]]: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html and self defined variables https://docs.gitlab.com/ee/ci/variables/README.html#creating-a-custom-environment-variable in <code>[[gitlab-ci.yml]]</code> or in <code>Settings > CI/CD > Variables</code> in your project
 
 
# Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
 
# Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
 
# Learn about [[GitLab Pipeline emails notifications]]: https://docs.gitlab.com/ee/user/project/integrations/pipeline_status_emails.html
 
# Learn about [[GitLab Pipeline emails notifications]]: https://docs.gitlab.com/ee/user/project/integrations/pipeline_status_emails.html
Line 39: Line 15:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[artifacts:]]</code>
 
* <code>[[artifacts:]]</code>
 +
* <code>[[timeout:]]</code>
 
* <code>[[needs:]]</code> introduced in 2019 ([[GitLab 12.2]])<code>https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html</code>
 
* <code>[[needs:]]</code> introduced in 2019 ([[GitLab 12.2]])<code>https://about.gitlab.com/2019/08/22/gitlab-12-2-released/index.html</code>
 
{{CI files TOC}}
 
{{CI files TOC}}
 +
* [[GitLab Workflow extension for VSCode]] provides autocompletion funtionalities
 +
* [[.github/workflows/]]
  
 
== See also ==
 
== See also ==
Line 46: Line 25:
 
* {{gitlab runner}}
 
* {{gitlab runner}}
 
* {{GitLab CI}}
 
* {{GitLab CI}}
* {{GitLab}}
 
 
  
[[Category:Cloud computing| ]]
+
[[Category:GitLab]]
[[Category: Software development]]
 
[[Category:Version Control]]
 
[[Category:CI]]
 
  
  
 
{{CC license}}
 
{{CC license}}
 
Source: wikiversity
 
Source: wikiversity

Latest revision as of 20:16, 13 April 2023

GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml.

GitLab CI keyword reference[edit]

Gitlab-ci.yml and CI/CD pipelines changelog[edit]

Activities[edit]

  1. Read gitlab-ci.yml reference documentation https://docs.gitlab.com/ee/ci/yaml/
  2. Review predefined variables: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html and self defined variables https://docs.gitlab.com/ee/ci/variables/README.html#creating-a-custom-environment-variable in gitlab-ci.yml or in Settings > CI/CD > Variables in your project
  3. Read https://stackoverflow.com/questions/tagged/gitlab-ci?tab=Votes
  4. Learn about GitLab Pipeline emails notifications: https://docs.gitlab.com/ee/user/project/integrations/pipeline_status_emails.html

Related terms[edit]

See also[edit]


Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Source: wikiversity

Advertising: