import subprocess
+import sys
import click
with the name "logs" as this is a hardcoded path. Also this script uses
~/.netrc for it's authentication which must be provided.
"""
- subprocess.call(['deploy', 'archives', nexus_url, nexus_path, workspace, pattern])
+ status = subprocess.call(['deploy', 'archives', nexus_url, nexus_path, workspace, pattern])
+ sys.exit(status)
@click.command()
with the name "logs" as this is a hardcoded path. Also this script uses
~/.netrc for it's authentication which must be provided.
"""
- subprocess.call(['deploy', 'logs', nexus_url, nexus_path, build_url])
+ status = subprocess.call(['deploy', 'logs', nexus_url, nexus_path, build_url])
+ sys.exit(status)
deploy.add_command(archives)
3. Change x.y.z-SNAPSHOT versions to x.(y+1).0-SNAPSHOT
4. Change x.y.z-RELEASE_TAG versions to x.y.(z+1)-SNAPSHOT and
"""
- subprocess.call(['version', 'bump', release_tag])
+ status = subprocess.call(['version', 'bump', release_tag])
+ sys.exit(status)
@click.command()
Searches poms for all instances of SNAPSHOT version and changes it to
RELEASE_TAG.
"""
- subprocess.call(['version', 'release', release_tag])
+ status = subprocess.call(['version', 'release', release_tag])
+ sys.exit(status)
@click.command()
if not os.path.isdir(patch_dir):
print("{} is not a valid directory.".format(patch_dir))
sys.exit(404)
- subprocess.call(['version', 'patch', release_tag, patch_dir, project])
+ status = subprocess.call(['version', 'patch', release_tag, patch_dir, project])
+ sys.exit(status)
version.add_command(bump)