Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

rd-jobs returns success when it should not

#285

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

Reported by Charles Scott · May 11th, 2011 @ 01:48 PM

State: new
Milestone: Rundeck 1.3
Assigned to: Alex-SF Alex-SF

Activity

  1. Greg Schueler
    Greg Schueler
    • Milestone set to Rundeck 1.3
    • Milestone order changed from 38 to 0

    May 16th, 2011 @ 09:50 AM

  2. Greg Schueler
    Greg Schueler
    • Tag set to bug
    • Assigned user set to Greg Schueler
    • Milestone order changed from 39 to 0

    June 8th, 2011 @ 08:36 AM

  3. Alex-SF
    Alex-SF
    • Assigned user changed from Greg Schueler to Alex-SF

    June 8th, 2011 @ 10:47 AM

  4. Charles Scott
    Charles Scott

    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

    June 9th, 2011 @ 10:15 AM

  5. Deleted User
    Deleted User
    • State changed from new to needs_verification

    June 24th, 2011 @ 01:30 PM

  6. Alex-SF
    Alex-SF
    • 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

    July 8th, 2011 @ 10:51 AM

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.