forked from microsoft/BuildXL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropout.cmd
35 lines (24 loc) · 899 Bytes
/
dropout.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
setlocal
SET FEATURE_NAME=%1
if NOT DEFINED FEATURE_NAME (
echo.
echo Must specify feature name as first argument
echo.
goto :error
)
if NOT DEFINED DROP_CONTENT_DIR (
set DROP_CONTENT_DIR="%~dp0\out\bin"
)
SET DROP_NAME=%USERNAME%/%FEATURE_NAME%
echo Creating drop %DROP_NAME%
echo https://mseng.artifacts.visualstudio.com/DefaultCollection/_apis/drop/drops/%DROP_NAME%
call %~dp0\drop.cmd create -a -s https://mseng.artifacts.visualstudio.com/DefaultCollection -n "%DROP_NAME%"
call %~dp0\drop.cmd publish -a -s https://mseng.artifacts.visualstudio.com/DefaultCollection -n "%DROP_NAME%" -d %DROP_CONTENT_DIR%
call %~dp0\drop.cmd finalize -a -s https://mseng.artifacts.visualstudio.com/DefaultCollection -n "%DROP_NAME%"
echo Created drop %DROP_NAME%
:error
if %ERRORLEVEL% NEQ 0 (
endlocal && exit /b 1
)
endlocal && exit /b 0