def post(self): project_id = g.token['project']['id'] job_name = g.token['job']['name'] template = 'project_%s_job_%s.tar.gz' key = template % (project_id, job_name) key = key.replace('/', '_') g.release_db() storage.upload_cache(request.files['cache.tar.gz'].stream, key) return jsonify({})
def post(self): g.release_db() project_id = g.token['project']['id'] job_name = g.token['job']['name'] for f, _ in request.files.items(): template = 'project_%s_job_%s_%s' key = template % (project_id, job_name, f) key = key.replace('/', '_') stream = request.files[f].stream storage.upload_cache(stream, key) return jsonify({})
def _storage_upload_with_metrics(self, f, file_name): storage.upload_cache(f, file_name)