feat(azuredevops): add environment_pattern for extracting environment… #8671
+250
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… names from job/stage names
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:
environment_patternscope config field that supports regex capture groups to extract environment names from job/stage namesidentifier,type, andparent_idfields to the Job modelExample configuration for pipelines with jobs like 'deploy_xxxx-prod_helm':
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
pr-type/bug-fix,pr-type/feature-development, etc.Summary
What does this PR do?
Does this close any open issues?
Closes 8869
Screenshots
Include any relevant screenshots here.
Other Information
Any other information that is important to this PR.