Merge commit '12a36dc542a40956bc31b607f3f01b624f3c214f'

This commit is contained in:
Mirroring 2024-07-16 22:21:42 +00:00
commit 98f5daaa99

View file

@ -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
@ -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: |
@ -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.