Skip to content

Commit

Permalink
CI: change condition for ManageArtifacts stage
Browse files Browse the repository at this point in the history
After default branch changed to main this stage was omitted because
of the condition.

Signed-off-by: Andreea Andrisan <[email protected]>
  • Loading branch information
AAndrisa authored and pcercuei committed Sep 4, 2023
1 parent 9a82e37 commit 38bdc0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# If you make changes to builds or artifacts, please check and update the following files if needed:
# README.md, CI/azure/prepare_assets.sh, artifact_manifest.txt.cmakein, CI/publish_deps.ps1

variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')]

trigger:
branches:
include:
- main
- master
- next_stable
- dev
- staging/*
Expand All @@ -18,7 +20,6 @@ pr:
branches:
include:
- main
- master
- dev
- 20*

Expand Down Expand Up @@ -429,7 +430,7 @@ stages:
#############################################
jobs:
- job: CheckArtifacts
condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
condition: and(succeeded(), or(eq(variables.isMain, true), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')))
# Host Box
pool:
vmImage: 'ubuntu-latest'
Expand Down Expand Up @@ -465,7 +466,7 @@ stages:
#############################################
- job: PushToSWDownloads
dependsOn: CheckArtifacts
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(succeeded(), eq(variables.isMain, true))
pool:
vmImage: 'ubuntu-latest'
steps:
Expand Down

0 comments on commit 38bdc0b

Please sign in to comment.