Direct Viewing of Generated Pipeline Files with Syntax Highlighting
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
Introducing the ability to directly view generated pipeline files within the GitLab interface, complete with syntax highlighting. This feature eliminates the need to download these files, streamlining your workflow and making it easier to quickly review or debug your pipelines.
Problem to solve
Currently, to view a generated pipeline file like gitlab-child-pipeline.yml, users have to navigate through several steps:
- Click on "Job artifacts: browse."
- Select the generated pipeline file.
- Encounter a message saying,
The source could not be displayed because it is stored as a job artifact. You can download it instead. - Click on "download it."
- Finally, click on the downloaded file in the browser to view it.
This is cumbersome and interrupts the workflow, especially when quick checks are needed. Moreover, other parts of GitLab offer syntax-highlighted editing for pipelines, but this feature is missing for viewing generated pipeline files.
Proposal
It would be nice if all pipelines, generated or not, provided a link to a syntax-highlighted view of their pipeline file. Perhaps adding a "View File" button next to the "Download" button for generated pipeline files under "Job artifacts." Clicking this button will open the file in a new tab or window (or pipeline editor) within the GitLab interface, displaying its content with syntax highlighting.
Intended users
- Delaney (Development Team Lead)
- Presley (Product Designer)
- Sasha (Software Developer)
- Priyanka (Platform Engineer)
- Rachel (Release Manager)
- Simone (Software Engineer in Test)
Feature Usage Metrics
We can track the usage of this feature by:
- The number of times the "View File" button is clicked?
- The amount of time spent viewing the file within the GitLab interface?
Does this feature require an audit event?
No, viewing a file should not require an audit event.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.