update pipeline to build develop

This commit is contained in:
RaidMax 2023-06-04 11:09:51 -05:00
parent 3f0bdfe3a9
commit eb8ea5e222

View File

@ -6,6 +6,7 @@ trigger:
include: include:
- release/pre - release/pre
- master - master
- develop
pr: none pr: none
@ -20,6 +21,8 @@ variables:
buildConfiguration: Stable buildConfiguration: Stable
isPreRelease: false isPreRelease: false
jobs:
- job: Build
steps: steps:
- task: UseDotNet@2 - task: UseDotNet@2
displayName: 'Install .NET Core 6 SDK' displayName: 'Install .NET Core 6 SDK'
@ -117,7 +120,8 @@ steps:
script: 'wget https://raidmax.org/downloads/dos2unix.exe' script: 'wget https://raidmax.org/downloads/dos2unix.exe'
failOnStderr: true failOnStderr: true
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts' workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
- job: Transform
steps:
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Convert Linux start script line endings' displayName: 'Convert Linux start script line endings'
inputs: inputs:
@ -156,7 +160,8 @@ steps:
script: 'echo d | xcopy /s /y /f GameFiles $(outputFolder)\GameFiles' script: 'echo d | xcopy /s /y /f GameFiles $(outputFolder)\GameFiles'
workingDirectory: '$(Build.Repository.LocalPath)' workingDirectory: '$(Build.Repository.LocalPath)'
failOnStderr: true failOnStderr: true
- job: Artifact
steps:
- task: ArchiveFiles@2 - task: ArchiveFiles@2
displayName: 'Generate final zip file' displayName: 'Generate final zip file'
inputs: inputs:
@ -171,6 +176,16 @@ steps:
targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip' targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
artifact: 'IW4MAdmin-$(Build.BuildNumber).zip' artifact: 'IW4MAdmin-$(Build.BuildNumber).zip'
- task: PublishPipelineArtifact@1
displayName: 'Publish artifact for analysis'
inputs:
targetPath: '$(outputFolder)'
artifact: 'IW4MAdmin.$(buildConfiguration)'
publishLocation: 'pipeline'
- job: Publish
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/develop'))
steps:
- task: FtpUpload@2 - task: FtpUpload@2
displayName: 'Upload zip file to website' displayName: 'Upload zip file to website'
inputs: inputs:
@ -237,10 +252,3 @@ steps:
} }
Invoke-RestMethod @params Invoke-RestMethod @params
- task: PublishPipelineArtifact@1
displayName: 'Publish artifact for analysis'
inputs:
targetPath: '$(outputFolder)'
artifact: 'IW4MAdmin.$(buildConfiguration)'
publishLocation: 'pipeline'