commit:     59e77c4f9f2ca0d05aa4945e3e765353734791b1
Author:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 12:53:07 2022 +0000
Commit:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 12:53:07 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=59e77c4f

Add SetupPropertys for use of rootworkdir

Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org>

 buildbot_gentoo_ci/steps/package.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/buildbot_gentoo_ci/steps/package.py 
b/buildbot_gentoo_ci/steps/package.py
index 76c90cc..81b400d 100644
--- a/buildbot_gentoo_ci/steps/package.py
+++ b/buildbot_gentoo_ci/steps/package.py
@@ -16,6 +16,23 @@ from buildbot.process.results import SUCCESS
 from buildbot.process.results import FAILURE
 from buildbot.plugins import steps
 
+class SetupPropertys(BuildStep):
+    name = 'Setup propertys for CPV check'
+    description = 'Running'
+    descriptionSuffix = None
+    haltOnFailure = True
+    flunkOnFailure = True
+
+    def __init__(self, **kwargs):
+        # set this in config
+        super().__init__(**kwargs)
+
+    #@defer.inlineCallbacks
+    def run(self):
+        self.setProperty('portage_repos_path', '/repositorys', 
'portage_repos_path')
+        self.setProperty('rootworkdir', '/var/lib/buildbot_worker', 
'rootworkdir')
+        return SUCCESS
+
 class AddPackage(BuildStep):
     def __init__(self, **kwargs):
         super().__init__(**kwargs)
@@ -100,6 +117,7 @@ class TriggerCheckForV(BuildStep):
                         'category_data' : self.getProperty("category_data"),
                         'change_data' : self.getProperty("change_data"),
                         'project_data' : self.getProperty("project_data"),
+                        'cp_worker' : self.getProperty('workername'),
                     }
                 )
             )

Reply via email to