From a073db41be69bd0a3905be6bfd5fcbf322894dc0 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 20 Sep 2019 18:08:02 +0000 Subject: [PATCH] gitlab: Add CI job for packaging scripts Message-id: <20190920180802.27752-1-major@redhat.com> Patchwork-id: 272742 O-Subject: [ARK INTERNAL PATCH] [redhat] gitlab: Add CI job for packaging scripts Bugzilla: RH-Acked-by: Laura Abbott This job runs each time the `internal` branch is updated. It gathers the packaging-related files from the repo and artifacts them inside GitLab. This allows CI jobs to quickly download packaging scripts to use with other upstream repositories. Signed-off-by: Major Hayden Signed-off-by: Jeremy Cline --- .gitignore | 3 +++ .gitlab-ci.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.gitignore b/.gitignore index 369119c3cf46..a484969f62ca 100644 --- a/.gitignore +++ b/.gitignore @@ -162,6 +162,9 @@ x509.genkey configs/*.config localversion +# GitLab CI configuration +!.gitlab-ci.yml + # Clang's compilation database file /compile_commands.json diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d61779295d5c..6b26a3d13b9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,5 @@ +# GitLab CI configuration file + image: registry.gitlab.com/cki-project/experimental/containers/builder-fedora30 stages: @@ -9,3 +11,19 @@ variables: test_rh_configs: stage: test script: make rh-configs + +# This job exports the packaging-related scripts and files for use with other +# upstream kernel trees. +redhat_export: + stage: test + script: + - git log -1 --pretty=format:%H + only: + refs: + - internal + artifacts: + when: always + paths: + - makefile + - Makefile.rhelver + - redhat/