Skip to content

GitLab CI Kotlin DSLopensavvy.gitlab.ciArtifactsbrowserPerformance

browserPerformance

Collects browser performance test reports.

The browser performance report collects Browser Performance Testing metrics as an artifact. This artifact is a JSON file output by the Sitespeed plugin. GitLab can display the results of only one report in the merge request browser performance testing widget.

GitLab cannot display the combined results of multiple browser_performance reports.

Example

val performanceTest by job {
    script {
        shell("sitespeed.io --outputFolder sitespeed-results https://example.com")
    }

    artifacts {
        browserPerformance("sitespeed-results/data/performance.json")
    }
}

External resources