Class: Gitlab::QA::Component::PipelineOps
- Defined in:
- lib/gitlab/qa/component/pipeline_ops.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#additional_hosts, #airgapped_network, #docker, #environment, #logger, #name, #network, #network_aliases, #ports, #runner_network, #secrets, #volumes
Instance Method Summary collapse
Methods inherited from Base
#add_network_alias, #hostname, #image, #initialize, #instance, #ip_address, #prepare, #prepare_airgapped_network, #prepare_docker_container, #prepare_docker_image, #prepare_network, #prepare_runner_network, #process_exec_commands, #pull, #restart, #start_instance, #tag, #teardown, #teardown!
Methods included from Scenario::Actable
Constructor Details
This class inherits a constructor from Gitlab::QA::Component::Base
Instance Method Details
#check_status(gitlab) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gitlab/qa/component/pipeline_ops.rb', line 11 def check_status(gitlab) pipeline_status = gitlab.docker.exec( gitlab.name, wait_for_pipeline) case pipeline_status when 'success' puts "Pipeline succeeded!" nil when 'failed' raise StandardError, "Pipeline failed." else puts "Pipeline is currently #{pipeline_status}" end end |
#start(gitlab, project_name) ⇒ Object
7 8 9 |
# File 'lib/gitlab/qa/component/pipeline_ops.rb', line 7 def start(gitlab, project_name) create_and_execute_pipeline_script(gitlab, project_name) end |