I auto-generate a bunch of build jobs and build pipeline views with the Job Generator plugin and the Job DSL plugin. My jobs use the Conditional Build Step plugin and can launch sub-jobs depending on runtime conditions. For instance, if we find a smoke test defined in the source at runtime, we deploy the system to a testbed and run the smoke tests against it. If there are no smoke tests defined, we neither deploy the code nor run the tests. Deploying the code and running smoke tests are each a Jenkins job in their own rights.
Thus, when I run a pipeline where there are no smoke tests, those two tasks are un-run, and the pipeline view shows them as blue (not successful-blue, just blue—at my site, success is green). In the nested view holding the pipeline views, however, the ball for that pipeline shows red, presumably because not all the jobs succeeded (as not all of them ran).
Is there a good way to show my users the true outcome of these pipelines? I specifically define the “true outcome” as the result of the first job in the pipeline, as it collects all test artifacts and results from all the downstream jobs.
Thanks in advance,
--Rob