Serialize execution of symstore via Powershell or BATCH

后端 未结 3 1648
盖世英雄少女心
盖世英雄少女心 2020-12-10 08:55

We are working to integrate a step into our continuous integration (CI) server (CruiseControl.NET). We want to register the debug symbols *.pdb generated from

3条回答
  •  没有蜡笔的小新
    2020-12-10 09:40

    Use a file in the shared directory as semaphore to avoid concurrent executions.

    :checkfile
    if exist %cidir%\sem.txt goto :wait10secs
    echo gotit! >%cidir%\sem.txt
    doit
    del %cidir%\sem.txt
    goto :eof
    :wait10secs
    ing 192.0.2.2 -n 1 -w 10000 > nul
    goto :checkfile
    

    Be prepared for debugging all strange ways your batch can fail and all nasty racing conditions.

提交回复
热议问题