diff --git a/eng/pipelines/templates/stages/archetype-js-release.yml b/eng/pipelines/templates/stages/archetype-js-release.yml index 72199cb2b2e2..d395e73bbe6a 100644 --- a/eng/pipelines/templates/stages/archetype-js-release.yml +++ b/eng/pipelines/templates/stages/archetype-js-release.yml @@ -203,7 +203,9 @@ stages: dependsOn: ${{parameters.DependsOn}} jobs: - job: PublishPackages - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) + # Run Integration job only if SetDevVersion is set to true or ( SetDevVersion is empty and job is a scheduled CI run) + # If SetDevVersion is set to false then we should skip integration job even for scheduled runs. + condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['SetDevVersion'], ''), eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) displayName: Publish package to daily feed pool: vmImage: ubuntu-18.04