Difference between revisions of "GitLab scheduled pipelines"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
* {{GitLab}}
+
== Official example ==
 +
<ref>https://docs.gitlab.com/ee/ci/jobs/job_control.html#run-jobs-for-scheduled-pipelines</ref>
 +
<pre>
 +
job:on-schedule:
 +
  rules:
 +
    - if: $CI_PIPELINE_SOURCE == "schedule"
 +
  script:
 +
    - make world
 +
 
 +
job:
 +
  rules:
 +
    - if: $CI_PIPELINE_SOURCE == "push"
 +
  script:
 +
    - make build
 +
</pre>
 +
 
 +
 
 +
== Examples ==
 +
  [[except:]]
 +
    - [[schedules]]
 +
 
 +
== Related ==
 +
* [[Cron]]
 +
 
 +
== See also ==
 +
* {{GitLab CI}}
 +
 
 +
[[Category:GitLab]]

Latest revision as of 08:32, 28 September 2022

Advertising: