Add tracebacks to deploy exceptions
This commit is contained in:
parent
01eef7eb41
commit
62579ed6b0
|
@ -13,6 +13,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import json, requests, tarfile, argparse, os, errno
|
import json, requests, tarfile, argparse, os, errno
|
||||||
import time
|
import time
|
||||||
|
import traceback
|
||||||
from urlparse import urljoin
|
from urlparse import urljoin
|
||||||
|
|
||||||
from flask import Flask, jsonify, request, abort
|
from flask import Flask, jsonify, request, abort
|
||||||
|
@ -124,6 +125,7 @@ def fetch_jenkins_build(job_name, build_num):
|
||||||
try:
|
try:
|
||||||
extracted_dir = deploy_tarball(tar_gz_url, build_dir)
|
extracted_dir = deploy_tarball(tar_gz_url, build_dir)
|
||||||
except DeployException as e:
|
except DeployException as e:
|
||||||
|
traceback.print_exc()
|
||||||
abort(400, e.message)
|
abort(400, e.message)
|
||||||
|
|
||||||
create_symlink(source=extracted_dir, linkname=arg_symlink)
|
create_symlink(source=extracted_dir, linkname=arg_symlink)
|
||||||
|
|
Loading…
Reference in New Issue