wait_for_pipeline

in lib/gitlab/qa/component/pipeline_ops.rb [39:53]


        def wait_for_pipeline
          <<~SHELL
            gitlab-rails runner "
              latest_pipeline = Ci::Pipeline.last
              # wait for the pipeline to complete
              loop do
                latest_pipeline.reload
                break if latest_pipeline.complete?
                sleep 1
              end
              puts latest_pipeline.status
            "
          SHELL
        end