
rd-jobs returns success when it should not
Reported by Charles Scott | May 11th, 2011 @ 01:48 PM | in Rundeck 1.3 (closed)
loading a bad jobxml file does not occur due to an error, however, return code is zero
see group thread:
http://groups.google.com/group/rundeck-discuss/browse_thread/thread...
[rundeck@centos-56-64-vm8 jobs.d]$ rd-jobs load --file
build-mod.xml Total Jobs Uploaded: 1 jobs
Failed to add 1 Jobs:
- Reload build resource xml : Exception evaluating property 'onsuccess' for java.util.HashSet, Reason: groovy.lang.MissingPropertyException: No such property: onsuccess for class: Notification
[rundeck@centos-56-64-vm8 jobs.d]$ echo $? 0
Comments and changes to this ticket
-
Greg Schueler May 16th, 2011 @ 09:50 AM
- Milestone set to “Rundeck 1.3”
- Milestone order changed from “38” to “0”
-
Greg Schueler June 8th, 2011 @ 08:36 AM
- Tag set to “bug”
- Assigned user set to “Greg Schueler”
- Milestone order changed from “39” to “0”
-
Alex-SF June 8th, 2011 @ 10:47 AM
- Assigned user changed from “Greg Schueler” to “Alex-SF”
-
Charles Scott June 9th, 2011 @ 10:15 AM
ok, looks like 1.3 we will have to wait for...
Also found this which I figure will be resolved in 1.3:
[deploy@dev-ctier1 stg]$ rd-jobs load -f $(pwd)/stgLabelConfig.xml Total Jobs Uploaded: 2 jobs
Failed to add 1 Jobs:- Update to latest trunk : Workflow has one or more invalid steps: [2]
Workflow has one or more invalid steps: [2]
Succeeded creating/updating 1 Jobs:- Update [69] <http://localhost:4440/job/show/69>
[deploy@dev-ctier1 stg]$ echo $? 0
-
Deleted User June 24th, 2011 @ 01:30 PM
- State changed from “new” to “needs_verification”
(from [5299a4c1e082ea9e77f1bd63a908167493dd130c]) Exit non-zero when rd-jobs load has a job load failure [#285 state:needs_verification] https://github.com/dtolabs/rundeck/commit/5299a4c1e082ea9e77f1bd63a...
-
Alex-SF July 8th, 2011 @ 10:51 AM
- State changed from “needs_verification” to “resolved”
Confirmed.
$ rd-jobs load -f /tmp/jobs.xml Error: Failed request to load jobs: JobXMLException: 'context/project' element not found
alexh@strongbad:~/rundeck [1291]
$ echo $? 1
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues