1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
I found that this is caused by a behavior of CodeBuild when running on Windows. The behavior is that Codebuild invokes a brand new process for every line that starts with '-' in the buildspec.
This appears to be an undocumented defect in codebuild that was confirmed by an AWS support engineer.
Your updated buildspec would be:
version: 0.2
env:
shell: powershell.exe
phases:
build:
commands:
- |
Write-Host "env:Path before..."
Write-Host "$env:Path"
Write-Host "Installing required tools..."
Invoke-WebRequest -Uri https://win.rustup.rs/ -OutFile rustup-init.exe
./rustup-init.exe -y
Write-Host "env:Path after"
Write-Host "$env:Path"
cargo -V
répondu il y a un mois
Contenus pertinents
- demandé il y a un an
- demandé il y a 6 mois
- Réponse acceptéedemandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an