Skip to content

Instantly share code, notes, and snippets.

@javaadpatel
Last active April 26, 2020 06:53
Show Gist options
  • Save javaadpatel/f30b1e07a5bb87ac88ae0c944db0d9d7 to your computer and use it in GitHub Desktop.
Save javaadpatel/f30b1e07a5bb87ac88ae0c944db0d9d7 to your computer and use it in GitHub Desktop.
Azure Pipeline to execute Flood Element tests (repository: https://github.com/javaadpatel/Medium_FloodElement_AzureDevops)
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
variables:
NODE_ENV: "Production"
MAX_RETRIES: 3
trigger:
- master
pr: none
schedules:
- cron: "0 */6 * * *"
displayName: Six Hourly build
branches:
include:
- master
always: true
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
displayName: "Use Node 10.x"
inputs:
versionSpec: 10.x
checkLatest: true
- task: Npm@1
displayName: "npm install"
inputs:
workingDir: ./
verbose: false
- task: Npm@1
displayName: "npm run"
inputs:
command: custom
workingDir: ./
verbose: false
customCommand: "run pipeline"
timeoutInMinutes: 20
- task: CopyFiles@2
displayName: "Copy files"
inputs:
Contents: |
**/logs/**
**/floodTests/tmp/element-results/**
TargetFolder: "$(Build.ArtifactStagingDirectory)"
condition: succeededOrFailed()
- task: PublishPipelineArtifact@1
displayName: "Publish artifacts"
inputs:
targetPath: "$(Build.ArtifactStagingDirectory)"
artifact: deploy
condition: succeededOrFailed()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment