0

The deploy stage of the pipeline fails without error after build stage completes successfully. Enabling system diagnostics does not give in any additional information (see the screenshot below).

enter image description here

The following pipelines yaml file was used:

trigger:
- master

resources:
- repo: self

variables:
  vmImageName: 'ubuntu-latest'

stages:
- stage: Build
  displayName: Build stage
  jobs:
    - job: Build
      displayName: Build
      pool:
        vmImage: $(vmImageName)
      steps:
      - task: CmdLine@2
        inputs:
          script: |
            ls -la
          
- stage: Deploy
  displayName: Deploy Notebook Instance Stage
  dependsOn: Build
  jobs:
  - deployment: Deploy
    displayName: Deploy
    pool:
      vmImage: $(vmImageName)
    environment: 'myenv.default'
    strategy:
      runOnce:
        deploy:
          steps:
            - task: CmdLine@2
              inputs:
                script: echo Some debug text!

ejlouw
  • 305
  • 4
  • 14

1 Answers1

2

I used your script and I change only environment as I don't have myenv.default and all is fine.

enter image description here

Please double check your environment setting.

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107