Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: $(SourceBranchName).$(Date:yyyyMMdd)$(Rev:.r) #Show Build Name, this is build number
- trigger:
- batch: true
- branches:
- include:
- - DEV
- paths:
- include:
- - Demo.asp.net
- jobs:
- - job:
- displayName: Build Send Data Tool
- pool: localagent
- steps:
- #restore
- - task: DotNetCoreCLI@2
- displayName: Restore package
- inputs:
- command: 'restore'
- projects: XXXXX.sln
- feedsToUse: config
- nugetConfigPath: nuget.config
- verbosityPack: 'detailed'
- #置換參數
- - task: qetza.replacetokens.replacetokens-task.replacetokens@2
- displayName: 'Replace Config Parameter'
- inputs:
- rootDirectory: demo
- targetFiles: appsettings.dev.json
- actionOnMissing: fail
- #NET Core Publish
- - task: DotNetCoreCLI@2
- displayName: Build & Publish Application
- inputs:
- Command: 'publish'
- publishWebProjects: false
- projects: XXXXX.sln
- arguments: '--self-contained true -o $(Build.artifactstagingdirectory)\app -r win-x64'
- zipAfterPublish: false
- feedsToUse: config
- nugetConfigPath: nuget.config
- configuration: debug
- - task: PublishBuildArtifacts@1
- displayName: Upload file
- inputs:
- PathtoPublish: '$(Build.StagingDirectory)'
- ArtifactName: 'drop'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement