diff --git a/pipelines/productionBuild.yml b/pipelines/productionBuild.yml index 9cef5fb20..1171124b4 100644 --- a/pipelines/productionBuild.yml +++ b/pipelines/productionBuild.yml @@ -65,6 +65,7 @@ extends: echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)" echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)\bin;$(PATH)" - task: PowerShell@2 + condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded()) displayName: 'Validate updated version' inputs: targetType: filePath