Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backup/backup_scripts/remove_old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ REGEX="${ROOTDIR}/.*/builds/[0-9]+"
#JOBS="$ROOTDIR/*/builds/"
#MULTIJOBS="$ROOTDIR/*/configurations/axis-*/*/builds/"
CREDENTIALS=$(</root/.jenkins_credentials)
ssh -i /root/.ssh/nodejs_build_backup $HOST find "$ROOTDIR" -depth -type d -regex "$REGEX" -mtime +$DAYS -exec "rm -rf '{}' \;"
ssh -i /root/.ssh/nodejs_build_backup $HOST find "$ROOTDIR" -depth -type d -regex "$REGEX" -mtime +$DAYS -exec "rm -rvf '{}' \;"
JENKINS_CRUMB=$(curl -sL --user "$CREDENTIALS" https://$HOST/'crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
Comment thread
richardlau marked this conversation as resolved.
Outdated
curl -X POST -q --user "$CREDENTIALS" -H "$JENKINS_CRUMB" https://$HOST/reload
# sxa: Skip due to jenkins bug - https://github.com/nodejs/build/issues/4247#issuecomment-4019757795
# curl -X POST -q --user "$CREDENTIALS" -H "$JENKINS_CRUMB" https://$HOST/reload