Skip to content
Snippets Groups Projects
Commit 04cd24f2 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

CI: Remove debug, enable yocto manifest deploy

parent 89bed7e6
No related branches found
No related tags found
1 merge request!106CI: Remove debug, enable yocto manifest deploy
Pipeline #9052 failed with stages
in 2 minutes and 20 seconds
...@@ -109,7 +109,6 @@ yamllint: ...@@ -109,7 +109,6 @@ yamllint:
--manifest-project=${MANIFEST_PROJECT} --manifest-project=${MANIFEST_PROJECT}
--submodule=.gitlab-ci --submodule=.gitlab-ci
--revision=${CI_COMMIT_SHA} --revision=${CI_COMMIT_SHA}
--verbose
${DEPLOY_TO} ${DEPLOY_TO}
- ./generate_job_from_template.py - ./generate_job_from_template.py
...@@ -118,7 +117,6 @@ yamllint: ...@@ -118,7 +117,6 @@ yamllint:
--branch="integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}" --branch="integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}"
--manifest-project=${MANIFEST_PROJECT} --manifest-project=${MANIFEST_PROJECT}
--parent_merge_request="${CI_MERGE_REQUEST_PROJECT_URL}/-/merge_requests/${CI_MERGE_REQUEST_IID}" --parent_merge_request="${CI_MERGE_REQUEST_PROJECT_URL}/-/merge_requests/${CI_MERGE_REQUEST_IID}"
--verbose
${DEPLOY_TO} ${DEPLOY_TO}
> integration.yml > integration.yml
- cat integration.yml - cat integration.yml
...@@ -130,10 +128,6 @@ deploy: ...@@ -130,10 +128,6 @@ deploy:
extends: extends:
- .deploy - .deploy
- .manifest-projects - .manifest-projects
rules:
# For now to test the merge step
- when: manual
allow_failure: true
deploy-foobar: deploy-foobar:
extends: extends:
...@@ -176,7 +170,6 @@ trigger-foobar: ...@@ -176,7 +170,6 @@ trigger-foobar:
--manifest-project=${MANIFEST_PROJECT} --manifest-project=${MANIFEST_PROJECT}
--submodule=.gitlab-ci --submodule=.gitlab-ci
--revision=${CI_COMMIT_SHA} --revision=${CI_COMMIT_SHA}
--verbose
${DEPLOY_TO} ${DEPLOY_TO}
merge-foobar: merge-foobar:
...@@ -184,6 +177,11 @@ merge-foobar: ...@@ -184,6 +177,11 @@ merge-foobar:
- .merge - .merge
- .foobar-manifest-projects - .foobar-manifest-projects
merge:
extends:
- .merge
- .manifest-projects
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
# Stage: check # Stage: check
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
...@@ -206,7 +204,6 @@ check: ...@@ -206,7 +204,6 @@ check:
--integration-base=${MASTER_BRANCH} --integration-base=${MASTER_BRANCH}
--project=${CI_PROJECT_PATH} --project=${CI_PROJECT_PATH}
--merge-request=${CI_MERGE_REQUEST_IID} --merge-request=${CI_MERGE_REQUEST_IID}
--verbose
# The check is done for both manifests in one job as the retrigger # The check is done for both manifests in one job as the retrigger
# looks for jobs named check, though there can only be one # looks for jobs named check, though there can only be one
...@@ -218,4 +215,3 @@ check: ...@@ -218,4 +215,3 @@ check:
--integration-base=master --integration-base=master
--project=${CI_PROJECT_PATH} --project=${CI_PROJECT_PATH}
--merge-request=${CI_MERGE_REQUEST_IID} --merge-request=${CI_MERGE_REQUEST_IID}
--verbose
...@@ -36,6 +36,8 @@ version in the SRCREV.conf file. ...@@ -36,6 +36,8 @@ version in the SRCREV.conf file.
* BB\_RECIPE\_NAME: Set the name of the bitbake recipe * BB\_RECIPE\_NAME: Set the name of the bitbake recipe
1. Create a corresponding entry in the SRCREV.conf file of the manifest repo\ 1. Create a corresponding entry in the SRCREV.conf file of the manifest repo\
`SRCREV_pn-<bitbake-recipe> = "<current-commit-hash>"` `SRCREV_pn-<bitbake-recipe> = "<current-commit-hash>"`
1. Add the project into the gitlab-ci project's .gitlab-ci.yml, so changes to the
CI are deployed into the new project.
**Repository settings** **Repository settings**
1. Verify that the merge strategy is set to *Fast-forward merge* 1. Verify that the merge strategy is set to *Fast-forward merge*
......
...@@ -143,7 +143,7 @@ def main(): ...@@ -143,7 +143,7 @@ def main():
project, args.submodule, args.revision, branch project, args.submodule, args.revision, branch
) )
logging.debug("Merge %s!%d: %s", project.name, mr.iid, mr.title) print("Merge {}!{}: {}".format(project.name, mr.iid, mr.title))
# Wait until GitLab has checked merge status # Wait until GitLab has checked merge status
common.wait_until_merge_status_is_set(project, mr) common.wait_until_merge_status_is_set(project, mr)
......
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