Skip to content

build: disable jenkins reload after backup/clearup#4268

Open
sxa wants to merge 2 commits intonodejs:mainfrom
sxa:skipReloadOnBackup
Open

build: disable jenkins reload after backup/clearup#4268
sxa wants to merge 2 commits intonodejs:mainfrom
sxa:skipReloadOnBackup

Conversation

@sxa
Copy link
Member

@sxa sxa commented Mar 9, 2026

This is potentially a temporary fix until we get the upstream jenkins fix for #4247 but I'm not sure the reload is strictly needed. Note that this change has been made on the backup system so is already live, but won't kick in until it runs next weekend.

This PR also adds -v to the rm command (GNU-specific, but our backup server is Linux) with the intention of having a log of what files are deleted in case it's useful in debugging anything.

To support such debugging I've also modified the crontab on the backup server to tee the output of the script to /root/backup_scripts/remote_old.sh.{testci,releaseci}.log. This could be compressed if anyone would prefer it that way. Logs are not retained once the next run kicks in.

Signed-off-by: Stewart X Addison <sxa@ibm.com>
@sxa sxa self-assigned this Mar 9, 2026
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)')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used if we're no longer calling the REST API to reload.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair - commented out that line too now.

Signed-off-by: Stewart X Addison <sxa@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants