Skip to content

Commit 7465bc3

Browse files
authored
Steps/BuildPlatform.yml: Add Run to Shell timeout parameter (#89)
Updates the template to allow the platform to specify a custom timeout for running to shell. The previous value of `5` is the default. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
1 parent d55030c commit 7465bc3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Steps/BuildPlatform.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ parameters:
3838
displayName: Run Flags
3939
type: string
4040
default: ''
41+
- name: run_timeout
42+
displayName: Run Timeout (in minutes)
43+
type: number
44+
default: 5
4145
- name: install_tools
4246
displayName: Install Build Tools
4347
type: boolean
@@ -115,7 +119,7 @@ steps:
115119
filename: stuart_build
116120
arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=${{ parameters.tool_chain_tag}} TARGET=${{ parameters.build_target}} -a ${{ parameters.build_arch}} ${{ parameters.build_flags}} ${{ parameters.run_flags }} --FlashOnly
117121
condition: and(and(gt(variables.pkg_count, 0), succeeded()), eq(variables['Run'], true))
118-
timeoutInMinutes: 5
122+
timeoutInMinutes: ${{ parameters.run_timeout }}
119123

120124
# Copy the build logs to the artifact staging directory
121125
- task: CopyFiles@2

0 commit comments

Comments
 (0)