diff options
author | 2017-01-20 11:32:51 +0000 | |
---|---|---|
committer | 2017-01-20 11:32:51 +0000 | |
commit | 620d4426a916e59459ea9aeac0595b3ac7f033a2 (patch) | |
tree | a6b82e8abf068495cdf6f0a3be0c294d0b302d38 /utils/test | |
parent | 0de7c95e85e1eb73879eed69d017769229e8127f (diff) | |
parent | d92523aaeb0066e846b3cb1dc154f5731a2e6247 (diff) |
Merge "Add exit in build script to notify jenkins"
Diffstat (limited to 'utils/test')
-rw-r--r-- | utils/test/testapi/htmlize/doc-build.sh | 2 | ||||
-rw-r--r-- | utils/test/testapi/htmlize/htmlize.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/utils/test/testapi/htmlize/doc-build.sh b/utils/test/testapi/htmlize/doc-build.sh index e492c97b5..427b4378b 100644 --- a/utils/test/testapi/htmlize/doc-build.sh +++ b/utils/test/testapi/htmlize/doc-build.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -o errexit + # Create virtual environment source $WORKSPACE/testapi_venv/bin/activate diff --git a/utils/test/testapi/htmlize/htmlize.py b/utils/test/testapi/htmlize/htmlize.py index 68d02febd..c07f98ecf 100644 --- a/utils/test/testapi/htmlize/htmlize.py +++ b/utils/test/testapi/htmlize/htmlize.py @@ -28,7 +28,10 @@ def main(args): # Generating html page cmd = 'java -jar swagger-codegen-cli.jar generate \ -i specs.json -l html2 -o %s' % (args.output_directory) - os.system(cmd) + if os.system(cmd) == 0: + exit(0) + else: + exit(1) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Create \ |