Azure Devops artefact and release pipelines
I guess the concept is pretty easy but just that we just lost in piles of documentation.
Key concepts is when you build make sure you publish your output as an artefact. How do you do that? Depends on whether you're building a .netcore or javascript based project.
If you're using dotnet core, you just use "publish and zip" artifact.
If you're using javascripts, then you need to publish your artifact to drop folder.
For eample, we have PublishBuildArtifact here generate dll into a drop folder
steps:
- script: dotnet build src/AzureFunctionApp.sln --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- script: dotnet publish src/AzureFunctionApp.sln --configuration $(buildConfiguration)
displayName: 'dotnet publish src/AzureFunctionApp.sln $(buildConfiguration)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
From here onwards, you just go to create a release pipelines and points to this build. Artifact are automatically acknowledge and downloaded - as long as you configure PUBLISH artifact regardless of whether it is a .net or a javascripts based project.
Comments