Cascading options issue

60 views
Skip to first unread message

Matt

unread,
Dec 1, 2022, 5:36:37 AM12/1/22
to rundeck-discuss
Hi,
I've been following this guide to try and get the cascading options to work and have hit a snag:
https://groups.google.com/g/rundeck-discuss/c/CcmPknG2NBc

Everything works apart from when I put in 
file:/var/lib/rundeck/projects/PR1/${option.zoom.value} 
as a remote URL

I get an error saying 
Exception: java.io.FileNotFoundException: /var/lib/rundeck/projects/PR1(Is a directory)
URL: file:/var/lib/rundeck/projects/PR1/

Where am I going wrong? The zoom.json is working find in another option

rac...@rundeck.com

unread,
Dec 1, 2022, 6:18:11 AM12/1/22
to rundeck-discuss
Hi Matt,

Could you share your job definition to take a look?

Thanks!

Matt

unread,
Dec 1, 2022, 6:53:39 AM12/1/22
to rundeck-discuss
Sure, how do I go about doing that?

rac...@rundeck.com

unread,
Dec 1, 2022, 7:14:25 AM12/1/22
to rundeck-discuss
You can export it un YAML or XML format following this. Please edit/change any sensitive info in your job.

Regards.
Message has been deleted

Matt

unread,
Dec 1, 2022, 9:17:29 AM12/1/22
to rundeck-discuss
Oddly, I've logged back on and all the options for that job have gone. I'll need to figure that out first then I can try upload the XML for you

Matt

unread,
Dec 1, 2022, 9:58:20 AM12/1/22
to rundeck-discuss
OK, here is the options section of the XML file, did you need more?

 </option>
        <option enforcedvalues='true' name='O365Domain' required='true' value='Please Select' values='DM1, DM2, DM3' valuesListDelimiter=',' valuesUrl='file:/var/lib/rundeck/projects/PR1/o365domains.json'>
          <label>Which O365 Domain?</label>
        </option>
        <option delimiter=',' enforcedvalues='true' multivalued='true' name='O365_Groups' required='true' value='O1,O2' values='O1,O2,O3,O4,O5' valuesListDelimiter=','>
          <label>Office 365 Groups</label>
        </option>
        <option enforcedvalues='true' name='O365Licence' required='true' value='Please Select' values='Business Premium,Business Standard,' valuesListDelimiter=','>
          <label>O365 Licence</label>
        </option>
        <option enforcedvalues='true' name='zoomaccount' values='Please Select,Yes,No' valuesListDelimiter=',' valuesUrl='file:/var/lib/rundeck/projects/PR1/zoom.json'>
          <label>Create a Zoom account?</label>
        </option>
        <option enforcedvalues='true' name='ZoomGroup' valuesUrl='file:/var/lib/rundeck/projects/PR1/${option.zoom.Value}'>
          <label>Which Zoom Group?</label>
        </option>
      </options>

rac...@rundeck.com

unread,
Dec 1, 2022, 10:15:14 AM12/1/22
to rundeck-discuss

It seems that you need to define the last option as ${option.zoomaccount.Value} instead of ${option.zoom.Value}, could you test it? Regards!

Matt

unread,
Dec 1, 2022, 11:02:21 AM12/1/22
to rundeck-discuss
I've changed that option but still not getting any luck      

  <option enforcedvalues='true' name='O365Licence' required='true' value='Please Select' values='Business Premium,Business Standard' valuesListDelimiter=','>
          <label>O365 Licence</label>
        </option>
        <option enforcedvalues='true' name='zoomaccount' values='Please Select,Yes,No' valuesListDelimiter=',' valuesUrl='file:/var/lib/rundeck/projects/PR1/zoom.json'>
          <label>Create a Zoom account?</label>
        </option>
        <option enforcedvalues='true' name='ZoomGroup' valuesUrl='file:/var/lib/rundeck/projects/PR1/${option.zoomaccount.Value}'>
          <label>Which Zoom Group?</label>
        </option>
      </options>

I'm not getting this message:

Exception: java.net.URISyntaxException: Illegal character in path at index 42: file:/var/lib/rundeck/projects/PR1/${option.zoomaccount.Value}
URL: file:/var/lib/rundeck/projects/PR1/${option.zoomaccount.Value}

Matt

unread,
Dec 1, 2022, 11:04:23 AM12/1/22
to rundeck-discuss

Ah - it's working, I had to change the Value to all lower case

Thank you for you help :)

Cheers

rac...@rundeck.com

unread,
Dec 1, 2022, 11:14:24 AM12/1/22
to rundeck-discuss
Happy to help Matt! :-)
Reply all
Reply to author
Forward
0 new messages