Skip to content
Snippets Groups Projects
Commit f3ba80d1 authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[CUSTOM] Add two custom projects to gitlab-ci deployment

* This commit allows gitlab-ci to be integrated in two other custom
projects
parent ab633db0
No related branches found
No related tags found
No related merge requests found
...@@ -116,6 +116,21 @@ executable: ...@@ -116,6 +116,21 @@ executable:
MANIFEST_PROJECT: ${PROJECT_GROUP}/manifest MANIFEST_PROJECT: ${PROJECT_GROUP}/manifest
MANIFEST_BRANCH: ${CUSTOM_1_BRANCH} MANIFEST_BRANCH: ${CUSTOM_1_BRANCH}
.integrate-custom-2:
extends: .integrate
resource_group: integrate-custom-2
variables:
PROJECT_GROUP: ${CUSTOM_2_GROUP}
MANIFEST_PROJECT: ${PROJECT_GROUP}/manifest
MANIFEST_BRANCH: ${CUSTOM_2_BRANCH}
.integrate-custom-3:
extends: .integrate
resource_group: integrate-custom-3
variables:
PROJECT_GROUP: ${CUSTOM_3_GROUP}
MANIFEST_PROJECT: ${PROJECT_GROUP}/manifest
MANIFEST_BRANCH: ${CUSTOM_3_BRANCH}
# Jobs # Jobs
#integrate-ci-test:primary: #integrate-ci-test:primary:
...@@ -143,6 +158,16 @@ integrate-yocto:custom-1: ...@@ -143,6 +158,16 @@ integrate-yocto:custom-1:
variables: variables:
MANIFEST_BRANCH: ${CUSTOM_1_BRANCH} MANIFEST_BRANCH: ${CUSTOM_1_BRANCH}
integrate-yocto:custom-2:
extends: .integrate-custom-2
variables:
MANIFEST_BRANCH: ${CUSTOM_2_BRANCH}
integrate-yocto:custom-3:
extends: .integrate-custom-3
variables:
MANIFEST_BRANCH: ${CUSTOM_3_BRANCH}
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
# Stage: build # Stage: build
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
...@@ -175,6 +200,20 @@ integrate-yocto:custom-1: ...@@ -175,6 +200,20 @@ integrate-yocto:custom-1:
project: ${CUSTOM_1_GROUP}/manifest project: ${CUSTOM_1_GROUP}/manifest
branch: "integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}/into/${CUSTOM_1_BRANCH}" branch: "integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}/into/${CUSTOM_1_BRANCH}"
strategy: depend strategy: depend
.build-custom-2:
extends: .build
trigger:
project: ${CUSTOM_2_GROUP}/manifest
branch: "integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}/into/${CUSTOM_2_BRANCH}"
strategy: depend
.build-custom-3:
extends: .build
trigger:
project: ${CUSTOM_3_GROUP}/manifest
branch: "integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}/into/${CUSTOM_3_BRANCH}"
strategy: depend
# Jobs # Jobs
#build-ci-test:primary: #build-ci-test:primary:
...@@ -207,6 +246,18 @@ build-yocto:custom-1: ...@@ -207,6 +246,18 @@ build-yocto:custom-1:
variables: variables:
MANIFEST_BRANCH: ${CUSTOM_1_BRANCH} MANIFEST_BRANCH: ${CUSTOM_1_BRANCH}
build-yocto:custom-2:
extends: .build-custom-2
needs: ["integrate-yocto:custom-2"]
variables:
MANIFEST_BRANCH: ${CUSTOM_2_BRANCH}
build-yocto:custom-3:
extends: .build-custom-3
needs: ["integrate-yocto:custom-3"]
variables:
MANIFEST_BRANCH: ${CUSTOM_3_BRANCH}
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
# Stage: merge # Stage: merge
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
...@@ -238,4 +289,18 @@ merge-custom-1: ...@@ -238,4 +289,18 @@ merge-custom-1:
- .integrate-custom-1 - .integrate-custom-1
- .merge - .merge
variables: variables:
MANIFEST_BRANCH: ${CUSTOM_1_BRANCH} MANIFEST_BRANCH: ${CUSTOM_1_BRANCH}
\ No newline at end of file
merge-custom-2:
extends:
- .integrate-custom-2
- .merge
variables:
MANIFEST_BRANCH: ${CUSTOM_2_BRANCH}
merge-custom-3:
extends:
- .integrate-custom-3
- .merge
variables:
MANIFEST_BRANCH: ${CUSTOM_3_BRANCH}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment