Issue with git push to local BitBucket server after successful GitSCM checkout

Hi,

The following issue started last week with no user update to the setup. I’ll try to keep it brief.
In general, Jenkins is setup to interact with a local bitbucket server.

We use SCM to do a first checkout to get Jenkins Script

The Jenkins script then gets executed on a Windows agent and does a checkout using SCM to get the files needed for the job, this also works fine.
We then do a push and this is what has stopped working, we get the following error message.

Any help or pointers on this will be greatly appreciated.

Jenkins setup:
Jenkins: 2.414.1
OS: Linux - 4.15.0-213-generic
Java: 11.0.5 - Oracle Corporation (Java HotSpot™ 64-Bit Server VM)

Office-365-Connector:4.20.2
ace-editor:1.1
ansicolor:1.0.4
ant:497.v94e7d9fffa_b_9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
artifactory:4.0.6
atlassian-bitbucket-server-integration:3.5.0
authentication-tokens:1.53.v1c90fd9191a_b_
badge:1.9.1
bitbucket:254.v9d8ec33a_7a_42
bitbucket-push-and-pull-request:3.1.1
bootstrap4-api:4.6.0-6
bootstrap5-api:5.3.2-3
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1128.v717130d4f816
build-name-setter:2.4.0
build-pipeline-plugin:2.0.1
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloudbees-bitbucket-branch-source:832.v43175a_425ea_6
cloudbees-folder:6.858.v898218f3609d
command-launcher:107.v773860566e2e
commons-httpclient3-api:3.1-3
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-94.v3e1f4a_926e49
conditional-buildstep:1.4.3
config-file-provider:959.vcff671a_4518b_
copyartifact:722.v0662a_9b_e22a_c
credentials:1319.v7eb_51b_3a_c97b_
credentials-binding:642.v737c34dea_6c2
cygpath:1.5
dashboard-view:2.495.v07e81500c3f2
data-tables-api:1.13.6-5
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
docker-workflow:572.v950f58993843
durable-task:550.v0930093c4b_a_6
echarts-api:5.4.0-7
email-ext:2.105
envinject:2.908.v66a_774b_31d93
envinject-api:1.199.v3ce31253ed13
export-params:1.9
extended-choice-parameter:373.v1a_ecea_fdf2a_a_
external-monitor-job:215.v2e88e894db_f8
font-awesome-api:6.5.1-2
generic-webhook-trigger:2.0.1
git:5.2.1
git-client:4.6.0
git-server:114.v068a_c7cc2574
gradle:2.10
groovy-postbuild:228.vcdb_cf7265066
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
htmlpublisher:1.33
http_request:1.18
instance-identity:185.v303dc7c645f9
ionicons-api:70.v2959a_b_74e3cf
ivy:2.5
jackson2-api:2.15.3-363.v82c51b_de9f60
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jersey2-api:2.40-1
jira:3.12
jnr-posix-api:3.1.19-1
job-dsl:1.87
job-parameter-summary:0.5
jobConfigHistory:1229.v3039470161a_d
jquery:1.12.4-1
jquery-detached:1.2.1
jquery3-api:3.7.1-1
jsch:0.2.16-86.v42e010d9484b_
junit:1265.v65b_14fa_f12f0
ldap:719.vcb_d039b_77d0d
lockable-resources:1245.vb_05f8a_4e28db_
mailer:470.vc91f60c5d8e2
mapdb-api:1.0.9-40.v58107308b_7a_7
matlab:2.13.0
matrix-auth:3.1.8
matrix-project:818.v7eb_e657db_924
maven-plugin:3.23
mercurial:1260.vdfb_723cdcc81
mina-sshd-api-common:2.12.1-101.v85b_e08b_780dd
mina-sshd-api-core:2.12.1-101.v85b_e08b_780dd
momentjs:1.1.1
msbuild:1.30
multi-agent-config-plugin:1.2.0
pam-auth:1.10
parameterized-trigger:787.v665fcf2a_830b_
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:689.veec561a_dee13
pipeline-input-step:477.v339683a_8d55e
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2150.v4cfd8916915c
pipeline-model-definition:2.2150.v4cfd8916915c
pipeline-model-extensions:2.2150.v4cfd8916915c
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2150.v4cfd8916915c
pipeline-stage-view:2.34
pipeline-utility-steps:2.16.0
plain-credentials:179.vc5cb_98f6db_38
plugin-util-api:3.8.0
popper-api:1.16.1-3
popper2-api:2.11.6-4
powershell:2.1
rebuild:332.va_1ee476d8f6d
resource-disposer:0.23
rich-text-publisher-plugin:1.4
run-condition:1.7
scm-api:676.v886669a_199a_a_
script-security:1326.vdb_c154de8669
show-build-parameters:1.0
slack:684.v833089650554
agent-proxy:1.1
agent-setup:1.16
snakeyaml-api:2.2-111.vc6598e30cc65
ssh-credentials:334.v7732563deee1
ssh-slaves:2.948.vb_8050d697fec
sshd:3.322.v159e91f6a_550
startup-trigger-plugin:2.9.3
stash-pullrequest-builder:1.17
stashNotifier:1.439.v202358346a_7d
structs:325.vcb_307d2a_2782
subversion:1256.vee91953217b_6
tap:2.3
token-macro:384.vf35b_f26814ec
trilead-api:2.84.86.vf9c960e9b_458
uno-choice:2.8.1
variant:60.v7290fc0eb_b_cd
versioncolumn:213.v4fe4f71a_1f57
windows-exe-runner:35.vea_7d292d39a_2
windows-slaves:1.8.1
workflow-aggregator:596.v8c21c963d92d
workflow-api:1291.v51fd2a_625da_7
workflow-basic-steps:1049.v257a_e6b_30fb_d
workflow-cps:3837.v305192405b_c0
workflow-cps-global-lib:609.vd95673f149b_b
workflow-durable-task-step:1331.vc8c2fed35334
workflow-job:1326.ve643e00e9220
workflow-multibranch:770.v1a_d0708dd1f6
workflow-remote-loader:1.6
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:896.v175a_a_9c5b_78f
ws-cleanup:0.45