Sast report in CI View: Tab only appears after job has successfully run

Problem

When a pipeline has finished & SAST CI job is successfull, with SAST set up, we are able to see a tab in the Pipeline's page.

However, while the pipeline is running and therefor there's not yet a report for SAST, or when the SAST job failed to create the SAST report, we can't see the security reports tab in the Pipeline's page.

running finsihed
Screen_Shot_2018-03-26_at_14.40.24 Screen_Shot_2018-03-26_at_14.40.36

It is odd that the tab only appears when there is a report, specially when we show the tabs for pipeline and jobs for skipped pipelines without any content.

Proposal

Show the tab always. If the pipeline is still running, show information about the report not being ready yet. If the job failed, consider linking into the job log.

/cc @plafoucriere @gonzoyumo

Edited Mar 26, 2018 by Filipa Lacerda
Assignee Loading
Time tracking Loading