From 80673b572a235bea040f156d333a1857b2a446bb Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 3 Jan 2020 15:34:28 -0500 Subject: [PATCH] =?UTF-8?q?Fixed:=20Full=20Build=20on=20Backend,=20Not=20D?= =?UTF-8?q?on=E2=80=99t=20Build=20If=20any=20Non=20Backend=20(#4026)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed: Build on Backend, Not Don’t Build If any Non Backend * fixup! Quit pushing from 5 inch screen!! --- azure-pipelines.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9f3eb66bd..b630e4560 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,12 +37,12 @@ stages: - bash: echo "##vso[build.updatebuildnumber]$RADARRVERSION" displayName: Set Build Name - bash: | - git diff origin/aphrodite...HEAD --name-only | grep -qEv "^(src/|azure-pipelines.yml)" - echo $? > is_backend_update - cat is_backend_update + git diff origin/aphrodite...HEAD --name-only | grep -E "^(src/|azure-pipelines.yml)" + echo $? > not_backend_update + cat not_backend_update displayName: Check for Backend File Changes - - publish: is_backend_update - artifact: is_backend_update + - publish: not_backend_update + artifact: not_backend_update displayName: Publish update type - stage: Build_Backend displayName: Build Backend @@ -285,15 +285,15 @@ stages: - task: DownloadPipelineArtifact@2 inputs: buildType: 'current' - artifactName: 'is_backend_update' + artifactName: 'not_backend_update' targetPath: '.' - - bash: echo "##vso[task.setvariable variable=backendUpdated;isOutput=true]$(cat is_backend_update)" + - bash: echo "##vso[task.setvariable variable=backendNotUpdated;isOutput=true]$(cat not_backend_update)" name: setVar - job: Unit displayName: Unit Native dependsOn: Prepare - condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendUpdated'], '1')) + condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendNotUpdated'], '0')) strategy: matrix: @@ -370,7 +370,7 @@ stages: - job: Unit_Docker displayName: Unit Docker dependsOn: Prepare - condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendUpdated'], '1')) + condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendNotUpdated'], '0')) strategy: matrix: mono510: @@ -434,15 +434,15 @@ stages: - task: DownloadPipelineArtifact@2 inputs: buildType: 'current' - artifactName: 'is_backend_update' + artifactName: 'not_backend_update' targetPath: '.' - - bash: echo "##vso[task.setvariable variable=backendUpdated;isOutput=true]$(cat is_backend_update)" + - bash: echo "##vso[task.setvariable variable=backendNotUpdated;isOutput=true]$(cat not_backend_update)" name: setVar - job: Integration_Native displayName: Integration Native dependsOn: Prepare - condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendUpdated'], '1')) + condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendNotUpdated'], '0')) strategy: matrix: MacCore: @@ -517,7 +517,7 @@ stages: - job: Integration_Docker displayName: Integration Docker dependsOn: Prepare - condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendUpdated'], '1')) + condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendNotUpdated'], '0')) strategy: matrix: mono510: @@ -686,9 +686,9 @@ stages: - task: DownloadPipelineArtifact@2 inputs: buildType: 'current' - artifactName: 'is_backend_update' + artifactName: 'not_backend_update' targetPath: '.' - - bash: echo "##vso[task.setvariable variable=backendUpdated;isOutput=true]$(cat is_backend_update)" + - bash: echo "##vso[task.setvariable variable=backendNotUpdated;isOutput=true]$(cat not_backend_update)" name: setVar - job: Lint_Frontend @@ -740,7 +740,7 @@ stages: - job: Analyze_Backend displayName: Backend dependsOn: Prepare - condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendUpdated'], '1')) + condition: and(succeeded(), eq(dependencies.Prepare.outputs['setVar.backendNotUpdated'], '0')) variables: disable.coverage.autogenerate: 'true'