Search code examples
azure-pipelinesintegration-testingazurite

Pipeline hangs after starting Azurite


Hanging pipeline

I used the following yml content. Used Azurite 3.15 and 3.9. But no luck. Then I tried as separate jobs. Still unable to pass the integration test.

 stages:
    - stage: Publish
      displayName: 'Build and Publish Artifacts'
      jobs:
      - job: 'NGKMediaManagementAPI'
        steps:
        - task: NodeTool@0 
          inputs:
             versionSpec: 13.x
        - script : npm install -g [email protected]
        - script : mkdir azurite
        - script : azurite

Solution

  • Solved the hanging issue and Passed the Init tests(based on Azurite) in pipeline. use the following command in your yml file. Most importantly start /B azurite will remove the hanging issue !!!

     - task: NodeTool@0 
          inputs:
             versionSpec: 13.x
        - script : npm install -g azurite
          displayName: Install Azurite
        - script : start /B azurite
          displayName: Start azurite
    

    below is success the pipeline enter image description here