zoukankan      html  css  js  c++  java
  • ATS项目更新(3) 远程同步到执行机器

      1: echo %time%
    
      2: 
    
      3: 
    
      4: rem ** ipc and mapping
    
      5: c:
    
      6: net use x: /del
    
      7: net use y: /del
    
      8: net use \\10.11.44.1\ipc$ /del
    
      9: echo ==============================================
    
     10: net use \\10.11.44.1\ipc$ "Sqa-2006" /user:"RND\mpsvr"
    
     11: net use x: \\10.11.44.1\BigBandNetworks
    
     12: net use y: \\10.11.44.1\PublicViews
    
     13: echo ==============================================
    
     14: 
    
     15: subst t: /d
    
     16: subst t: D:\PublicViews\Automation_Framework\SQA_ATE_DEV
    
     17: 
    
     18: 
    
     19: rem ** rar local files
    
     20: t:
    
     21: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     22: cd "t:\Official Release\Bin" 
    
     23: del *.rar;*.zip
    
     24: winrar a -r rel.rar
    
     25: winrar d rel *.pdb
    
     26: 
    
     27: 
    
     28: rem ** build the menu
    
     29: x:
    
     30: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     31: cd "X:\ATS"
    
     32: if not exist "_update_record" mkdir "_update_record"
    
     33: cd _update_record
    
     34: set updatetime=%date:~6,4%%date:~0,2%%date:~3,2%%time:~0,2%%time:~3,2%%time:~6,2%
    
     35: md %updatetime%
    
     36: cd %updatetime%
    
     37: 
    
     38: rem ** update dll and xml files
    
     39: xcopy /F /R /Y /E /EXCLUDE:t:\EXCLUDE.txt "t:\Official Release\Bin" "X:\ATS" >__log.txt
    
     40: rem winrar x -o+ "t:\Official Release\Bin\rel.rar" "X:\ATS\"
    
     41: type __log.txt
    
     42: 
    
     43: rem ** md5 three dll files
    
     44: x:
    
     45: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     46: cd "X:\Automation\DLLS"
    
     47: copy /Y "t:\Reference Assemblies\TSSBMSimulator.dll" "X:\Automation\DLLS\TSSBMSimulator.dll"
    
     48: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\TSSBMSimulator.dll" >TSSBMSimulator.md5.txt
    
     49: x:
    
     50: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     51: copy /Y "t:\Reference Assemblies\SBMComAPI.dll" "X:\SBMComAPI.dll"
    
     52: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\SBMComAPI.dll" >SBMComAPI.md5.txt
    
     53: x:
    
     54: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     55: cd "X:\SessionManager"
    
     56: copy /Y "t:\Reference Assemblies\TSSMW.dll" "X:\SessionManager\TSSMW.dll"
    
     57: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\TSSMW.dll" >TSSMW.md5.txt
    
     58: 
    
     59: copy /Y "t:\_Configuration\TestManager.xml" "X:\ATS\Configuration\TestManager.xml"
    
     60: 
    
     61: rem ** backup dll
    
     62: xcopy "t:\Official Release\Bin\rel.rar" "X:\ATS\_update_record\%updatetime%\"
    
     63: t:
    
     64: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     65: cd "t:\Official Release\Bin" 
    
     66: del *.rar;*.zip
    
     67: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     68: cd "t:\Reference Assemblies" 
    
     69: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\TSSBMSimulator.dll" >_TSSBMSimulator.md5.txt
    
     70: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\SBMComAPI.dll" >_SBMComAPI.md5.txt
    
     71: t:\_MyTool\md5.exe -n "t:\Reference Assemblies\TSSMW.dll" >_TSSMW.md5.txt
    
     72: 
    
     73: 
    
     74: rem ** display all results
    
     75: x:
    
     76: cd ..\..\..\..\..\..\..\..\..\..\..\..\
    
     77: cd "X:\ATS"
    
     78: rem dir /a
    
     79: 
    
     80: 
    
     81: rem ** clean
    
     82: c:
    
     83: net use x: /del
    
     84: net use y: /del
    
     85: net use \\10.11.44.1\ipc$ /del
    
     86: subst t: /d
    
     87: pause
    
     88: 
    
     89: 

    EXCLUDE.txt

      1: .rar
    
      2: .zip
    
      3: .pdb
    
      4: .config
    
      5: .manifest
    
      6: \Report
    服务项目 技术咨询 微信图书 微信视频 微信代码 定制开发 其他福利
    服务入口 QQ群有问必答
    查看详情
    一本书解决90%问题
    查看详情
    微信开发视频
    小程序开发视频
    免费代码
    ¥1888阿里云代金券
    查看详情
    营销工具
    微信特异功能
  • 相关阅读:
    java集合框架复习(一)
    java集合框架复习
    java集合框架
    Mysql视图的作用及其性能分析
    php语法基础
    MySQL UNION 与 UNION ALL 语法与用法
    mysql fetch 系列函数
    跨线程传递数据解决方案 ThreadLocal 和 HystrixRequestVariableDefault
    java中带参数的try(){}语法含义是什么?
    Activiti 设置comment的用户
  • 原文地址:https://www.cnblogs.com/txw1958/p/2210111.html
Copyright © 2011-2022 走看看