From 5a22a759a8dc1a9e9845dc136869fe98f0811c69 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 4 Jun 2023 11:16:33 -0500 Subject: [PATCH] add job dependency to pipeline --- DeploymentFiles/deployment-pipeline.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DeploymentFiles/deployment-pipeline.yml b/DeploymentFiles/deployment-pipeline.yml index 36533edeb..04e1412c1 100644 --- a/DeploymentFiles/deployment-pipeline.yml +++ b/DeploymentFiles/deployment-pipeline.yml @@ -35,7 +35,7 @@ jobs: - task: PowerShell@2 displayName: 'Setup Pre-Release configuration' - condition: eq(variables['Build.SourceBranch'], 'refs/heads/release/pre') + condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/release/pre'), eq(variables['Build.SourceBranch'], 'refs/heads/develop')) inputs: targetType: 'inline' script: | @@ -120,7 +120,9 @@ jobs: script: 'wget https://raidmax.org/downloads/dos2unix.exe' failOnStderr: true workingDirectory: '$(Build.Repository.LocalPath)\Application\BuildScripts' + - job: Transform + dependsOn: Build steps: - task: CmdLine@2 displayName: 'Convert Linux start script line endings' @@ -160,7 +162,9 @@ jobs: script: 'echo d | xcopy /s /y /f GameFiles $(outputFolder)\GameFiles' workingDirectory: '$(Build.Repository.LocalPath)' failOnStderr: true + - job: Artifact + dependsOn: Transform steps: - task: ArchiveFiles@2 displayName: 'Generate final zip file' @@ -184,6 +188,7 @@ jobs: publishLocation: 'pipeline' - job: Publish + dependsOn: Artifact condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/develop')) steps: - task: FtpUpload@2