Skip to content
Snippets Groups Projects
  1. Jul 25, 2023
    • Tim Jaacks's avatar
      Yocto build: unify image and SDK package jobs · 5762a54c
      Tim Jaacks authored
      Image and SDK package jobs call the same package script just with
      different arguments. Instead of having two job classes `package_release`
      and `package_sdk` for these two tasks, merge them into the base class
      `package` and make the differences configurable via a variable
      `PACKAGE_TYPE`.
      5762a54c
    • Tim Jaacks's avatar
      Yocto build: add variable for manual builds · 8e72eac2
      Tim Jaacks authored
      Instead of hard-coding the rules for manual builds in each actual job,
      conditionally add this to the `buildbase` class and add a variable
      `MANUAL_BUILD` to the according jobs.
      8e72eac2
    • Tim Jaacks's avatar
      Yocto build: unify image and SDK build jobs · e6d71996
      Tim Jaacks authored
      Image and SDK builds share a lot of similar code. Instead of having two
      job classes `build_yocto_image` and `build_yocto_sdk` for these two
      tasks, merge them into the base class `build_yocto` and make the
      differences configurable via a variable.
      
      The `dump_install_command` part of the script, which was not executed
      for SDK builds, is always present now, but it's only executed if the
      `INSTALLSCRIPT` variable is set, which is not the case for SDK builds.
      
      The `collect_srcrevs` part of the script is executed in all cases. It
      was not part of the SDK build before, but it's not less relevant there.
      e6d71996
    • Tim Jaacks's avatar
      Yocto build: make main artifacts path configurable · f892500f
      Tim Jaacks authored
      Instead of specifying all possible artifacts paths and abusing the fact
      that GitLab ignores non-existing paths during artifact upload, implement
      a cleaner solution with a configurable path.
      f892500f
  2. Jul 24, 2023
  3. Jul 21, 2023
  4. Jul 17, 2023
  5. Jul 13, 2023
  6. Jun 02, 2023
  7. Apr 24, 2023
    • Tim Jaacks's avatar
      Fix check for branch protection state · 23680f48
      Tim Jaacks authored
      Since the changes of 939ade2b we observe
      that pipelines are executed on non-protected branches, which is not what
      we want.
      
      GitLab's documentation was a bit unclear on the according CI variables
      CI_COMMIT_REF_PROTECTED and CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED, as
      stated in this stack overflow answer:
      https://stackoverflow.com/a/59023344/3018229
      
      We need to explicitly check for the variable values to be "true" instead
      of just checking whether they are set.
      23680f48
  8. Apr 04, 2023
    • Tim Jaacks's avatar
      Depend intgration pipeline execution on branch protection state · 939ade2b
      Tim Jaacks authored
      Previously we had the master branch hard-coded in a variable in order to
      determine whether to run the integration pipeline (on non-master branch)
      or the merge pipeline (on master branch). This variable had to be
      adapted everytime we copy a branch, which can potentially be forgotten
      and lead to problems.
      
      Remove the hard-coded branch and use the branch protection state for
      this decision instead in order to make this more flexible.
      939ade2b
  9. Apr 03, 2023
    • Tim Jaacks's avatar
      Simplify yamllint job rules · dbc49ad0
      Tim Jaacks authored
      The rules for the yamllint jobs have been defined in the .yamllint class
      before. They were overridden in the manifest pipeline's yamllint job,
      though, which has its own rules, so we don't need them to be inherited
      in this case. And in the manifest integration pipeline the rules can be
      much easier, so define them there instead of at the class-level.
      dbc49ad0
  10. Mar 27, 2023
  11. Mar 21, 2023
    • Tim Jaacks's avatar
      Use project path instead of name in integration branch name · e943a55e
      Tim Jaacks authored
      Usually project name and path are identical after project creation. It
      is possible, though, to change the name of a project without changing
      its path.
      When triggering a pipeline on the integration branch, we are using the
      CI_PROJECT_NAME variable to reference the project. Unexpectedly, this
      variable contains the *path*, not the *name* of the project (see
      https://gitlab.com/gitlab-org/gitlab/-/issues/20030).
      Hence we have to use the project path in all other places where the
      integration branch name is constructed in our Python code.
      e943a55e
  12. Mar 20, 2023
  13. Mar 07, 2023
  14. Feb 28, 2023
  15. Feb 20, 2023
  16. Feb 14, 2023
  17. Feb 10, 2023
  18. Feb 06, 2023
  19. Jan 10, 2023
Loading