Skip to content

Replace widget with console (pull/1214) not immediately working when previous build was success #1222

@novinxy

Description

@novinxy

Jenkins and plugins versions report

Environment
Jenkins: 2.555.1
OS: Windows 11 - 10.0
Java: 21.0.10 - Azul Systems, Inc. (OpenJDK 64-Bit Server VM)
---
PrioritySorter:936.v2c01c6b_84449
TestComplete:2.10
ansicolor:536.v13fa_b_860c267
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.6-193.vf028a_770a_fa_c
asm-api:9.9.1-189.vb_5ef2964da_91
azure-credentials:421.vb_ffd07e951a_2
azure-keyvault:359.v675a_5ee82d51
azure-sdk:259.vf079c96088a_f
badge:3.591.v9074c6c6f0b_9
bootstrap5-api:5.3.8-1024.v127320880c60
bouncycastle-api:2.30.1.84-291.v9f17b_21896e2
branch-api:2.1280.v0d4e5b_b_460ef
build-failure-analyzer:2.6.1
build-name-setter:2.5.1
build-timestamp:1.1.1
build-user-vars-plugin:214.va_eed2ed849ca_
buildtriggerbadge:343.vb_693d3ceda_44
caffeine-api:3.2.3-194.v31a_b_f7a_b_5a_81
checks-api:402.vca_263b_f200e3
cloudbees-folder:6.1100.ve9eed61d16c4
collapsing-console-sections:1.13.0
commons-compress-api:1.28.0-3
commons-lang3-api:3.20.0-109.ve43756e2d2b_4
commons-text-api:1.15.0-218.va_61573470393
configuration-as-code:2077.v41f1011a_5110
copyartifact:795.ve8e151429b_27
credentials:1502.v5c95e620ddfe
credentials-binding:719.v80e905ef14eb_
custom-markup-formatter:39.v291c115db_c4d
customizable-header:295.v2544b_ca_19b_97
dark-theme:652.vea_da_dfea_e769
dashboard-view:2.558.v96b_901978e47
data-tables-api:2.3.7-1558.vf82fa_133ce1c
display-url-api:2.217.va_6b_de84cc74b_
durable-task:664.v2b_e7a_dfff66c
echarts-api:6.0.0-1281.vd3d21a_1ca_cb_4
eddsa-api:0.3.0.1-29.v67e9a_1c969b_b_
editable-choice:71.v02a291ebbe45
emoji-symbols-api:17.0-57.v8d44b_9a_b_d5ea_
envinject:2.934.vc674e76cf954
envinject-api:1.237.v82803a_511906
extra-columns:1.28
flatpickr-api:4.6.13-32.v60a_51029c136
font-awesome-api:7.2.0-983.v3f63c34eddb_9
generic-webhook-trigger:2.4.1
git:5.10.1
git-client:6.6.0
git-parameter:462.vdcf3df2ed2ca_
groovy:537.v741a_5a_f1b_581
gson-api:2.13.2-198.v45e4a_55d9b_a_a_
htmlpublisher:427
http_request:1.25
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:94.vcc3065403257
jackson-annotations2-api:2.21-7.v4777a_f3a_a_d47
jackson2-api:2.21.2-436.v29efdb_7418ff
jackson3-api:3.1.2-73.v3e5485d8b_148
jakarta-activation-api:2.1.4-1
jakarta-mail-api:2.1.5-1
jakarta-xml-bind-api:4.0.6-12.vb_1833c1231d3
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-143.v5979df3304e6
jfrog:1.7.0
job-dsl:3654.vdf58f53e2d15
jobConfigHistory:1356.ve360da_6c523a_
joda-time-api:2.14.1-187.vdf2def02b_8a_1
jquery3-api:3.7.1-682.vfa_cdce169929
json-api:20251224-185.v0cc18490c62c
json-path-api:3.0.0-218.vcd4dd1355de2
junit:1403.vd9d1413fd205
leastload:71.vb_585f7a_dc4f5
locale:614.va_6a_5a_1a_f2b_38
lockable-resources:1504.v8561d98a_104c
mailer:534.v1b_36f5864073
matrix-project:870.v9db_fcfc2f45b_
metrics:4.2.37-494.v06f9a_939d33a_
mina-sshd-api-common:2.16.0-167.va_269f38cc024
mina-sshd-api-core:2.16.0-167.va_269f38cc024
netty-api:4.2.12.Final-25.v1b_911a_364383
oss-symbols-api:442.v99039087229b_
pipeline-agent-build-history:144.v1b_a_42390d9ce
pipeline-build-step:584.vdb_a_2cc3a_d07a_
pipeline-graph-analysis:254.v0f63a_a_447dca_
pipeline-graph-view:837.vb_2654da_2a_fa_b_
pipeline-groovy-lib:797.v90ea_a_9b_e45a_0
pipeline-input-step:551.vdff487c5998c
pipeline-milestone-step:152.v6e22b_8cfc66c
pipeline-model-api:2.2277.v00573e73ddf1
pipeline-model-definition:2.2277.v00573e73ddf1
pipeline-model-extensions:2.2277.v00573e73ddf1
pipeline-rest-api:2.41
pipeline-stage-step:345.va_96187909426
pipeline-stage-tags-metadata:2.2277.v00573e73ddf1
pipeline-utility-steps:2.20.0
plain-credentials:199.v9f8e1f741799
plugin-util-api:7.1330.v47b_46ee2047a_
prism-api:1.30.0-720.v1eb_7496954b_3
prometheus:852.v317db_5d17a_b_0
purge-build-queue-plugin:125.v09ee2147746f
rebuild:338.va_0a_b_50e29397
resource-disposer:0.25
role-strategy:848.va_a_ea_673cf0b_c
saml:4.595.vec7523b_5d543
schedule-build:696.v0a_b_ec7334c89
scm-api:728.vc30dcf7a_0df5
script-security:1399.ve6a_66547f6e1
sidebar-link:2.5.0
simple-theme-plugin:230.v8b_fd91b_b_800c
snakeyaml-api:2.5-149.v72471e9c6371
snakeyaml-engine-api:3.0.1-5.vd98ea_ff3b_92e
ssh-credentials:372.va_250881b_08cd
structs:362.va_b_695ef4fdf9
theme-manager:346.v06cca_64c6a_37
timestamper:1.30
token-macro:477.vd4f0dc3cb_cf1
uno-choice:2.8.9
variant:70.va_d9f17f859e0
view-job-filters:406.va_0ec67147ee2
woodstox-core-api:7.1.1-1.v4d297985f397
workflow-aggregator:608.v67378e9d3db_1
workflow-api:1413.v2ff1a_5e720fa_
workflow-basic-steps:1098.v808b_fd7f8cf4
workflow-cps:4285.v8df38f05c3c5
workflow-durable-task-step:1475.ved562f6ec8b_3
workflow-job:1571.vb_423c255d6d9
workflow-multibranch:821.vc3b_4ea_780798
workflow-scm-step:466.va_d69e602552b_
workflow-step-api:724.v538c2362b_dfb_
workflow-support:1015.v785e5a_b_b_8b_22
ws-cleanup:0.49

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

Windows

Reproduction steps

  1. Create simple pipeline, e.g.
pipeline {
    agent none

    stages {
        stage('Hello') {
            steps {
                echo "Hello world"
            }
        }
    }
}
  1. execute pipeline
  2. observe pipeline overview - everything passes
  3. Introduce syntax error in pipeline, e.g. agen instead of agent
pipeline {
    agen none

    stages {
        stage('Hello') {
            steps {
                echo "Hello world"
            }
        }
    }
}
  1. execute pipeline
  2. observe pipeline overview - grayed out overview (placeholder) from previous build (no error visible)
  3. execute pipeline
  4. observe pipeline overview - correctly displayed error

Expected Results

Error should be displayed on the first execution with error, not after second one

Actual Results

Error is displayed after second build. On the first build with error we shouldn't show placeholder

Anything else?

This issue relates to functionality added in #1214

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions