Skip to content

Instantly share code, notes, and snippets.

View Grummfy's full-sized avatar

Grummfy Grummfy

View GitHub Profile
@Grummfy
Grummfy / rundeck_executions_cleanup.sh
Last active September 19, 2019 09:36 — forked from shamil/rundeck_executions_cleanup.sh
Rundeck executions cleanup
#!/bin/bash -e
# see related issue: https://github.com/rundeck/rundeck/issues/357
# see https://gist.github.com/Grummfy/11289c0c71096d812e9dd59eaf310464
export PATH=$PATH:~/rd-1.1.0/bin/
# export required vars
export RD_URL=http://localhost:4440 RD_USER=admin RD_PASSWORD=admin RD_HTTP_TIMEOUT=300 RD_PROJECT=mainProject
# make sure rd & jq commands are in the PATH