Honestly, I think your solution is better because you can tailor it to
your needs. I used to develop the PO-CIFS plugin, but don't have the
time to keep it up anymore. Anyone who is willing can take over and
improve it.

slide

On Fri, Sep 21, 2012 at 8:13 AM, Masariello <[email protected]> wrote:
> 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%



-- 
Website: http://earl-of-code.com

Reply via email to