Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RUN-2205: rd jobs load : display an exit code on command failure #548

Open
mazzella-c opened this issue Feb 13, 2024 · 0 comments
Open

RUN-2205: rd jobs load : display an exit code on command failure #548

mazzella-c opened this issue Feb 13, 2024 · 0 comments
Labels
bug to-jira (automation) add to jira

Comments

@mazzella-c
Copy link

If we launch the following command with a tampered Jobs.json file (replace 'false' value in any job with 'faoylse' for example) exit code returns 0 and everything seems ok while nothing happens.

rd jobs load -v -d=update -p xxx -f /tmp/Jobs.json -F json

The same command with export RD_DEBUG=3 shows what is wrong but still returns en exit code 0 :

INFOS: {"errorCode":"api.error.jobs.import.invalid","apiversion":46,"error":true,"message":"Le document de travail nʼétait pas valide pour le format xml : org.rundeck.app.components.jobs.JobDefinitionException: Job Json Format: Unrecognized token 'faoylse': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (InputStreamReader); line: 16, column: 43] (through reference chain: java.util.ArrayList[0])"}
The command should return the correct exit code when it fails.

@gschueler gschueler added bug to-jira (automation) add to jira labels Feb 13, 2024
@gschueler gschueler changed the title rd jobs load : display an exit code on command failure RUN-2205: rd jobs load : display an exit code on command failure Feb 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug to-jira (automation) add to jira
Projects
None yet
Development

No branches or pull requests

2 participants