Commit f9877d71 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Alessio Caiazza

Add placeholders to debug script example

parent 1a6a59d6
...@@ -8,52 +8,52 @@ ...@@ -8,52 +8,52 @@
# ### How to use ### # ### How to use ###
# #
# ### Prerequisite # ### Prerequisite
# 1. Create a project # 1. Create a project (for example with path `incremental-rollout`)
# 1. Create a .gitlab-ci.yml with the following content # 1. Create a .gitlab-ci.yml with the following content
# #
# ``` =begin
# stages: stages:
# - build - build
# - test - test
# - production - production
# - rollout 10% - rollout 10%
# - rollout 50% - rollout 50%
# - rollout 100% - rollout 100%
# - cleanup - cleanup
#
# build: build:
# stage: build stage: build
# script: sleep 1s script: sleep 1s
#
# test: test:
# stage: test stage: test
# script: sleep 3s script: sleep 3s
#
# rollout 10%: rollout 10%:
# stage: rollout 10% stage: rollout 10%
# script: date script: date
# when: delayed when: delayed
# start_in: 10 seconds start_in: 10 seconds
# allow_failure: false allow_failure: false
#
# rollout 50%: rollout 50%:
# stage: rollout 50% stage: rollout 50%
# script: date script: date
# when: delayed when: delayed
# start_in: 10 seconds start_in: 10 seconds
# allow_failure: false allow_failure: false
#
# rollout 100%: rollout 100%:
# stage: rollout 100% stage: rollout 100%
# script: date script: date
# when: delayed when: delayed
# start_in: 10 seconds start_in: 10 seconds
# allow_failure: false allow_failure: false
#
# cleanup: cleanup:
# stage: cleanup stage: cleanup
# script: date script: date
# ``` =end
# #
# ### How to load this script # ### How to load this script
# #
...@@ -65,12 +65,16 @@ ...@@ -65,12 +65,16 @@
# ### Reproduce the scenario A) ~ Succeccfull timed incremantal rollout ~ # ### Reproduce the scenario A) ~ Succeccfull timed incremantal rollout ~
# #
# ```` # ````
# ScheduledJobFixture.new(29, 1).create_pipeline('master') # project = Project.find_by(path: 'incremental-rollout')
# ScheduledJobFixture.new(29, 1).finish_stage_until('test') # Succeed 'build' and 'test' jobs. 'rollout 10%' job will be scheduled. See the pipeline page # user = User.find_by(username: 'root')
# ScheduledJobFixture.new(29, 1).finish_stage_until('rollout 10%') # Succeed `rollout 10%` job. 'rollout 50%' job will be scheduled. # fixture = ScheduledJobFixture.new(project.id, user.id)
# ScheduledJobFixture.new(29, 1).finish_stage_until('rollout 50%') # Succeed `rollout 50%` job. 'rollout 100%' job will be scheduled. #
# ScheduledJobFixture.new(29, 1).finish_stage_until('rollout 100%') # Succeed `rollout 100%` job. 'cleanup' job will be scheduled. # fixture.create_pipeline('master')
# ScheduledJobFixture.new(29, 1).finish_stage_until('cleanup') # Succeed `cleanup` job. The pipeline becomes green. # fixture.finish_stage_until('test') # Succeed 'build' and 'test' jobs. 'rollout 10%' job will be scheduled. See the pipeline page
# fixture.finish_stage_until('rollout 10%') # Succeed `rollout 10%` job. 'rollout 50%' job will be scheduled.
# fixture.finish_stage_until('rollout 50%') # Succeed `rollout 50%` job. 'rollout 100%' job will be scheduled.
# fixture.finish_stage_until('rollout 100%') # Succeed `rollout 100%` job. 'cleanup' job will be scheduled.
# fixture.finish_stage_until('cleanup') # Succeed `cleanup` job. The pipeline becomes green.
# ``` # ```
class ScheduledJobFixture class ScheduledJobFixture
attr_reader :project attr_reader :project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment