Pipeline tasks
StrideAI adds five tasks to Azure Pipelines. They run on your agents with the pipeline’s own identity and, when you want AI, with your own model. The model is optional for every task: without one, the review uses its fixed rules and the reports are written without AI.
| Task | Run it | What it does |
|---|---|---|
StrideAIReview@0 |
In the branch policy pipeline | Checks added lines for secrets, risky code and floating versions; reviews with your model; comments once per finding |
StrideAIReleaseNotes@0 |
After a release build | Features, fixes, pull requests and commits since the last successful run, with highlights for business readers |
StrideAIWatch@0 |
On a schedule | Pipelines that fail or slow down, bug spikes, unusual bulk edits; findings arrive as a chat |
StrideAITestPlan@0 |
After a release build or on a schedule | Keeps one test plan per project: a suite per layer and per feature, test cases from acceptance criteria, coverage and sign-off report, optional quality gate |
StrideAIChecks@0 |
On a schedule | Security alerts (built-in OSV and secret scan, Advanced Security, SARIF) and backlog hygiene; publishes alerts for the security radar |
Shared model inputs
Section titled “Shared model inputs”Every task that can use a model takes the same inputs:
provider: azure # azure | openai | anthropic | compatibleendpoint: https://contoso.openai.azure.com # HTTPS; optional for OpenAI and Anthropicmodel: gpt-4.1 # model or deploymentapiKey: $(StrideAIKey) # always a secret variableapiVersion: # Azure only; empty for the v1 APIPermissions
Section titled “Permissions”The tasks do not use the extension’s scopes; they run with the pipeline’s identity. Give the build service:
- Contribute to pull requests on the repository, for the review task to comment.
- Contribute on the wiki, for tasks that save pages (
wikiPath). - View alerts in Advanced Security, for the checks task to read Advanced Security alerts.
Create the project wiki once and reference it in the pipeline’s resources.repositories: with Protect access to repositories in YAML pipelines on, the job’s token reaches only the repositories the YAML names, and the wiki is one.
Privacy
Section titled “Privacy”The tasks send the lines a pull request adds (secrets masked), work item and pull request titles, or the report to the model endpoint you configure, and nothing to anyone else. The built-in dependency scan sends only package names and versions to the OSV database. If the agent reaches the internet through a proxy that re-signs TLS, configure it with --sslcacert.
Demo pipeline
Section titled “Demo pipeline”A ready-made pipeline that runs the tasks against a project, for a demo or a smoke test after installing, is in the repository as azure-pipelines-strideai-demo.yml.
# Pull request validation- task: StrideAIReview@0 inputs: provider: azure endpoint: https://contoso.openai.azure.com model: gpt-4.1 apiKey: $(StrideAIKey) failOn: secrets
# After a release build- task: StrideAIReleaseNotes@0 inputs: wikiPath: Release notes/$(Build.BuildNumber)
# Every morning- task: StrideAIWatch@0 inputs: windowHours: 24 ignorePeople: Project Collection Build Service
# After each release build- task: StrideAITestPlan@0 inputs: planName: Shop Test Pool layers: E2E Business Logic | API and Integration | Regression wikiPath: QA/Test pool provider: azure endpoint: https://contoso.openai.azure.com model: gpt-4.1 apiKey: $(StrideAIKey)
# On a schedule- task: StrideAIChecks@0 inputs: team: Web Team failOn: critical wikiPath: StrideAI/Checks/Latest