Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 7115d5d

Browse files
evanlouiebnookala
authored andcommitted
Fix broken hld_update condition
The `hld_update` stage of the service build pipeline was conditional on the pipeline source branch either being prefixed with `deploy` or being `master`. This condition is not needed as the pipeline itself already contains branch triggers. closes microsoft/bedrock#988
1 parent 0a0cda3 commit 7115d5d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/lib/fileutils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ export const serviceBuildAndUpdatePipeline = (
203203
// Update HLD Stage
204204
stage: "hld_update",
205205
dependsOn: "build",
206-
condition:
207-
"and(succeeded('build'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/DEPLOY/'),eq(variables['Build.SourceBranchName'],'master')))",
206+
condition: "succeeded('build')",
208207
jobs: [
209208
{
210209
job: "update_image_tag",

src/test/mockFactory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ export const createTestServiceBuildAndUpdatePipelineYaml = (
8585
// Update HLD Stage
8686
stage: "hld_update",
8787
dependsOn: "build",
88-
condition:
89-
"and(succeeded('build'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/DEPLOY/'),eq(variables['Build.SourceBranchName'],'master')))",
88+
condition: "succeeded('build')",
9089
jobs: [
9190
{
9291
job: "update_image_tag",

0 commit comments

Comments
 (0)