6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows版JenkinsのVSS認証エラーに対応

Last updated at Posted at 2014-03-06

VSSのフォルダに認証がかかっている場合
JenkinsのVSSプラグインを使うとエラーになる。
プラグインは諦め、バッチを作り、そこでVSSフォルダに対して認証しておくことで解決

@REM Jenkins実行ユーザがVSSフォルダにアクセスできるように
@REM バッチで認証し、アクセスできるようにする
net use \domain\VSSフォルダ "password" /USER:"username"

@REM VSSのコマンド
path=%path%;C:\Program Files\Microsoft Visual SourceSafe

@REM VSS接続設定
set SSDIR=\domain\VSSフォルダ
set SSUSER=vssuser
set SSPWD=vsspassword

@REM VSSのパスを設定
set VSSPROJECT=$/vss/src

@REM ローカルフォルダを設定
set LOCALPATH=C:\hoge\src

@REM ディレクトリを移動
%LOCALPATH:~0,2%
cd %LOCALPATH%
ss.exe Workfold %VSSPROJECT% %LOCALPATH%

@REM ソースを取得 オプションは適宜
ss.exe Get -o- -W- -GWS %VSSPROJECT% -R

exit /b 0

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?