Skip to content

Build status for pipeline building multiple projects and branches #77

@hbazan-pp

Description

@hbazan-pp

Jenkins and plugins versions report

Environment

I don't have access to jenkins settings

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

I don't have access to jenkins settings

Reproduction steps

  1. Pipeline that builds multiple projects and branches on those projects. I have a description with an html table with build status for the latest build per project/branch
  2. My current parametrization for the icons is: https://jenkins....com/job/my-generic-pipeline/badge/icon?build=lastCompleted:$%7bparams.TARGET=dev%7d,lastCompleted:$%7bparams.PROJECT=my-ui-project%7d where TARGET and PROJECT are build parameters defined either from UI or from webhooks

Expected Results

I expect to get accurate build status per project and branch

Actual Results

All icons are shown, but the status is not accurate. Most of them show PASSING, even for projects that only one of the branches have been executed (i.e. dev did pass, main never ran). Or some have the opposite to what I expected, when dev failed and main succeeded, the icons show the opposite.

Anything else?

Is there a way to filter using environment variables I set during the plan execution? env.SOMETHING is set based on several situations, and I would like to have a build status icon for those too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions