parameters:
  msagent: false

steps:
- script: 'if not exist %PYTORCH_FINAL_PACKAGE_DIR% mkdir %PYTORCH_FINAL_PACKAGE_DIR%'
  displayName: 'Create final package directory'

- bash: './conda/build_pytorch.sh $CUDA_VERSION $PYTORCH_BUILD_VERSION $PYTORCH_BUILD_NUMBER'
  displayName: Build
  env:
    ${{ if eq(parameters.msagent, 'true') }}:
      MAX_JOBS: 2
