Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Azure Pipeline manuell erstellen

05.04.2023 (👁5289)


Documentation in Schritten wie man eine Pipeline manuell erstellt, nach vorlage von Rahul Nath

 

AZURE FUNCTION DEVOPS | Setting up a Build Deploy Pipeline | Going Serverless |

 

 

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

In die Felder eintragen

Command: Build

Path to project: **/*.csproj

Arguments:

    command'build'

    projects'**/*.csproj'

    arguments'--output $(Build.BinariesDirectorey/publish_output --confiruation Realease'

 

 

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Dann unter .NET CORE auswählen

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Add Archive files

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Add Publish build artifacts

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Save and run

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung

Azure-pipelines.yml aus video

# 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

 

trigger:

master

 

pool:

  vmImage'ubuntu-latest'

 

steps:

taskDotNetCoreCLI@2

  inputs:

    command'build'

    projects'**/*.csproj'

    arguments'--output $(Build.BinariesDirectory)/publish_output --configuration Release'

 

taskArchiveFiles@2

  inputs:

    rootFolderOrFile'$(Build.BinariesDirectory)/publish_output'

    includeRootFolderfalse

    archiveType'zip'

    archiveFile'$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'

    replaceExistingArchivetrue

 

taskPublishBuildArtifacts@1

  inputs:

    PathtoPublish'$(Build.ArtifactStagingDirectory)'

    ArtifactName'drop'

    publishLocation'Container'

Standard build file YAML mit Github function .NET beinhaltet core (also KEIN .netframework wählen)

# ASP.NET

# Build and test ASP.NET projects.

# Add steps that publish symbols, save build artifacts, deploy, and more:

https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

 

trigger:

master

 

pool:

  vmImage'windows-latest'

 

variables:

  solution'**/*.sln'

  buildPlatform'Any CPU'

  buildConfiguration'Release'

 

steps:

taskNuGetToolInstaller@1

 

taskNuGetCommand@2

  inputs:

    restoreSolution'$(solution)'

 

taskVSBuild@1

  inputs:

    solution'$(solution)'

    msbuildArgs'/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'

    platform'$(buildPlatform)'

    configuration'$(buildConfiguration)'

 

taskVSTest@2

  inputs:

    platform'$(buildPlatform)'

    configuration'$(buildConfiguration)'