Fix Batch Shipyard site extension upgrade (#113)
This commit is contained in:
Родитель
9e3308ff2b
Коммит
80212e6593
|
@ -6,7 +6,7 @@
|
||||||
<title>Batch Shipyard</title>
|
<title>Batch Shipyard</title>
|
||||||
<authors>Fred Park</authors>
|
<authors>Fred Park</authors>
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>Execute jobs on Azure Batch via Batch Shipyard. Requires Python.</description>
|
<description>Execute containerized jobs on Azure Batch via Batch Shipyard. Requires Python.</description>
|
||||||
<iconUrl>https://azurecomcdn.azureedge.net/cvt-4c210654e280636c85b81aae4511f99613c7de5d03801bf44dc15fe823371003/images/page/services/batch/we-take-care-of-scale.png</iconUrl>
|
<iconUrl>https://azurecomcdn.azureedge.net/cvt-4c210654e280636c85b81aae4511f99613c7de5d03801bf44dc15fe823371003/images/page/services/batch/we-take-care-of-scale.png</iconUrl>
|
||||||
<projectUrl>https://github.com/Azure/batch-shipyard</projectUrl>
|
<projectUrl>https://github.com/Azure/batch-shipyard</projectUrl>
|
||||||
<licenseUrl>https://github.com/Azure/batch-shipyard/blob/master/LICENSE</licenseUrl>
|
<licenseUrl>https://github.com/Azure/batch-shipyard/blob/master/LICENSE</licenseUrl>
|
||||||
|
|
|
@ -29,18 +29,19 @@ taskkill /F /IM python.exe
|
||||||
SET CLONEDIR=%HOME%\batch-shipyard
|
SET CLONEDIR=%HOME%\batch-shipyard
|
||||||
IF EXIST "%CLONEDIR%" (
|
IF EXIST "%CLONEDIR%" (
|
||||||
pushd "%CLONEDIR%"
|
pushd "%CLONEDIR%"
|
||||||
git checkout master
|
git fetch --tags
|
||||||
git pull
|
git checkout %SHIPYARDVER%
|
||||||
IF %ERRORLEVEL% NEQ 0 (
|
IF %ERRORLEVEL% NEQ 0 (
|
||||||
cd %HOME%
|
echo "Could not git fetch to tag %SHIPYARDVER% at %CLONEDIR%"
|
||||||
rd /s /q "%CLONEDIR%"
|
exit /b 1
|
||||||
)
|
)
|
||||||
popd
|
popd
|
||||||
)
|
) ELSE (
|
||||||
git clone --branch %SHIPYARDVER% "https://github.com/Azure/batch-shipyard.git" "%CLONEDIR%"
|
git clone --branch %SHIPYARDVER% "https://github.com/Azure/batch-shipyard.git" "%CLONEDIR%"
|
||||||
IF %ERRORLEVEL% NEQ 0 (
|
IF %ERRORLEVEL% NEQ 0 (
|
||||||
echo "git clone failed"
|
echo "Could not git clone to tag %SHIPYARDVER% at %CLONEDIR%"
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
REM create cmd file
|
REM create cmd file
|
||||||
|
|
Загрузка…
Ссылка в новой задаче