Skip to content

Commit

Permalink
Explicitly exit script, avoiding to fail auth, to be reworked
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Jul 15, 2024
1 parent 7462e3e commit 9dcfc51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/jdbc_maven_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ def exec(cmd):
shutil.copyfile(jar, os.path.join(results_dir, os.path.basename(jar)))

print("JARs created, uploading (this can take a while!)")

# FIXME: We are currently relying on this to fail so we might as well just fail :)
print('Terminate script, skipping upload, on purpose')
exit(0)

deploy_cmd_prefix = 'mvn gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
exec("%s -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, binary_jar))
exec("%s -Dclassifier=sources -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, sources_jar))
Expand Down

0 comments on commit 9dcfc51

Please sign in to comment.