Created
November 16, 2015 01:07
-
-
Save masaru-b-cl/00d1559bf216cafc28e0 to your computer and use it in GitHub Desktop.
svn updateの前後でリビジョン違ったら正常終了する、Jenkins仕込み用batファイル(カスタムワークスペース推奨)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /d %WORKSPACE% | |
| for /f "delims=" %%c in ('svnversion') do set CURRENT_REV=%%c | |
| svn update | |
| for /f "delims=" %%l in ('svnversion') do set LATEST_REV=%%l | |
| if %CURRENT_REV%==%LATEST_REV% exit 1 | |
| exit 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment