Skip to content

Instantly share code, notes, and snippets.

@AaronSadlerUK
Last active June 9, 2020 20:30
Show Gist options
  • Save AaronSadlerUK/53eaa625f23c30853e9056230ef46afd to your computer and use it in GitHub Desktop.
Save AaronSadlerUK/53eaa625f23c30853e9056230ef46afd to your computer and use it in GitHub Desktop.
Azure Dev Ops Build Pipeline for Umbraco 8
pool:
name: CHANGEME
demands:
- npm
- node.js
- msbuild
- visualstudio
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: CHANGEME
verbose: false
- task: gulp@0
displayName: 'gulp '
inputs:
gulpFile: CHANGEME/gulpfile.js
workingDirectory: CHANGEME
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 5.5.0'
inputs:
versionSpec: 5.5.0
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: 'CHANGEME'
- task: VSBuild@1
displayName: 'Build solution'
inputs:
solution: 'CHANGEME'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.ArtifactStagingDirectory)\\"'
platform: 'CHANGEME'
configuration: 'CHANGEME'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
ArtifactName: 'CHANGEME'
condition: succeededOrFailed()
@JasonElkin
Copy link

Recommend using npm "ci" over "install", it's much faster.

https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable

@AaronSadlerUK
Copy link
Author

Thanks!

I have changed this on a few pipelines, I can't say I've noticed an improvement though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment