2
0

ci.buildone.cmd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ::-------------------------------------------------------------------------------------------------------
  2. :: Copyright (C) Microsoft. All rights reserved.
  3. :: Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
  4. :: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  5. ::-------------------------------------------------------------------------------------------------------
  6. @echo off
  7. setlocal
  8. if "%_ENTRY_SCRIPT_NAME%"=="" (
  9. set _ENTRY_SCRIPT_NAME=%0
  10. )
  11. REM check that we have enough parameters
  12. if "%1"=="" (
  13. goto :usage
  14. )
  15. if "%2"=="" (
  16. goto :usage
  17. )
  18. pushd %~dp0
  19. call ci.build.init.cmd %*
  20. set _BuildArch=
  21. set _BuildType=
  22. call ci.build.cmd %JENKINS_BUILD_ARGS%
  23. popd
  24. goto :end
  25. :: ============================================================================
  26. :: Not enough params
  27. :: ============================================================================
  28. :usage
  29. echo Not enough parameters. Please specify architecture and type.
  30. echo Examples:
  31. echo.
  32. echo %_ENTRY_SCRIPT_NAME% x86 debug
  33. echo %_ENTRY_SCRIPT_NAME% x86 test
  34. echo %_ENTRY_SCRIPT_NAME% x86 release
  35. echo.
  36. echo %_ENTRY_SCRIPT_NAME% x64 debug
  37. echo %_ENTRY_SCRIPT_NAME% x64 test
  38. echo %_ENTRY_SCRIPT_NAME% x64 release
  39. :end
  40. endlocal