-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Jenkins 2.319.1
Plugins installed:
apache-httpcomponents-client-4-api 4.5.13-138.v4e7d9a_7b_a_e61 true
bootstrap5-api 5.1.3-6 true
caffeine-api 2.9.3-65.v6a_47d0f4d1fe true
checks-api 1.7.4 true
credentials 1087.1089.v2f1b_9a_b_040e4 true
credentials-binding 523.vd859a_4b_122e6 true
display-url-api 2.3.5 true
echarts-api 5.3.2-1 true
font-awesome-api 6.0.0-1 true
gerrit-trigger 2.36.0 true
git 4.11.5 true
git-client 3.11.2 true
jackson2-api 2.13.3-285.vc03c0256d517 true
javax-activation-api 1.2.0-3 true
javax-mail-api 1.6.2-6 true
jaxb 2.3.6-1 true
jquery3-api 3.6.0-3 true
jsch 0.1.55.61.va_e9ee26616e7 true
junit 1.54.3 true
mailer 414.vcc4c33714601 true
matrix-project 772.v494f19991984 true
mina-sshd-api-common 2.8.0-30.vf9df64641cb_d true
mina-sshd-api-core 2.8.0-30.vf9df64641cb_d true
plain-credentials 139.ved2b_9cf7587b true
plugin-util-api 2.16.0 true
popper2-api 2.11.5-1 true
resource-disposer 0.19 true
scm-api 608.vfa_f971c5a_a_e9 true
script-security 1138.v8e727069a_025 true
snakeyaml-api 1.31-84.ve43da_fb_49d0b true
ssh-credentials 277.v95c2fec1c047 true
sshd 3.242.va_db_9da_b_26a_c3 true
structs 324.va_f5d6774f3a_d true
trilead-api 1.67.vc3938a_35172f true
workflow-api 1153.vb_912c0e47fb_a_ true
workflow-scm-step 400.v6b_89a_1317c9a_ true
workflow-step-api 639.v6eca_cd8c04a_a_ true
workflow-support 813.vb_d7c3d2984a_0 true
ws-cleanup 0.42 true
Jenkins 2.319.1 Plugins installed: apache-httpcomponents-client-4-api 4.5.13-138.v4e7d9a_7b_a_e61 true bootstrap5-api 5.1.3-6 true caffeine-api 2.9.3-65.v6a_47d0f4d1fe true checks-api 1.7.4 true credentials 1087.1089.v2f1b_9a_b_040e4 true credentials-binding 523.vd859a_4b_122e6 true display-url-api 2.3.5 true echarts-api 5.3.2-1 true font-awesome-api 6.0.0-1 true gerrit-trigger 2.36.0 true git 4.11.5 true git-client 3.11.2 true jackson2-api 2.13.3-285.vc03c0256d517 true javax-activation-api 1.2.0-3 true javax-mail-api 1.6.2-6 true jaxb 2.3.6-1 true jquery3-api 3.6.0-3 true jsch 0.1.55.61.va_e9ee26616e7 true junit 1.54.3 true mailer 414.vcc4c33714601 true matrix-project 772.v494f19991984 true mina-sshd-api-common 2.8.0-30.vf9df64641cb_d true mina-sshd-api-core 2.8.0-30.vf9df64641cb_d true plain-credentials 139.ved2b_9cf7587b true plugin-util-api 2.16.0 true popper2-api 2.11.5-1 true resource-disposer 0.19 true scm-api 608.vfa_f971c5a_a_e9 true script-security 1138.v8e727069a_025 true snakeyaml-api 1.31-84.ve43da_fb_49d0b true ssh-credentials 277.v95c2fec1c047 true sshd 3.242.va_db_9da_b_26a_c3 true structs 324.va_f5d6774f3a_d true trilead-api 1.67.vc3938a_35172f true workflow-api 1153.vb_912c0e47fb_a_ true workflow-scm-step 400.v6b_89a_1317c9a_ true workflow-step-api 639.v6eca_cd8c04a_a_ true workflow-support 813.vb_d7c3d2984a_0 true ws-cleanup 0.42 true
Hi,
We have a pretty ennoying bug in our CICD system in my company.
I've set the Jira to Critical. You may want to review that.
Here are the details:
[Context]
I have a Freestyle job with 2 string parameters:
GERRIT_BRANCH=master
GERRIT_REFSPEC=refs/heads/master
SCM / git configuration: see gerrit_trigger_config.png. Important thing here is that I use Strategy for choosing what to build / Gerrit Trigger
[OBSERVATIONS]
If I keep Delete workspace before build starts disabled, the git syncs exactly the head of master.
If I enable Delete workspace before build starts, then the git syncs some old commit but not the head (in my case from February).
As we are heavilly using ws-cleanup and gerrit-trigger, this is a huge issue for us.
One thing I noticed, if I add an empty EXCLUDE and an empty INCLUDE patterns in Delete workspace before build starts advanced configuration, then the git sync works as expected. However in that configuration, the workspace doesn't get cleaned up at the start of the build.
FYI, I can repro on latest Jenkins too (version 2.346.3).
Please suggest any configuration I can do to workaround this until that gets fixed.
Also, if you need anything else, let me know.
Thanks in advance !