Skip to content

Commit 1efe631

Browse files
[devops] Make sure BUILD_REVISION is set to something during the build. (#15436)
We have logic that depend on this variable to determine whether we're in CI or not. Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
1 parent aae7cfa commit 1efe631

File tree

1 file changed

+1
-0
lines changed
  • tools/devops/automation/templates/build

1 file changed

+1
-0
lines changed

tools/devops/automation/templates/build/stage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
PR_ID: $[ dependencies.configure.outputs['labels.pr-number'] ]
109109
# set the branch variable name, this is required by jenkins and we have a lot of scripts that depend on it
110110
BRANCH_NAME: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]
111+
BUILD_REVISION: $[ variables['Build.SourceVersion'] ]
111112
XHARNESS_LABELS: $[ dependencies.configure.outputs['labels.xharness-labels'] ]
112113
pool:
113114
name: $(AgentPoolComputed)

0 commit comments

Comments
 (0)