CICD- given key not present in the dictionary

Mehulkumar Jaishwal 0 Reputation points
2025-03-01T19:07:29.9533333+00:00
trigger:
  branches:
    include:
      - main  

pool:
  name: vibe  # Use the 'vibe' agent pool
  demands:
    - agent.name -equals Kibe_test  

variables:
  # Assuming credentials are handled as pipeline variables or service connections
  System.Debug: true
  TEST_VAR: "HelloWorld"

jobs:
  - job: Build
    timeoutInMinutes: 120  # Timeout for the entire job (equivalent to Jenkins' pipeline timeout)
    steps:
      - task: Checkout@1
        displayName: 'Clone Repository to Agent'

      - script: |
          echo "Add other tasks to build, test, and deploy your project."
          echo "See https://mehul/yaml"
          echo "TEST_VAR: $(TEST_VAR)"
        displayName: 'Echo TEST_VAR'


Error - when agent runs the pipeline it's throw error "given key not present in the dictionary"

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,665 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.