revert pipeline back to one job

This commit is contained in:
RaidMax 2023-06-04 11:29:19 -05:00
parent 5a22a759a8
commit 50593f5a93

View File

@ -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,9 +121,6 @@ jobs:
failOnStderr: true failOnStderr: true
workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts' workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts'
- job: Transform
dependsOn: Build
steps:
- task: CmdLine@2 - task: CmdLine@2
displayName: 'Convert Linux start script line endings' displayName: 'Convert Linux start script line endings'
inputs: inputs:
@ -163,9 +160,6 @@ jobs:
workingDirectory: '$(Build.Repository.LocalPath)' workingDirectory: '$(Build.Repository.LocalPath)'
failOnStderr: true failOnStderr: true
- job: Artifact
dependsOn: Transform
steps:
- task: ArchiveFiles@2 - task: ArchiveFiles@2
displayName: 'Generate final zip file' displayName: 'Generate final zip file'
inputs: inputs:
@ -187,11 +181,8 @@ jobs:
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'