Editing GitLab, when:

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
https://docs.gitlab.com/ee/ci/yaml/#when
+
{{lc}}
* <code>on_success:</code> (default) Run the job only when all jobs in earlier stages succeed or have <code>[[allow_failure]]: true</code>.
+
* https://docs.gitlab.com/ee/ci/yaml/#when
* <code>[[GitLab CI, when: manual|manual]]:</code> Run the job only when triggered manually.
+
* <code>on_success</code> (default) Run the job only when all jobs in earlier stages succeed or have allow_failure: true.
* <code>always:</code> Run the job regardless of the status of jobs in earlier stages. Can also be used in workflow:rules.
+
* <code>manual</code> Run the job only when triggered manually.
* <code>on_failure:</code> Run the job only when at least one job in an earlier stage fails.
+
* always: Run the job regardless of the status of jobs in earlier stages. Can also be used in workflow:rules.
* <code>delayed:</code> Delay the execution of a job for a specified duration.
+
* on_failure: Run the job only when at least one job in an earlier stage fails.
<code>never:</code> Don’t run the job. Can only be used in a rules section or workflow: rules.
+
* delayed: Delay the execution of a job for a specified duration.
 +
*  never: Don’t run the job. Can only be used in a rules section or workflow: rules.
  
https://docs.gitlab.com/ee/ci/yaml/#retrywhen
 
[[retry:]]
 
    [[when:]]
 
      - [[runner_system_failure]]
 
      - [[stuck_or_timeout_failure]]
 
      - [[job_execution_timeout]]
 
      - [[scheduler_failure]]
 
  
 
== Related ==
 
== Related ==
* [[GitHub Actions]]: <code>[[GitHub Actions: on:|on:]]</code>
+
* [[GitHub Actions: on:]]
* {{when}}
+
 
* <code>[[needs:]]</code>
 
  
 
== See also ==
 
== See also ==
Line 24: Line 17:
  
 
[[Category:GitLab]]
 
[[Category:GitLab]]
[[Category:GitLab CI]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: