Skip to content

Commit

Permalink
Provide extra properties for VMR build jobs (#20021)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Jul 16, 2024
1 parent 91c0d2d commit 12a36dc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions eng/pipelines/templates/jobs/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ parameters:
type: boolean
default: false

# Freeform field for extra values to pass to build.sh for special build modes
- name: extraProperties
type: string
default: ''

jobs:
- job: ${{ parameters.buildName }}_${{ parameters.architecture }}
timeoutInMinutes: 150
Expand Down Expand Up @@ -230,7 +235,12 @@ jobs:
customBuildArgs="$customBuildArgs --use-mono-runtime"
fi
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr $customRunArgs ${{ parameters.container }} ./build.sh --clean-while-building $(additionalBuildArgs) $customBuildArgs
extraProperties="${{ parameters.extraProperties }}"
if [[ -n "$extraProperties" ]]; then
extraProperties="-- $extraProperties"
fi
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr $customRunArgs ${{ parameters.container }} ./build.sh --clean-while-building $(additionalBuildArgs) $customBuildArgs $extraProperties
displayName: Build
- script: |
Expand All @@ -244,7 +254,7 @@ jobs:
poisonArg='--poison'
fi
docker run --rm $dockerVolumeArgs -w /vmr $dockerEnvArgs ${{ parameters.container }} ./build.sh $poisonArg --run-smoke-test $(additionalBuildArgs) -- -p:SmokeTestConsoleVerbosity=detailed
docker run --rm $dockerVolumeArgs -w /vmr $dockerEnvArgs ${{ parameters.container }} ./build.sh $poisonArg --run-smoke-test $(additionalBuildArgs) -- -p:SmokeTestConsoleVerbosity=detailed ${{ parameters.extraProperties }}
displayName: Run Tests
# Don't use CopyFiles@2 as it encounters permissions issues because it indexes all files in the source directory graph.
Expand Down

0 comments on commit 12a36dc

Please sign in to comment.