Skip to content

Commit

Permalink
Steps/BuildPlatform.yml: Add Run to Shell timeout parameter (#89)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
makubacki authored Jan 20, 2023
1 parent d55030c commit 7465bc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Steps/BuildPlatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ parameters:
displayName: Run Flags
type: string
default: ''
- name: run_timeout
displayName: Run Timeout (in minutes)
type: number
default: 5
- name: install_tools
displayName: Install Build Tools
type: boolean
Expand Down Expand Up @@ -115,7 +119,7 @@ steps:
filename: stuart_build
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
condition: and(and(gt(variables.pkg_count, 0), succeeded()), eq(variables['Run'], true))
timeoutInMinutes: 5
timeoutInMinutes: ${{ parameters.run_timeout }}

# Copy the build logs to the artifact staging directory
- task: CopyFiles@2
Expand Down

0 comments on commit 7465bc3

Please sign in to comment.