Skip to content

Organization scan marked active branches/projects as obsolete and deleted their workspaces #1493

@mhamill2

Description

@mhamill2

Jenkins and plugins versions report

Environment
Jenkins: 2.528.3
OS: Linux - 6.1.158-180.294.amzn2023.x86_64
Java: 21.0.9 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
allure-jenkins-plugin:2.34.0
ant:520.vd082ecfb_16a_9
antisamy-markup-formatter:173.v680e3a_b_69ff3
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
apache-httpcomponents-client-5-api:5.5-170.v023de017ccd7
asm-api:9.9.1-189.vb_5ef2964da_91
authentication-tokens:1.144.v5ff4a_5ec5c33
aws-codepipeline:0.49
aws-credentials:254.v978a_5e206a_d7
aws-java-sdk:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-api-gateway:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-autoscaling:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-cloudformation:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-cloudfront:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-cloudwatch:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-codebuild:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-codedeploy:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-ec2:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-ecr:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-ecs:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-efs:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-elasticbeanstalk:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-elasticloadbalancingv2:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-iam:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-kinesis:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-lambda:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-logs:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-minimal:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-organizations:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-secretsmanager:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-sns:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-sqs:1.12.780-480.v4a_0819121a_9e
aws-java-sdk-ssm:1.12.780-480.v4a_0819121a_9e
aws-java-sdk2-core:2.33.4-62.vc1a_8df64b_4c9
aws-java-sdk2-ec2:2.33.4-62.vc1a_8df64b_4c9
blueocean:1.27.25
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.25
blueocean-commons:1.27.25
blueocean-config:1.27.25
blueocean-core-js:1.27.25
blueocean-dashboard:1.27.25
blueocean-display-url:2.4.4
blueocean-events:1.27.25
blueocean-git-pipeline:1.27.25
blueocean-github-pipeline:1.27.25
blueocean-i18n:1.27.25
blueocean-jira:1.27.25
blueocean-jwt:1.27.25
blueocean-personalization:1.27.25
blueocean-pipeline-api-impl:1.27.25
blueocean-pipeline-editor:1.27.25
blueocean-pipeline-scm-api:1.27.25
blueocean-rest:1.27.25
blueocean-rest-impl:1.27.25
blueocean-web:1.27.25
bootstrap5-api:5.3.8-895.v4d0d8e47fea_d
bouncycastle-api:2.30.1.82-277.v70ca_0b_877184
branch-api:2.1268.v044a_87612da_8
build-discarder:158.vce570d01ce4c
build-pipeline-plugin:2.0.2
build-timeout:1.38
build-with-parameters:81.ve4a_9c2499d9a
caffeine-api:3.2.3-194.v31a_b_f7a_b_5a_81
checks-api:373.vfe7645102093
cloud-stats:377.vd8a_6c953e98e
cloudbees-bitbucket-branch-source:937.2.2
cloudbees-folder:6.1073.va_7888eb_dd514
command-launcher:123.v37cfdc92ef67
commons-collections4-api:4.5.0-8.va_d5448ef9011
commons-compress-api:1.28.0-2
commons-lang3-api:3.20.0-109.ve43756e2d2b_4
commons-text-api:1.15.0-210.v7480a_da_70b_9e
conditional-buildstep:1.5.0
copyartifact:770.va_6c69e063442
coverage:2.3060.v035a_5557cdb_c
credentials:1453.v9b_a_29777a_b_fd
credentials-binding:702.vfe613e537e88
cucumber-reports:5.10.0
data-tables-api:2.3.5-1482.vb_47a_3c19f78c
display-url-api:2.217.va_6b_de84cc74b_
docker-commons:457.v0f62a_94f11a_3
docker-workflow:634.vedc7242b_eda_7
downstream-build-cache:1.7
durable-task:639.vefb_3d8372f6d
ec2:2045.v06da_da_a_46422
echarts-api:6.0.0-1165.vd1283a_3e37d4
eddsa-api:0.3.0.1-19.vc432d923e5ee
external-monitor-job:223.vb_fddcf42c9b_3
favorite:2.253.v9b_413168133b_
font-awesome-api:7.1.0-882.v1dfb_771e3278
forensics-api:3.1772.v99ca_3d83b_9fa_
git:5.8.1
git-client:6.4.2
git-server:137.ve0060b_432302
github:1.45.0
github-api:1.330-492.v3941a_032db_2a_
github-branch-source:1917.v9ee8a_39b_3d0d
gson-api:2.13.2-173.va_a_092315913c
handy-uri-templates-2-api:2.1.8-38.vcea_5d521d5f3
heavy-job:1.1
htmlpublisher:427
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:94.vcc3065403257
jackson2-api:2.20.1-423.v13951f6b_6532
jakarta-activation-api:2.1.4-1
jakarta-mail-api:2.1.5-1
jakarta-xml-bind-api:4.0.6-10.v9b_7e1d1fc40b_
javadoc:354.vee1a_660b_4990
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-133.vb_ec76a_73f706
jdk-tool:83.v417146707a_3d
jenkins-design-language:1.27.25
jersey2-api:2.47-165.ve7809a_3e87e0
jira:3.21
jjwt-api:0.11.5-120.v0268cf544b_89
jnr-posix-api:3.1.21-186.vb_7ec9b_23ce83
jobcacher:764.v098c635e4315
joda-time-api:2.14.0-149.v1c3ce991d1b_9
jquery:1.12.4-3
jquery3-api:3.7.1-619.vdb_10e002501a_
jsch:0.2.16-95.v3eecb_55fa_b_78
json-api:20250517-173.v596efb_962a_31
json-path-api:2.10.0-202.va_9cc16c1e476
jsoup:1.21.2-66.v6ea_38164b_8a_2
junit:1369.v15da_00283f06
ldap:793.v754d6b_41b_ea_4
lockable-resources:1438.v3c0f8c9e2060
mailer:525.v2458b_d8a_1a_71
matrix-auth:3.2.9
matrix-project:870.v9db_fcfc2f45b_
maven-plugin:3.27
metrics:4.2.37-489.vb_6db_69b_ce753
mina-sshd-api-common:2.16.0-167.va_269f38cc024
mina-sshd-api-core:2.16.0-167.va_269f38cc024
mina-sshd-api-scp:2.16.0-167.va_269f38cc024
next-build-number:66.v4b_4762172d53
node-iterator-api:72.vc90e81737df1
okhttp-api:4.12.0-195.vc02552c04ffd
opsgenie:1.11
oss-symbols-api:424.ved751e062911
pam-auth:1.12
parameterized-scheduler:285.ve611986d4c48
parameterized-trigger:873.v8b_e37dd8418f
pipeline-aws:1.45
pipeline-build-step:571.v08a_fffd4b_0ce
pipeline-github-lib:65.v203688e7727e
pipeline-graph-analysis:245.v88f03631a_b_21
pipeline-graph-view:661.v6003f4542123
pipeline-groovy-lib:787.ve2fef0efdca_6
pipeline-input-step:540.v14b_100d754dd
pipeline-milestone-step:138.v78ca_76831a_43
pipeline-model-api:2.2277.v00573e73ddf1
pipeline-model-definition:2.2277.v00573e73ddf1
pipeline-model-extensions:2.2277.v00573e73ddf1
pipeline-rest-api:2.38
pipeline-stage-step:322.vecffa_99f371c
pipeline-stage-tags-metadata:2.2277.v00573e73ddf1
pipeline-stage-view:2.38
pipeline-utility-steps:2.20.0
plain-credentials:199.v9f8e1f741799
plugin-util-api:6.1192.v30fe6e2837ff
prism-api:1.30.0-630.va_e19d17f83b_0
pubsub-light:1.19
resource-disposer:0.25
role-strategy:848.va_a_ea_673cf0b_c
run-condition:243.v3c3f94e46a_8b_
s3-jobcacher-storage:62.v260cb_8db_5b_fa_
saml:4.590.v6170b_1013da_f
scm-api:724.v7d839074eb_5c
script-security:1385.v7d2d9ec4d909
simple-theme-plugin:211.v5424a_5510e47
slack:795.v4b_9705b_e6d47
snakeyaml-api:2.5-143.v93b_c004f89de
splunk-devops:1.11.1
splunk-devops-extend:1.11.1
sse-gateway:1.28
ssh-credentials:361.vb_f6760818e8c
ssh-slaves:3.1085.vc64d040efa_85
sshd:3.374.v19b_d59ce6610
structs:362.va_b_695ef4fdf9
timestamper:1.30
token-macro:477.vd4f0dc3cb_cf1
trilead-api:2.284.v1974ea_324382
variant:70.va_d9f17f859e0
workflow-aggregator:608.v67378e9d3db_1
workflow-api:1384.vdc05a_48f535f
workflow-basic-steps:1098.v808b_fd7f8cf4
workflow-cps:4238.va_6fb_65c1f699
workflow-durable-task-step:1464.v2d3f5c68f84c
workflow-job:1559.va_a_533730b_ea_d
workflow-multibranch:821.vc3b_4ea_780798
workflow-scm-step:466.va_d69e602552b_
workflow-step-api:710.v3e456cc85233
workflow-support:1010.vb_b_39488a_9841
ws-cleanup:0.49
xray-connector:2.6.2
yet-another-build-visualizer:1.17

What Operating System are you using (both controller, and any agents involved in the problem)?

We are running Jenkins on a Docker container in an AWS EC2 instance.

EC2 OS: Linux - 6.1.158-180.294.amzn2023.x86_64
Docker Image: jenkins/jenkins:2.516.2-lts-jdk21

Reproduction steps

  1. Create an organization folder connected to github
  2. Configure the folder to scan the organization hourly
  3. There needs to be an issue with connecting to GitHub for this to work, however when the organization scans, and it cannot connect to GitHub, you should see logs like this, where you can see master branch workspaces being deleted:
2025-12-19 00:17:11.100+0000 [id=12319]	INFO	o.j.p.g.ApiRateLimitChecker$RateLimitCheckerAdapter#checkRateLimit: LocalChecker for rate limit was not set for this thread. Configured using system settings with API URL 'https://api.github.com'.
2025-12-19 00:17:21.841+0000 [id=12319]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6b828eea) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-1>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:17:31.943+0000 [id=12319]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6b828eea) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-1>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:23:24.685+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (5361c85e) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-2>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:23:34.786+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (5361c85e) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-2>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:23:55.451+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26611071) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-3>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:24:05.552+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26611071) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-3>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:24:26.719+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (264e6e32) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-4>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:24:36.820+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (264e6e32) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-4>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:24:57.521+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6b55c663) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-5>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:25:07.622+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6b55c663) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-5>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:25:28.306+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3b7c8dfb) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-6>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:25:38.407+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3b7c8dfb) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-6>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:25:59.040+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (58fa9a9d) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-7>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:26:09.141+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (58fa9a9d) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-7>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:26:29.843+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (563b3259) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-8>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:26:39.944+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (563b3259) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-8>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:26:40.205+0000 [id=12402]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-8> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-8>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:26:46.596+0000 [id=12402]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-9> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-9>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:26:47.232+0000 [id=12407]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-10> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-10>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:26:47.923+0000 [id=12402]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-11> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-11>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:26:58.419+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (8162adf) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-12>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:27:08.677+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3e26bd47) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-12>/contents/?ref=refs%2Fheads%2F<branch-1>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:27:19.174+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26d02b05) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-12>/contents/?ref=refs%2Fheads%2F<branch-2>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:27:29.275+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26d02b05) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-12>/contents/?ref=refs%2Fheads%2F<branch-2>: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:27:31.932+0000 [id=12402]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-13> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-13>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:27:43.816+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (df6f707) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-14>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:27:44.094+0000 [id=12402]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-14> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-14>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:27:54.623+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (65d223de) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-15>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:28:05.442+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (70d74eaf) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:28:15.710+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (4a5260b2) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-3>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:28:33.662+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (67c730bc) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-4>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:28:44.165+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3b8e7ba2) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-5>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:28:54.266+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3b8e7ba2) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-5>: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:29:04.526+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (2972009b) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-6>: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:29:14.627+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (2972009b) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-16>/contents/?ref=refs%2Fheads%2F<branch-6>: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:29:35.383+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (4a73c8b9) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-17>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:29:45.484+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (4a73c8b9) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-17>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:30:06.162+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (39ec7762) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-18>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:30:16.263+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (39ec7762) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-18>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:30:36.922+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (419af3a5) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-19>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:30:47.023+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (419af3a5) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-19>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:31:07.693+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (11515af3) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-20>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:31:17.794+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (11515af3) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-20>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:31:38.476+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (221a5f0f) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-21>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:31:48.577+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (221a5f0f) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-21>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:32:09.251+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26f7bc2) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-22>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:32:19.352+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (26f7bc2) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-22>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:32:39.994+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3c337c90) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-23>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:32:50.095+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (3c337c90) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-23>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:33:10.758+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (47874c0b) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-24>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:33:20.859+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (47874c0b) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-24>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:33:41.636+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (2177d6f) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-25>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:33:51.737+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (2177d6f) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-25>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:34:12.431+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6c398ced) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-26>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:34:22.532+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6c398ced) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-26>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:34:43.239+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6c20be82) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-27>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:34:53.340+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (6c20be82) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-27>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:35:14.001+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (1cb693a8) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-28>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:35:24.102+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (1cb693a8) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-28>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (1 retries remaining)
2025-12-19 00:35:44.773+0000 [id=12370]	INFO	org.kohsuke.github.GitHubClient#logRetryConnectionError: (4cd0fddd) class java.net.SocketTimeoutException while connecting to https://api.github.com/repos/<org-name>/<repo-29>/contents/?ref=refs%2Fheads%2Fmaster: 'timeout'. Sleeping 100 milliseconds before retrying (2 retries remaining)
2025-12-19 00:35:53.020+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-29> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-29>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:35:55.221+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-30> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-30>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:35:55.864+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-31> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-31>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:03.105+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-1> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-1>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:03.761+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-32> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-32>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:15.209+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-33> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-33>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:18.632+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-34> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-34>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:27.551+0000 [id=12475]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-35> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-35>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:28.193+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-36> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-36>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:29.630+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-37> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-37>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:31.530+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-38> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-38>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:34.881+0000 [id=12477]	INFO	o.j.p.g.webhook.WebhookManager$1#run: GitHub webhooks activated for job <org-name>/<repo-39> with [GitHubRepositoryName[host=github.com,username=<org-name>,repository=<repo-39>]] (events: [PULL_REQUEST, PUSH])
2025-12-19 00:36:44.410+0000 [id=12477]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-18>_master@libs on master
2025-12-19 00:36:56.443+0000 [id=12477]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-6>_master@libs on master
2025-12-19 00:36:57.207+0000 [id=12477]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-22>_master@libs on master
2025-12-19 00:36:57.484+0000 [id=12485]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-4>_<branch-7>@libs on master
2025-12-19 00:36:57.495+0000 [id=12485]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-8>_<branch-8>@libs on master
2025-12-19 00:36:57.810+0000 [id=12485]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-21>_<branch-9>@libs on master
2025-12-19 00:36:59.922+0000 [id=12477]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-4>_master@libs on master
2025-12-19 00:37:00.001+0000 [id=12477]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-40>_<branch-10>@libs on master
2025-12-19 00:37:00.003+0000 [id=12475]	INFO	j.b.WorkspaceLocatorImpl$Deleter$CleanupTask#run: deleting obsolete workspace /var/lib/jenkins/workspace/<org-name>_<repo-41>_<branch-11>@libs on master
2025-12-19 00:37:00.045+0000 [id=12370]	INFO	j.b.OrganizationFolder$OrganizationScan#run: <org-name> #20251219.002310 organization scan action completed: SUCCESS in 13 min

Expected Results

If there is an issue connecting to GitHub, the plugin shouldn't assume that the project / branches are obsolete and delete the workspaces.

Actual Results

Jenkins seemed to have marked the branches / project as obsolete and deleted the workspaces, which erased the build history for our repositories in that organization folder.

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions