Skip to content

Commit

Permalink
docs: adds configuration template to revert standard naming conventio…
Browse files Browse the repository at this point in the history
…n for Azure Pipelines (#20208)

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
  • Loading branch information
jessehouwing and HonkingGoose committed Feb 4, 2023
1 parent 9ead5d2 commit 6d638ef
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/modules/manager/azure-pipelines/readme.md
Expand Up @@ -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:

Expand Down

0 comments on commit 6d638ef

Please sign in to comment.