Skip to content

Commit

Permalink
Return a different exit code if the upload to qgis.org has failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jun 12, 2023
1 parent 91aac8b commit 7244820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/usage/cli_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ options:
The Osgeo password to publish the plugin.
```
If the exit code is `2`, it means the upload to the QGIS server has failed.
## Additional metadata
When packaging the plugin, some extra metadata information can be added if these keys are present in the `metadata.txt`:
Expand Down
4 changes: 2 additions & 2 deletions qgispluginci/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def upload_plugin_to_osgeo(
f"Plugin path: {archive}"
)
logger.error(err_msg)
sys.exit(err_msg)
sys.exit(2)
except xmlrpc.client.Fault as err:
err_msg = (
"=== A fault occurred occurred ===\n"
Expand All @@ -461,7 +461,7 @@ def upload_plugin_to_osgeo(
f"Plugin path: {archive}"
)
logger.error(err_msg)
sys.exit(err_msg)
sys.exit(2)


def release(
Expand Down

0 comments on commit 7244820

Please sign in to comment.