Skip to content

Commit 5923ae5

Browse files
committed
project-pack comments
1 parent 3174cf4 commit 5923ae5

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.yamato/project-pack.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1-
{% metadata_file .yamato/project.metafile %}
1+
{% metadata_file .yamato/project.metafile %} # All configuration that is used to create different configurations (used in for loops) is taken from this file.
22
---
33

4-
# Jobs that iterate through and packs all NGO projects listed (to use in different jobs)
5-
# For this job no specific platform support and no running Unity instance is required so small agent (as per project.metafile definition) coul be used to save resources and speed up the process
6-
# If everyone adheres to this rule it can create bottlenecks (since everyone would use this machine) so we decided to pack project with the same platform as the given job runs on
4+
# DESCRIPTION--------------------------------------------------------------------------
5+
# This job is responsible for packing a specific project. It generates package artifacts (.tgz) required for testing and publishing, ensuring all dependencies are properly bundled and validated before any test execution.
6+
# The job itself doesn't test anything specific but rather it prepares project packages that will be consumed by other pipeline jobs.
7+
8+
# CONFIGURATION STRUCTURE--------------------------------------------------------------
9+
# Jobs configurations are generated using nested loops through:
10+
# 1. For all projects (testproject, minimalproject, testproject-tools-integration).
11+
# 2. For all desktop platforms (Win, Ubuntu, Mac)
12+
13+
# TECHNICAL CONSIDERATIONS--------------------------------------------------------------------
14+
# Job does not require Unity Editor in order to perform packing.
15+
# In theory, we could just use one platform for packing projects (for example ubuntu) but in order to reduce confusion we are using same platform as the job utilizing project pack as dependency.
16+
17+
# QUALITY CONSIDERATIONS--------------------------------------------------------------------
18+
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
19+
# TODO: Currently upm-ci is being used but in the future it will be replaced by upm-pvp. Additionally this would allow us to run PVP checks on projects
20+
21+
22+
#--------------------------------------------------------------------------------------
23+
724
{% for project in projects.all -%}
825
{% for platform in test_platforms.desktop -%}
926
project_pack_-_{{ project.name }}_{{ platform.name }}:
@@ -13,7 +30,7 @@ project_pack_-_{{ project.name }}_{{ platform.name }}:
1330
image: {{ platform.image }}
1431
flavor: {{ platform.flavor }}
1532
commands:
16-
- npm install -g upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
33+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
1734
- upm-ci project pack --project-path {{ project.path }}
1835
artifacts:
1936
packages:

0 commit comments

Comments
 (0)