rundeck-cli
rundeck-cli copied to clipboard
rd jobs list idlist not full configuration
Hi,
I use rd cli for bootstrap rundeck from ansible. This command not provide information about slack notification.
rd jobs list --idlist {{ item.job_id }} -p {{ item.project }} --format yaml --file {{ rd_tmp_dir.path }}/{{ item.job_id }}.yml
But this information present in export via rundeck Web UI.
notification:
onfailure:
plugin:
configuration:
slack_channel: info-rundeck
webhook_base_url: https://hooks.slack.com/services
webhook_token: T01D...MGC
type: SlackNotification
notifyAvgDurationThreshold: null
OS: Debian 10 rundeck: 3.3.6.20201111-1 rundeck-cli: 1.3.10-1 openjdk: 1.8.0_292
any news regarding this problem, cause i have same issue
Agree, because of this rd cli is now dangerous since it does not fully export all the settings such as webhooks, which creates a false positive impression thinking you can restore any time you want too.
Is this perhaps a bug with Rundeck 3.3? the rundeck-cli will write the API response data directly to the file, so if there is data missing in the file, it must be an issue with the API response. You can watch the API response using RD_DEBUG=3
env var to turn on debugging.