]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
tcmu-runner: remove custom shaman repos added after a build 1397/head
authorAlfredo Deza <adeza@redhat.com>
Wed, 18 Sep 2019 19:58:38 +0000 (15:58 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 18 Sep 2019 19:58:38 +0000 (15:58 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
tcmu-runner/config/definitions/tcmu-runner.yml

index 06976457590e02c5b2cb21fb50d1f26458e18ecb..1e43c8a93ba8fdc077c8667bbc62b257ff30146b 100644 (file)
@@ -108,3 +108,16 @@ If this is checked, then the binaries will be built and pushed to chacra even if
           - text:
               credential-id: shaman-api-key
               variable: SHAMAN_API_KEY
+
+    publishers:
+      - postbuildscript:
+          builders:
+            - role: SLAVE
+              build-on:
+                  - SUCCESS
+                  - UNSTABLE
+                  - FAILURE
+                  - ABORTED
+                  - NOT_BUILT
+              build-steps:
+                - shell: "sudo rm -f /etc/apt/sources.list.d/shaman.list /etc/yum.repos.d/shaman.repo"