Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SECO Northern Europe
Yocto
infrastructure
gitlab-ci
Commits
7cc7fa77
Commit
7cc7fa77
authored
3 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
CI: Add all yocto projects to the job list
parent
b097a253
No related branches found
No related tags found
1 merge request
!101
CI: Create pipeline to deploy changes in gitlab-ci to all subprojects, include all CI implementations from there.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-47
51 additions, 47 deletions
.gitlab-ci.yml
with
51 additions
and
47 deletions
.gitlab-ci.yml
+
51
−
47
View file @
7cc7fa77
...
...
@@ -87,6 +87,34 @@ workflow:
paths
:
-
integration.yml
deploy
:
extends
:
.deploy
variables
:
PROJECT_ROOT
:
${CI_PROJECT_ROOT_NAMESPACE}
MANIFEST_PROJECT
:
${PROJECT_ROOT}/yocto/manifest
DEPLOY_TO
:
${PROJECT_ROOT}/3rd-party/kuk/uboot-imx-kuk
${PROJECT_ROOT}/kernel/linux-guf
${PROJECT_ROOT}/kernel/linux-imx-kuk
${PROJECT_ROOT}/kernel/modules/egalaxi2c
${PROJECT_ROOT}/kernel/modules/gfplatdetect
${PROJECT_ROOT}/tools/gf-emc-test-suite
${PROJECT_ROOT}/tools/gf-productiontests
${PROJECT_ROOT}/tools/gfeeprom
${PROJECT_ROOT}/tools/gfxml2dto
${PROJECT_ROOT}/tools/guf-show-demo
${PROJECT_ROOT}/tools/libmdb
${PROJECT_ROOT}/tools/touchcal-conv
${PROJECT_ROOT}/tools/xconfig
${PROJECT_ROOT}/yocto/config
${PROJECT_ROOT}/yocto/infrastructure/ci-test/minimal-bar
${PROJECT_ROOT}/yocto/infrastructure/ci-test/minimal-foo
${PROJECT_ROOT}/yocto/infrastructure/ci-test/minimal-manifest
${PROJECT_ROOT}/yocto/layers/meta-guf-distro
${PROJECT_ROOT}/yocto/layers/meta-guf-machine
deploy-foobar
:
extends
:
.deploy
variables
:
...
...
@@ -99,6 +127,15 @@ deploy-foobar:
${PROJECT_ROOT}/minimal-foo
${PROJECT_ROOT}/minimal-bar
trigger
:
stage
:
deploy
needs
:
[
deploy
]
trigger
:
include
:
-
artifact
:
integration.yml
job
:
deploy
strategy
:
depend
trigger-foobar
:
stage
:
deploy
needs
:
[
deploy-foobar
]
...
...
@@ -122,57 +159,24 @@ check:
-
cd ${CI_PROJECT_DIR}
-
MERGE_REQUEST="${CI_MERGE_REQUEST_IID}";
-
PROJECT_ROOT=${CI_PROJECT_ROOT_NAMESPACE}/yocto/infrastructure/ci-test
-
MANIFEST_PROJECT=${PROJECT_ROOT}/minimal-manifest
-
MASTER_BRANCH=master
-
MASTER_BRANCH=dunfell
-
./check_if_integration_branch_is_up_to_date.py
--gitlab-url=${CI_SERVER_URL}
--token=${GITBOT_TOKEN}
--manifest-project=${
MANIFEST_PROJECT}
--manifest-project=${
CI_PROJECT_ROOT_NAMESPACE}/yocto/manifest
--integration-base=${MASTER_BRANCH}
--project=${CI_PROJECT_PATH}
--merge-request=${MERGE_REQUEST}
--merge-request=${
CI_
MERGE_REQUEST
_IID
}
--verbose
# TODO repeat this for yocto manifest
# ---------------------------------------------------------------------------------------
# Stage: deploy
# ---------------------------------------------------------------------------------------
# .deploy: &deploy
# stage: deploy
# when: manual
# allow_failure: true
# script:
# - cd ${CI_PROJECT_DIR}
# - if [[ "$CI_COMMIT_BRANCH" == "master" ]]; then MERGE="--merge";
# else MERGE=""; fi
# - ./deploy_gitlab_ci.py
# --gitlab-url=${CI_SERVER_URL}
# --token=${GITBOT_TOKEN}
# --project=${CI_PROJECT_ROOT_NAMESPACE}/${CI_JOB_NAME}
# --submodule=.gitlab-ci
# --revision=${CI_COMMIT_SHA}
# ${MERGE}
#
# 3rd-party/kuk/uboot-imx-kuk: *deploy
# kernel/linux-guf: *deploy
# kernel/linux-imx-kuk: *deploy
# kernel/modules/egalaxi2c: *deploy
# kernel/modules/gfplatdetect: *deploy
# tools/gf-emc-test-suite: *deploy
# tools/gf-productiontests: *deploy
# tools/gfeeprom: *deploy
# tools/gfxml2dto: *deploy
# tools/guf-show-demo: *deploy
# tools/libmdb: *deploy
# tools/touchcal-conv: *deploy
# tools/xconfig: *deploy
# yocto/config: *deploy
# yocto/infrastructure/ci-test/minimal-bar: *deploy
# yocto/infrastructure/ci-test/minimal-foo: *deploy
# yocto/infrastructure/ci-test/minimal-manifest: *deploy
# yocto/layers/meta-guf-distro: *deploy
# yocto/layers/meta-guf-machine: *deploy
# yocto/manifest: *deploy
# The check is done for both manifests in one job as the retrigger
# looks for jobs named check, though there can only be one
-
./check_if_integration_branch_is_up_to_date.py
--gitlab-url=${CI_SERVER_URL}
--token=${GITBOT_TOKEN}
--manifest-project
${CI_PROJECT_ROOT_NAMESPACE}/yocto/infrastructure/ci-test/minimal-manifest
--integration-base=master
--project=${CI_PROJECT_PATH}
--merge-request=${CI_MERGE_REQUEST_IID}
--verbose
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment