|
3 | 3 | set -e -u -o pipefail |
4 | 4 |
|
5 | 5 | if [[ -n "${DEBUG-}" ]]; then |
6 | | - set -x |
| 6 | + set -x |
7 | 7 | fi |
8 | 8 |
|
9 | 9 | cd "$(dirname "$0")/../" |
10 | 10 |
|
11 | 11 | source ".shared-ci/scripts/pinned-tools.sh" |
12 | 12 |
|
13 | 13 | # Download the artifacts and reconstruct the build/assemblies folder. |
14 | | -echo "--- Downloading assembly :inbox_tray:" |
15 | | -buildkite-agent artifact download "build\assembly\**\*" . |
| 14 | +traceStart "Downloading assembly :inbox_tray:" |
| 15 | + buildkite-agent artifact download "build\assembly\**\*" . |
| 16 | +traceEnd |
16 | 17 |
|
17 | 18 | uploadAssembly "${ASSEMBLY_PREFIX}" "${PROJECT_NAME}" |
18 | 19 |
|
19 | 20 | # If the RUNTIME_VERSION env variable is already set, i.e. - through the Buildkite menu |
20 | 21 | # then skip reading the file. |
21 | 22 | if [[ -n $"{RUNTIME_VERSION:-}" ]]; then |
22 | | - export RUNTIME_VERSION="$(cat ../gdk-for-unity/workers/unity/Packages/io.improbable.gdk.tools/runtime.pinned)" |
| 23 | + export RUNTIME_VERSION="$(cat ../gdk-for-unity/workers/unity/Packages/io.improbable.gdk.tools/runtime.pinned)" |
23 | 24 | fi |
24 | 25 |
|
25 | | -echo "--- Launching main deployment :airplane_departure:" |
26 | | - |
27 | | -dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \ |
28 | | - create \ |
29 | | - --project_name "${PROJECT_NAME}" \ |
30 | | - --assembly_name "${ASSEMBLY_NAME}" \ |
31 | | - --deployment_name "${ASSEMBLY_NAME}" \ |
32 | | - --launch_json_path cloud_launch_large.json \ |
33 | | - --snapshot_path snapshots/cloud.snapshot \ |
34 | | - --region EU \ |
35 | | - --tags "dev_login" \ |
36 | | - --runtime_version="${RUNTIME_VERSION}" |
| 26 | +traceStart "Launching main deployment :airplane_departure:" |
| 27 | + dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \ |
| 28 | + create \ |
| 29 | + --project_name "${PROJECT_NAME}" \ |
| 30 | + --assembly_name "${ASSEMBLY_NAME}" \ |
| 31 | + --deployment_name "${ASSEMBLY_NAME}" \ |
| 32 | + --launch_json_path cloud_launch_large.json \ |
| 33 | + --snapshot_path snapshots/cloud.snapshot \ |
| 34 | + --region EU \ |
| 35 | + --tags "dev_login" \ |
| 36 | + --runtime_version="${RUNTIME_VERSION}" |
| 37 | +traceEnd |
37 | 38 |
|
38 | 39 | CONSOLE_URL="https://console.improbable.io/projects/${PROJECT_NAME}/deployments/${ASSEMBLY_NAME}/overview" |
39 | 40 |
|
40 | 41 | buildkite-agent annotate --style "success" "Deployment URL: ${CONSOLE_URL}<br/>" |
41 | 42 |
|
42 | | -echo "--- Launching sim player deployment :robot_face:" |
43 | | - |
44 | | -dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \ |
45 | | - create-sim \ |
46 | | - --project_name "${PROJECT_NAME}" \ |
47 | | - --assembly_name "${ASSEMBLY_NAME}" \ |
48 | | - --deployment_name "${ASSEMBLY_NAME}_sim_players" \ |
49 | | - --launch_json_path cloud_launch_large_sim_players.json \ |
50 | | - --region EU \ |
51 | | - --runtime_version="${RUNTIME_VERSION}" \ |
52 | | - --target_deployment "${ASSEMBLY_NAME}" \ |
53 | | - --flag_prefix fps \ |
54 | | - --simulated_coordinator_worker_type SimulatedPlayerCoordinator |
| 43 | +traceStart "Launching sim player deployment :robot_face:" |
| 44 | + dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \ |
| 45 | + create-sim \ |
| 46 | + --project_name "${PROJECT_NAME}" \ |
| 47 | + --assembly_name "${ASSEMBLY_NAME}" \ |
| 48 | + --deployment_name "${ASSEMBLY_NAME}_sim_players" \ |
| 49 | + --launch_json_path cloud_launch_large_sim_players.json \ |
| 50 | + --region EU \ |
| 51 | + --runtime_version="${RUNTIME_VERSION}" \ |
| 52 | + --target_deployment "${ASSEMBLY_NAME}" \ |
| 53 | + --flag_prefix fps \ |
| 54 | + --simulated_coordinator_worker_type SimulatedPlayerCoordinator |
| 55 | +traceEnd |
55 | 56 |
|
56 | 57 | CONSOLE_URL_SIM_PLAYERS="https://console.improbable.io/projects/${PROJECT_NAME}/deployments/${ASSEMBLY_NAME}_sim_players/overview" |
57 | 58 |
|
|
0 commit comments