docs: def post_pipeline(self, pipeline):
          """Send Pipeline JSON to Spinnaker.
  
          Args:
              pipeline (json): json of the pipeline to be created in Spinnaker
          """
          url = "{0}/pipelines".format(API_URL)
  
          if isinstance(pipeline, str):
              pipeline_json = pipeline
          else:
              pipeline_json = json.dumps(pipeline)
  
          pipeline_dict = json.loads(pipeline_json)
  
          self.log.debug('Pipeline JSON:\n%s', pipeline_json)
  
          pipeline_response = requests.post(
              url, data=pipeline_json, headers=self.header, verify=GATE_CA_BUNDLE, cert=GATE_CLIENT_CERT)
  
          self.log.debug('Pipeline creation response:\n%s', pipeline_response.text)
  
          if not pipeline_response.ok:
              raise SpinnakerPipelineCreationFailed('Pipeline for {0}: {1}'.format(self.app_name,
                                                                                   pipeline_response.json()))
  
          self.log.info('Successfully created "%s" pipeline in application "%s".', pipeline_dict['name'],
                        pipeline_dict['application'])