From 6d638efba4e8802dfc82e5735497bc67dbdf5e9b Mon Sep 17 00:00:00 2001 From: Jesse Houwing <jesse.houwing@gmail.com> Date: Sat, 4 Feb 2023 09:56:59 +0100 Subject: [PATCH] docs: adds configuration template to revert standard naming convention for Azure Pipelines (#20208) Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> --- lib/modules/manager/azure-pipelines/readme.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/modules/manager/azure-pipelines/readme.md b/lib/modules/manager/azure-pipelines/readme.md index c746b53014..7903346f2b 100644 --- a/lib/modules/manager/azure-pipelines/readme.md +++ b/lib/modules/manager/azure-pipelines/readme.md @@ -11,7 +11,23 @@ To opt into running it, set the following: } ``` -It works by container and repository resources from the `resources` block as well as tasks from `steps` blocks. +In most cases only major version numbers are specified in YAML when referencing a task version: `NodeTool@0`. +By default, Renovate replaces these with the full version: `NodeTool@0.216.0`. + +To use the standard convention for Azure Pipelines, add: + +```json +{ + "packageRules": [ + { + "matchDatasources": ["azure-pipelines-tasks"], + "extractVersion": "^(?<version>\\d+)" + } + ] +} +``` + +Renovate now updates container and repository resources from the `resources` block, plus tasks from `steps` blocks. For example: -- GitLab