Posts

Showing posts with the label YAML

Azure pipeline deployment

Image
  Azure pipeline deployment Tasks for background service Set Environment Variables steps: - powershell: |    [System.Environment]::SetEnvironmentVariable('DOTNET_ENVIRONMENT', $env:EnvironmentName, 'machine')       displayName: 'Set Environment Variable'   env:     environmentName: $(EnvironmentName) Extract Files variables:   Machine.Deploy.Path: 'c:\rm_agent\deploy'   ServiceName: 'QT.EmailRouter' steps:   displayName: 'Extract files '   inputs:     archiveFilePatterns: '$(System.DefaultWorkingDirectory)/_EmailRouter/QT.EmailRouter/QT.EmailRouter.zip'     destinationFolder: '$(Machine.Deploy.Path)\$(ServiceName)' - task: ExtractFiles@1 Service Install steps: - powershell: | Write-Host $env:sourcePath Write-Host $env:directoryPath Write-Host $env:exeName Write-Host $env:serviceAccount Write-Host $env:serviceName Write-Host $env:serviceDescription Write-Host $env:serviceStart ...

Azure Pipeline YAML for API that requires MSI

 variables: - name: buildConfiguration   value: 'Release' - name: buildPlatform   value: 'Any CPU' - name: major   value: 2 - name: minor   value: 0 - name: patch   value: $[counter(format('{0}.{1}',variables['Major'],variables['Minor']), 0)] - name: sonarQubeKeyRoot   value: $[format('{0}_StorePricing',replace(variables['System.TeamProject'], ' ', '_'))] name: $(Major).$(Minor).$(Patch) trigger:   branches:     include:     - main pool:   name: Azure Pipelines   vmImage: 'windows-2022'   demands:   - msbuild   - visualstudio jobs: - job: analyzeAndTest   displayName: 'Analyze and Test'      steps:            - task: DotNetCoreCLI@2     displayName: 'API dotnet restore'     inputs:       command: 'restore'       projects: |         **/XXXXX.sln       feedsToUse: 'select'...

Azure DevOps Notes

 Azure Dev Ops: Repo:     Repos > Files shows what is on Master. Stuff does not get here until "Pull Request" is approved. Pipeline section - Pipeline:    Pipeline is the overall process that will happen on each of the environments.    Pipeline creating process has Configure step that you pick your selected YAML    Pipeline running creates an "artifact" Pipelines > Pipelines =>  RemoteOrder API => click blue "Run Pipeline" button       => select branch which should now have "Mine" with "stories/360094" under which you pick       => click blue "Run" button in SE      => Wait again for it to go from Queued to Success for all      => remember the pipeline id and # Pipeline section - Releases: REJECT TO FREE UP DEV BOX    Must reject prior release on that box (Dev or one of the others) first even, if you were the last to release to th...