feat(azuredevops): add environment_pattern for extracting environment names from job/stage names (#8671) This enhancement addresses the issue where the Azure DevOps plugin was unable to correctly detect production deployments when the environment name is embedded in job/stage names rather than being in a standard format. Changes: - Add `environment_pattern` scope config field that supports regex capture groups to extract environment names from job/stage names - Collect both Job and Stage records from the timeline API (previously only Job) - Add `identifier`, `type`, and `parent_id` fields to the Job model - Update environment detection logic: - If environment_pattern is configured, extract the environment name first - Apply production_pattern to the extracted environment name - Fall back to matching production_pattern against job name if no extraction - Fix default environment behavior: only default to PRODUCTION when production_pattern is not configured (was defaulting PRODUCTION always) - Add comprehensive tests for the new functionality Example configuration for pipelines with jobs like 'deploy_xxxx-prod_helm': - deployment_pattern: deploy - production_pattern: prod - environment_pattern: (?:deploy|predeploy)[_-](.+?)(?:[_-](?:helm|terraform))?$ This extracts 'xxxx-prod' from the job name and then applies production_pattern to correctly identify it as a production deployment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Apache DevLake is an open-source dev data platform that ingests, analyzes, and visualizes the fragmented data from DevOps tools to extract insights for engineering excellence, developer experience, and community growth.
Apache DevLake is used by Engineering Leads, Open Source Software Maintainers and development teams looking to make better sense of their development process and to bring a more data-driven approach to their own practices. You can ask Apache DevLake many questions regarding your development process. Just connect and query.
The main way you interact with DevLake is through the integrated dashboards powered by Grafana.
Dashboards for Engineering Leads
Dashboards for OSS Maintainers
DevLake supports connections to many popular development tools, including GitHub, GitLab, Jenkins, Jira, Sonarqube and more. Here you can find all data sources supported by DevLake, their scopes, supported versions and more!
You can set up Apache DevLake by following our step-by-step instructions for either Docker Compose or Helm. Feel free to ask the community if you get stuck at any point.
Please see detailed usage instructions. Here's an overview on how to get started using DevLake.
Install using either Docker Compose or Helm.
The DevLake Configuration UI will guide you through the process (a Blueprint) to define the data connections, data scope, transformation and sync frequency of the data you wish to collect.
You can track the progress of the Blueprint you have just set up.
Once the first run of the Blueprint is completed, you can view the corresponding dashboards.
If the pre-built dashboards are limited for your use cases, you can always customize or create your own metrics or dashboards with SQL.
Please read the contribution guidelines before you make contribution. The following docs list the resources you might need to know after you decided to make contribution.
If you plan to contribute code to Apache DevLake, we have instructions on how to get started with setting up your Development environemtn.
One of the best ways to get started contributing is by improving DevLake's documentation.
Message us on Slack
This project is licensed under Apache License 2.0 - see the LICENSE file for details.