nad
nad

Reputation: 1100

Azure Pipelines (YAML) Job not running when using job type 'deployment'

Deployment job is not running at all. Returns a failed status without any error message. Here's the test YAML pipeline:

trigger: none

stages:
- stage: Deploy
  jobs:
  - deployment: Deploy_Test
    environment:
      name: 'DOKS-Production'
      resourceName: 'default'
    pool:
      vmImage: 'ubuntu-latest'
    strategy:
      runOnce:
        deploy:
          steps:
          - script: echo deploy stage ran

enter image description here

enter image description here

Oddly when I switch over to the following, it works fine.

jobs:
  - job: Deploy
    displayName: Deploy
    pool:
      vmImage: 'ubuntu-latest'
    steps:
      - script: echo deploy stage ran

Upvotes: 1

Views: 551

Answers (1)

nad
nad

Reputation: 1100

For anyone who had run into the same issue, I managed to get it working by simply creating a new environment in Azure DevOps. Seems like the existing environment was corrupt in someway.

Upvotes: 1

Related Questions