Skip to content

[ADD] gitlab_tools: add new parameter in command gitlab to check odoo log t#43737

With this changes, we could check if odoo.log got from odoo job has warnings and show them, but let it continue with flow to generate deployv instance.

To test,

1.- In a project that we know that have warnings, do a dummy MR with this new job in .gitlab-ci.yml:

check_log:
  image: quay.io/vauxoo/dockerv:latest
  stage: build
  allow_failure: true
  dependencies:
    - odoo
  script:
    - source variables.sh
    - deployvcmd gitlab_tools check_keys
    - git clone git@git.vauxoo.com:vauxoo-dev/gitlab_tools.git -b master-addscripttoodoolog-fer
    - pip3 install -e ./gitlab_tools
    - deployvcmd gitlab_tools check_log --logpath="./$CI_COMMIT_REF_SLUG"

2.- Add following line before travis_run_tests command in odoo job:

    - - export STDOUT_LOG="./$CI_COMMIT_REF_SLUG/odoo.log"

DUMMY PR:

Edited by Fernanda Hernández

Merge request reports