buildone.cmd 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ::-------------------------------------------------------------------------------------------------------
  2. :: Copyright (C) Microsoft. All rights reserved.
  3. :: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ::-------------------------------------------------------------------------------------------------------
  5. @echo off
  6. setlocal
  7. REM set TEMP and TMP to a new temp folder under the WORKSPACE and create it
  8. set TEMP=%WORKSPACE%\TEMP
  9. set TMP=%TEMP%
  10. REM create the TMP folder if it doesn't exist
  11. if not exist %TEMP% (
  12. mkdir %TEMP%
  13. )
  14. if "%_ENTRY_SCRIPT_NAME%"=="" (
  15. set _ENTRY_SCRIPT_NAME=%0
  16. )
  17. REM check that we have enough parameters
  18. if "%1"=="" (
  19. goto :usage
  20. )
  21. if "%2"=="" (
  22. goto :usage
  23. )
  24. :: ============================================================================
  25. :: Main script
  26. :: ============================================================================
  27. :main
  28. set JENKINS_BUILD=True
  29. call %~dp0..\test\jenkins.buildone.cmd %*
  30. goto :end
  31. :: ============================================================================
  32. :: Not enough params
  33. :: ============================================================================
  34. :usage
  35. echo Not enough parameters. Please specify architecture and type.
  36. echo Examples:
  37. echo.
  38. echo %_ENTRY_SCRIPT_NAME% x86 debug
  39. echo %_ENTRY_SCRIPT_NAME% x86 test
  40. echo %_ENTRY_SCRIPT_NAME% x86 release
  41. echo.
  42. echo %_ENTRY_SCRIPT_NAME% x64 debug
  43. echo %_ENTRY_SCRIPT_NAME% x64 test
  44. echo %_ENTRY_SCRIPT_NAME% x64 release
  45. goto :end
  46. :: ============================================================================
  47. :: Epilogue of script (cleanup)
  48. :: ============================================================================
  49. :end
  50. endlocal