From: "Magnus Granberg" <zorry@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/config/
Date: Mon, 24 Jan 2022 00:49:27 +0000 (UTC) [thread overview]
Message-ID: <1642985111.ad1ecea15142bd7bf0165979e2bbda4d19a27207.zorry@gentoo> (raw)
commit: ad1ecea15142bd7bf0165979e2bbda4d19a27207
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 24 00:45:11 2022 +0000
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Mon Jan 24 00:45:11 2022 +0000
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=ad1ecea1
change how remove portage dir is done
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org>
buildbot_gentoo_ci/config/buildfactorys.py | 37 +++++++++++++++++++++++-------
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/buildbot_gentoo_ci/config/buildfactorys.py b/buildbot_gentoo_ci/config/buildfactorys.py
index 53e7bb1..86fa162 100644
--- a/buildbot_gentoo_ci/config/buildfactorys.py
+++ b/buildbot_gentoo_ci/config/buildfactorys.py
@@ -3,6 +3,7 @@
from buildbot.plugins import steps as buildbot_steps
from buildbot.plugins import util
+from twisted.internet import defer
from buildbot_gentoo_ci.steps import update_db
from buildbot_gentoo_ci.steps import category
@@ -93,6 +94,7 @@ def build_request_check():
f.addStep(builders.GetProjectRepositoryData())
return f
+#@defer.inlineCallbacks
def run_build_request():
f = util.BuildFactory()
# set needed Propertys
@@ -101,23 +103,42 @@ def run_build_request():
f.addStep(builders.UpdateRepos())
# Clean and add new /etc/portage
#NOTE: remove the symlink befor the dir
+ #f.addStep(buildbot_steps.ShellCommand(
+ # flunkOnFailure=False,
+ # name='Clean make.profile',
+ # command=['rm', 'make.profile'],
+ # workdir='/etc/portage/'
+ # ))
+ if buildbot_steps.FileExists(file='portage/make.conf', workdir='/etc/', haltOnFailure = False):
+ f.addStep(buildbot_steps.ShellCommand(
+ flunkOnFailure=False,
+ name='Remove portage dir',
+ command=['rm', '-R', 'portage'],
+ workdir='/etc/'
+ ))
f.addStep(buildbot_steps.ShellCommand(
- command=['rm', 'make.profile'],
- workdir='/etc/portage/'
+ flunkOnFailure=False,
+ name='Create portage dir',
+ command=['mkdir', 'portage'],
+ workdir='/etc/'
))
- f.addStep(buildbot_steps.RemoveDirectory(dir="portage",
- workdir='/etc/'))
- f.addStep(buildbot_steps.MakeDirectory(dir="portage",
- workdir='/etc/'))
+ #f.addStep(buildbot_steps.RemoveDirectory(dir="portage",
+ # name='Remove portage dir',
+ # workdir='/etc/'))
+ #f.addStep(buildbot_steps.MakeDirectory(dir="portage",
+ # name = 'Create the portage dir',
+ # workdir='/etc/'))
# Clean /var/cache/portage/logs and emerge.log
f.addStep(buildbot_steps.ShellCommand(
+ flunkOnFailure=False,
name='Clean emerge.log',
command=['rm', 'emerge.log'],
workdir='/var/log/'
))
- f.addStep(buildbot_steps.ShellCommand(
+ if buildbot_steps.FileExists(file='logs', workdir='/var/cache/portage/',haltOnFailure = False):
+ f.addStep(buildbot_steps.ShellCommand(
flunkOnFailure=False,
- name='Clean logs',
+ name='Remove logs',
command=['rm', '-R', 'logs'],
workdir='/var/cache/portage/'
))
next reply other threads:[~2022-01-24 0:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 0:49 Magnus Granberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-06 22:27 [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/config/ Magnus Granberg
2023-06-10 10:08 Magnus Granberg
2023-06-05 8:09 Magnus Granberg
2023-05-28 9:49 Magnus Granberg
2023-05-28 9:49 Magnus Granberg
2023-05-01 9:58 Magnus Granberg
2022-08-10 21:51 Magnus Granberg
2022-07-30 22:44 Magnus Granberg
2022-07-28 11:35 Magnus Granberg
2022-07-13 19:53 Magnus Granberg
2022-06-11 9:52 Magnus Granberg
2022-06-01 0:19 Magnus Granberg
2022-04-22 12:32 Magnus Granberg
2022-01-08 17:22 Magnus Granberg
2021-10-27 20:08 Magnus Granberg
2021-10-16 14:56 Magnus Granberg
2021-04-04 20:30 Magnus Granberg
2021-04-02 22:12 Magnus Granberg
2021-02-27 22:46 Magnus Granberg
2021-02-24 21:27 Magnus Granberg
2020-12-30 9:18 Magnus Granberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1642985111.ad1ecea15142bd7bf0165979e2bbda4d19a27207.zorry@gentoo \
--to=zorry@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox