Skip to content

Extract Jobs and Events from GitLab CI Files

Extract job details from multiple GitLab CI configuration files and generate a combined structured output.

Analyze the provided GitLab CI configuration files.
Each file corresponds to a project:
- File 1 β†’ <PROJECT_1_NAME>
- File 2 β†’ <PROJECT_2_NAME>
- File 3 β†’ <PROJECT_3_NAME>
...
- File N β†’ <PROJECT_N_NAME>
Extract:
- Project Name
- Stage
- Job Name
- Job Exists
- Is Manual
- Trigger Event
- Enabled
Rules:
- Map each file to its corresponding project name
- Extract stage and job name from each GitLab CI configuration
- If a job is not present in a project, write "Job does not exist"
- If a job uses "when: manual", mark Is Manual = Yes, else No
- Extract trigger events from rules / only / except / workflow
- If trigger event is unclear, write "Review required"
- Create separate rows if one job supports multiple trigger events
- Create one row per (Project + Job + Trigger Event)
- Combine all projects into a single CSV/table output
- Output must be structured and concise
- Do not add explanations
  • Replace placeholders before use
  • Extend mapping if more files are provided
  • Ensure correct file-to-project mapping
  • Verify results before applying changes