DevOps Starter Azure DevOps

Neil HaddleyApril 26, 2021

Everything you need for developing, deploying, and monitoring your application.

DevOpsAzureazure-devopspipelinesci-cdstarter

DevOps Starter makes it easy to get started on Azure using either GitHub actions or Azure DevOps

I clicked "here" to switch between GitHub actions and Azure DevOps

I clicked "here" to switch between GitHub actions and Azure DevOps

I selected Azure DevOps and Node

I selected Azure DevOps and Node

I selected Express

I selected Express

I selected Web App for Containers

I selected Web App for Containers

I used Web App on Windows with Pricing tier "F1 Free"

I used Web App on Windows with Pricing tier "F1 Free"

Azure resources were deployed

Azure resources were deployed

The CI/CD pipeline completed

The CI/CD pipeline completed

I clicked Clone to edit code

I clicked Clone to edit code

I opened Visual Studio Code

I opened Visual Studio Code

I made an update by adding an extra description line

I made an update by adding an extra description line

I pushed changes to Azure git

I pushed changes to Azure git

The new commit was successful

The new commit was successful

The pipeline was running

The pipeline was running

The pipeline completed

The pipeline completed

The updated code was deployed to production

The updated code was deployed to production

I viewed the pipeline

I viewed the pipeline

I viewed the Node.js tool installer YAML

I viewed the Node.js tool installer YAML

I viewed the Agent job 1 YAML

I viewed the Agent job 1 YAML

Agent job 1

YAML
1pool:
2  name: Azure Pipelines
3steps:
4- task: NodeTool@0
5  displayName: 'Use Node version'
6  inputs:
7    versionSpec: 8.4
8
9- task: Npm@0
10  displayName: 'Install application dependencies'
11  inputs:
12    cwd: Application
13    arguments: '--force'
14
15- task: Npm@0
16  displayName: 'Install test dependencies'
17  inputs:
18    cwd: Tests
19    arguments: '--force'
20
21- task: gulp@0
22  displayName: 'Run unit tests'
23  inputs:
24    gulpFile: Tests/gulpfile.js
25    targets: unittest
26    gulpjs: 'Tests/node_modules/gulp/bin/gulp.js'
27    publishJUnitResults: true
28
29- task: ArchiveFiles@2
30  displayName: 'Archive application'
31  inputs:
32    rootFolderOrFile: '$(System.DefaultWorkingDirectory)/Application'
33    includeRootFolder: false
34    archiveFile: '$(Build.ArtifactStagingDirectory)/Application$(Build.BuildId).zip'
35
36- task: ArchiveFiles@2
37  displayName: 'Archive tests'
38  inputs:
39    rootFolderOrFile: '$(System.DefaultWorkingDirectory)/Tests'
40    includeRootFolder: false
41    archiveFile: '$(Build.ArtifactStagingDirectory)/Tests$(Build.BuildId).zip'
42
43- task: CopyFiles@2
44  displayName: 'Copy ARM templates'
45  inputs:
46    SourceFolder: armTemplates
47    TargetFolder: '$(build.artifactstagingdirectory)'
48
49- task: PublishBuildArtifacts@1
50  displayName: 'Publish Artifact: drop'

References