Hi there

a quick question: during a promotion, is it possible to copy 
the artefacts of a specific build within a matrix project with the Publish 
Over CIFS plugin?

Things like $BUILD_URL/ABI=net,CONFIG=release/path/to/deploy/**/* do not 
seem to work.

At the moment I'm having to use the following script which depends on wget, 
7-zip and robocopy, which is a lot of stuff for something should be able to 
do very easily:

Thanks in advance!

set PUBLISH_DIR=publish
set WGET="%ProgramFiles%\GnuWin32\bin\wget.exe"
%WGET% -nv 
%PROMOTED_URL%ABI=net,CONFIG=release/artifact/build/win32_msvc9_Release/%PUBLISH_DIR%/*zip*/%PUBLISH_DIR%.zip
 
-O %PUBLISH_DIR%.zip

if exist %PUBLISH_DIR% rmdir /s /q %PUBLISH_DIR%

set ZIP="%ProgramFiles%\7-Zip\7z.exe"
%ZIP% x %PUBLISH_DIR%.zip

set TARGET=\\cifs\path\to\where\I\want\to\copy

call :PUBLISH %TARGET%
exit /b %EXITCODE%

:PUBLISH
set EXITCODE=0
for %%D in ( %* ) do @call :XCOPY %%D
exit /b %EXITCODE%

:XCOPY
robocopy "%PUBLISH_DIR%" "%~1" /S /Z /NP
if errorlevel 8 set EXITCODE=1
exit /b %EXITCODE%

Reply via email to