зеркало из https://github.com/Azure/ARO-RP.git
Added set -e to multiline scripts in the pipelines.
This commit is contained in:
Родитель
21c4cdb59c
Коммит
39aa388cf1
|
@ -2,6 +2,7 @@ parameters:
|
|||
workingDirectory: ''
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
cd ${{ parameters.workingDirectory }}
|
||||
|
||||
. secrets/env
|
||||
|
|
|
@ -3,6 +3,7 @@ parameters:
|
|||
rpImageACR: ''
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
cd ${{ parameters.workingDirectory }}
|
||||
|
||||
export RP_IMAGE_ACR=${{ parameters.rpImageACR }}
|
||||
|
|
|
@ -2,6 +2,9 @@ parameters:
|
|||
workingDirectory: ''
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
cd ${{ parameters.workingDirectory }}
|
||||
|
||||
. secrets/env
|
||||
|
|
|
@ -2,6 +2,7 @@ parameters:
|
|||
workingDirectory: ''
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
cd ${{ parameters.workingDirectory }}
|
||||
|
||||
./hack/devtools/setup-azure-tools.sh
|
||||
|
|
|
@ -5,10 +5,11 @@ parameters:
|
|||
modulePath: ''
|
||||
steps:
|
||||
- script: |
|
||||
mkdir -p '${{ parameters.gobin }}'
|
||||
mkdir -p '${{ parameters.gopath }}/pkg'
|
||||
set -e
|
||||
mkdir -p '${{ parameters.modulePath }}'
|
||||
ls -a | grep -v ${{ parameters.gopath }} | xargs mv -t ${{ parameters.modulePath }}
|
||||
set +e
|
||||
(shopt -s dotglob; mv * ${{ parameters.modulePath }})
|
||||
set -e
|
||||
echo "##vso[task.prependpath]${{ parameters.gobin }}"
|
||||
echo "##vso[task.prependpath]${{ parameters.goroot }}/bin"
|
||||
sudo add-apt-repository ppa:kubuntu-ppa/backports
|
||||
|
|
Загрузка…
Ссылка в новой задаче