| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 | 6 |
| 7 from google.appengine.api import app_identity | 7 from google.appengine.api import app_identity |
| 8 | 8 |
| 9 from appengine_third_party_pipeline_src_pipeline import pipeline | 9 from appengine_third_party_pipeline_python_src_pipeline import pipeline |
| 10 | 10 |
| 11 | 11 |
| 12 class AppenginePipeline(pipeline.Pipeline): | 12 class AppenginePipeline(pipeline.Pipeline): |
| 13 def send_result_email(self): # pragma: no cover | 13 def send_result_email(self): # pragma: no cover |
| 14 """We override this so it doesn't email on completion.""" | 14 """We override this so it doesn't email on completion.""" |
| 15 pass | 15 pass |
| 16 | 16 |
| 17 def pipeline_status_url(self): # pragma: no cover | 17 def pipeline_status_url(self): # pragma: no cover |
| 18 """Returns a URL to look up the status of the pipeline.""" | 18 """Returns a URL to look up the status of the pipeline.""" |
| 19 scheme = 'https' | 19 scheme = 'https' |
| 20 if os.environ['APPLICATION_ID'].startswith('dev'): | 20 if os.environ['APPLICATION_ID'].startswith('dev'): |
| 21 scheme = 'http' | 21 scheme = 'http' |
| 22 return '%s://%s/_ah/pipeline/status?root=%s&auto=false' % ( | 22 return '%s://%s/_ah/pipeline/status?root=%s&auto=false' % ( |
| 23 scheme, | 23 scheme, |
| 24 app_identity.get_default_version_hostname(), | 24 app_identity.get_default_version_hostname(), |
| 25 self.root_pipeline_id) | 25 self.root_pipeline_id) |
| OLD | NEW |