from buildbot.process.factory import BuildFactory
from buildbot.steps.source.git import Git
from buildbot.steps.shell import ShellCommand
-from buildbot.steps.shell import SetProperty
from buildbot.steps.shell import SetPropertyFromCommand
from buildbot.steps.transfer import FileUpload
from buildbot.steps.transfer import FileDownload
factory = BuildFactory()
# find number of cores
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "nproc",
property = "nproc",
description = "Finding number of CPUs",
slavedest = "../findbin.pl",
mode = 0755))
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "gcc",
property = "cc_command",
description = "Finding gcc command",
command = ["../findbin.pl", "gcc", cc_version[0], cc_version[1]],
haltOnFailure = True))
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "g++",
property = "cxx_command",
description = "Finding g++ command",
))
# find libc suffix
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "libc",
property = "libc",
description = "Finding libc suffix",
))
# find kernel version
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "kernelversion",
property = "kernelversion",
description = "Finding the effective Kernel version",
))
# find rootfs staging directory
- factory.addStep(SetProperty(
+ factory.addStep(SetPropertyFromCommand(
name = "stageroot",
property = "stageroot",
description = "Finding the rootfs staging directory",