revert pipeline back to one job
This commit is contained in:
parent
5a22a759a8
commit
50593f5a93
@ -22,7 +22,7 @@ variables:
|
|||||||
isPreRelease: false
|
isPreRelease: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Build
|
- job: Build & Deploy
|
||||||
steps:
|
steps:
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
displayName: 'Install .NET Core 6 SDK'
|
displayName: 'Install .NET Core 6 SDK'
|
||||||
@ -121,77 +121,68 @@ jobs:
|
|||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
|
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
|
||||||
|
|
||||||
- job: Transform
|
- task: CmdLine@2
|
||||||
dependsOn: Build
|
displayName: 'Convert Linux start script line endings'
|
||||||
steps:
|
inputs:
|
||||||
- task: CmdLine@2
|
script: |
|
||||||
displayName: 'Convert Linux start script line endings'
|
echo changing to encoding for linux start script
|
||||||
inputs:
|
dos2unix $(outputFolder)\StartIW4MAdmin.sh
|
||||||
script: |
|
dos2unix $(outputFolder)\UpdateIW4MAdmin.sh
|
||||||
echo changing to encoding for linux start script
|
echo creating website version filename
|
||||||
dos2unix $(outputFolder)\StartIW4MAdmin.sh
|
@echo IW4MAdmin-$(Build.BuildNumber) > $(Build.ArtifactStagingDirectory)\version_$(releaseType).txt
|
||||||
dos2unix $(outputFolder)\UpdateIW4MAdmin.sh
|
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
|
||||||
echo creating website version filename
|
|
||||||
@echo IW4MAdmin-$(Build.BuildNumber) > $(Build.ArtifactStagingDirectory)\version_$(releaseType).txt
|
|
||||||
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
|
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: 'Move script plugins into publish directory'
|
displayName: 'Move script plugins into publish directory'
|
||||||
inputs:
|
inputs:
|
||||||
SourceFolder: '$(Build.Repository.LocalPath)\Plugins\ScriptPlugins'
|
SourceFolder: '$(Build.Repository.LocalPath)\Plugins\ScriptPlugins'
|
||||||
Contents: '*.js'
|
Contents: '*.js'
|
||||||
TargetFolder: '$(outputFolder)\Plugins'
|
TargetFolder: '$(outputFolder)\Plugins'
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: 'Move binary plugins into publish directory'
|
displayName: 'Move binary plugins into publish directory'
|
||||||
inputs:
|
inputs:
|
||||||
SourceFolder: '$(Build.Repository.LocalPath)\BUILD\Plugins\'
|
SourceFolder: '$(Build.Repository.LocalPath)\BUILD\Plugins\'
|
||||||
Contents: '*.dll'
|
Contents: '*.dll'
|
||||||
TargetFolder: '$(outputFolder)\Plugins'
|
TargetFolder: '$(outputFolder)\Plugins'
|
||||||
|
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: 'Move webfront resources into publish directory'
|
displayName: 'Move webfront resources into publish directory'
|
||||||
inputs:
|
inputs:
|
||||||
script: 'xcopy /s /y /f wwwroot $(outputFolder)\wwwroot'
|
script: 'xcopy /s /y /f wwwroot $(outputFolder)\wwwroot'
|
||||||
workingDirectory: '$(Build.Repository.LocalPath)\BUILD\Plugins'
|
workingDirectory: '$(Build.Repository.LocalPath)\BUILD\Plugins'
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
|
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: 'Move gamescript files into publish directory'
|
displayName: 'Move gamescript files into publish directory'
|
||||||
inputs:
|
inputs:
|
||||||
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
|
- task: ArchiveFiles@2
|
||||||
dependsOn: Transform
|
displayName: 'Generate final zip file'
|
||||||
steps:
|
inputs:
|
||||||
- task: ArchiveFiles@2
|
rootFolderOrFile: '$(outputFolder)'
|
||||||
displayName: 'Generate final zip file'
|
includeRootFolder: false
|
||||||
inputs:
|
archiveType: 'zip'
|
||||||
rootFolderOrFile: '$(outputFolder)'
|
archiveFile: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
includeRootFolder: false
|
replaceExistingArchive: true
|
||||||
archiveType: 'zip'
|
|
||||||
archiveFile: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
|
||||||
replaceExistingArchive: true
|
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
inputs:
|
inputs:
|
||||||
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
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish artifact for analysis'
|
displayName: 'Publish artifact for analysis'
|
||||||
inputs:
|
inputs:
|
||||||
targetPath: '$(outputFolder)'
|
targetPath: '$(outputFolder)'
|
||||||
artifact: 'IW4MAdmin.$(buildConfiguration)'
|
artifact: 'IW4MAdmin.$(buildConfiguration)'
|
||||||
publishLocation: 'pipeline'
|
publishLocation: 'pipeline'
|
||||||
|
|
||||||
- job: Publish
|
|
||||||
dependsOn: Artifact
|
|
||||||
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/develop'))
|
|
||||||
steps:
|
|
||||||
- task: FtpUpload@2
|
- task: FtpUpload@2
|
||||||
|
condition: ne(variables['Build.SourceBranch'], 'refs/heads/develop')
|
||||||
displayName: 'Upload zip file to website'
|
displayName: 'Upload zip file to website'
|
||||||
inputs:
|
inputs:
|
||||||
credentialsOption: 'inputs'
|
credentialsOption: 'inputs'
|
||||||
@ -207,6 +198,7 @@ jobs:
|
|||||||
trustSSL: false
|
trustSSL: false
|
||||||
|
|
||||||
- task: FtpUpload@2
|
- task: FtpUpload@2
|
||||||
|
condition: ne(variables['Build.SourceBranch'], 'refs/heads/develop')
|
||||||
displayName: 'Upload version info to website'
|
displayName: 'Upload version info to website'
|
||||||
inputs:
|
inputs:
|
||||||
credentialsOption: 'inputs'
|
credentialsOption: 'inputs'
|
||||||
@ -222,6 +214,7 @@ jobs:
|
|||||||
trustSSL: false
|
trustSSL: false
|
||||||
|
|
||||||
- task: GitHubRelease@1
|
- task: GitHubRelease@1
|
||||||
|
condition: ne(variables['Build.SourceBranch'], 'refs/heads/develop')
|
||||||
displayName: 'Make GitHub release'
|
displayName: 'Make GitHub release'
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: 'github.com_RaidMax'
|
gitHubConnection: 'github.com_RaidMax'
|
||||||
@ -239,6 +232,7 @@ jobs:
|
|||||||
changeLogType: 'commitBased'
|
changeLogType: 'commitBased'
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
|
condition: ne(variables['Build.SourceBranch'], 'refs/heads/develop')
|
||||||
displayName: 'Update master version'
|
displayName: 'Update master version'
|
||||||
inputs:
|
inputs:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
|
Loading…
Reference in New Issue
Block a user