79678482

Date: 2025-06-25 05:02:23
Score: 0.5
Natty:
Report link
curl -X POST \
  https://dev.azure.com/{org}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=7.0 \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $(System.AccessToken)" \
  -d '{
    "resources": {
      "repositories": {
        "self": {
          "refName": "refs/heads/branch"
        }
      }
    },
    "stagesToSkip": [
      "AKS_MAR_N",
      "AKS_UBU_N_1"
    ]
  }'

After the investigation I found that we don't need any specific conditions with parameters/variables runOnlyStage is not supporting and instead we can use the stagesToSkip to skip the stages what we don't want to run.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shyam Reddy