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

From wikieduonline
Jump to navigation Jump to search
 
(59 intermediate revisions by 3 users not shown)
Line 1: Line 1:
GitLab [[Continuous Integration/Continuous Delivery (CI/CD)|CI/CD pipelines]] are configured using a [[DevOps/YAML|YAML]] file called <code>.gitlab-ci.yml</code>: https://docs.gitlab.com/ee/ci/yaml/
+
[[GitLab CI/CD]] pipelines are configured using a [[DevOps/YAML|YAML]] file called <code>.gitlab-ci.yml</code>.
 +
* https://docs.gitlab.com/ee/ci/yaml/
 +
* https://gitlab.bt.local/help/ci/yaml/README.md
  
 +
== [[GitLab CI keyword reference]] ==
  
== Parameters ==
+
== [[Gitlab-ci.yml and CI/CD pipelines changelog]] ==
https://docs.gitlab.com/ee/ci/yaml/
 
* <code>before_script</code>
 
* <code>after_script</code>
 
* <code>stage</code> https://docs.gitlab.com/ee/ci/yaml/#stage
 
* <code>rules (if, changes, exists)</code> https://docs.gitlab.com/ee/ci/yaml/#rules
 
 
 
== <code>Gitlab-ci.yml</code> and CI/CD pipelines Changelog ==
 
* 22/09/2019 GitLab 12.3
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#rules</ref><code>rules</code> keyword: <code>rules:if</code>, <code>rules:changes</code>
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#timeout</ref><code>timeout</code> for jobs.
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#interruptible</ref><code>interruptible</code>
 
 
 
* 22/08/2019 GitLab 12.2
 
** <ref>https://gitlab.com/gitlab-org/gitlab-foss/issues/47063</ref><code>needs:</code>https://docs.gitlab.com/ee/ci/yaml/#needs
 
 
 
* xx/xx/2019 GitLab 11.8
 
** Nested includes<ref>https://docs.gitlab.com/ee/ci/yaml/#nested-includes</ref>
 
 
 
* xx/xx/2019 GitLab 11.8
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#trigger-premium</ref><code>trigger</code> (premium version)
 
 
 
* xx/xx/2019 GitLab 11.7
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#includefile</ref><code>[[include]]:file</code>
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#includetemplate</ref><code>include:template</code>
 
 
 
* xx/xx/2019 GitLab 11.5
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#parallel</ref><code>parallel</code>
 
 
 
* xx/xx/2019 GitLab 11.4
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#onlychangesexceptchanges</ref> <code>only:changes/except:changes</code>
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#whendelayed</ref><ref>https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/21767</ref> <code>when:delayed</code>
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#include</ref> <code>include</code> (available in Premium since 10.5)
 
 
 
* 22/09/2018 GitLab 11.3
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#extends</ref><code>extends</code> as alternative to YAML anchors
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#artifactsreports</ref><code>artifacts:reports</code>
 
 
 
* xx/xx/201x GitLab 9.5
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#retry</ref><code>retry</code>
 
 
 
* xx/xx/201x GitLab 8.10
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#whenmanual</ref><code>when:manual</code>
 
 
 
* xx/xx/201x GitLab 8.9
 
** <ref>https://docs.gitlab.com/ee/ci/yaml/#environment</ref><code>environment</code>
 
 
 
* xx/xx/201x GitLab 8.6
 
** Anchors feature <ref>https://docs.gitlab.com/ee/ci/yaml/#anchors</ref>
 
 
 
[[DevOps/GitLab/GitLab Runner|GitLab Runner]] 11.10
 
* <code>[[git clean]]</code> flags<ref>https://docs.gitlab.com/ee/ci/yaml/#git-clean-flags</ref>
 
* Custom build directoriesl https://docs.gitlab.com/ee/ci/yaml/#custom-build-directories
 
 
 
[[DevOps/GitLab/GitLab Runner|GitLab Runner]] v0.7.0
 
* <code>cache</code>
 
  
 
== 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
+
# 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
 +
 
 +
== Related terms ==
 +
* <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>
 +
{{CI files TOC}}
 +
* [[GitLab Workflow extension for VSCode]] provides autocompletion funtionalities
 +
* [[.github/workflows/]]
  
 
== See also ==
 
== See also ==
 +
* {{gitlab-ci.yml}}
 
* {{gitlab runner}}
 
* {{gitlab runner}}
* {{GitLab}}
+
* {{GitLab CI}}
 
 
  
[[Category:Cloud computing| ]]
+
[[Category:GitLab]]
[[Category: Software development]]
 
[[Category:Version Control]]
 
  
  
 
{{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: