Comment 2 for bug 1656985

Revision history for this message
Shawn Wang (shawn111) wrote :

mojo 0.4.1-2

host: xenial, mojo -c lxc

the buildphase force to use nonet config but it wasn't created.

class BuildPhase(ScriptPhase):
    """Execute a build script within a build directory. The build environment
       is restricted to have no access to networks.
       Arguments:
           config Base name for build script file
    """
    name = "build"

    def run(self, project, workspace, stage, auto_secrets=True):
        "Run a build script"
        # XXX: Remove network access during build phase
        super(BuildPhase, self).run(project, workspace, stage,
                                    lxc=True, network=False,
                                    auto_secrets=auto_secrets,
                                    gather_debug_logs=False)