Revision 24ccf5d3

b/ci/new_config
8 8
# Git branch to test (specify sha1 or branch name). If not set, the
9 9
# branch/sha will result from the current repository.
10 10
synnefo_branch =
11
# snf-deploy git repo
12
deploy_repo = https://code.grnet.gr/git/snf-deploy
13 11
# Defines the schema that snf-deploy will use
14 12
schema = one_node
15 13
# Local dir to save builded packages
b/ci/utils.py
465 465
            self.logger.error("Can not clone Synnefo repo.")
466 466
            sys.exit(-1)
467 467

  
468
        deploy_repo = self.config.get('Global', 'deploy_repo')
469
        self.logger.debug("Clone snf-deploy from %s" % deploy_repo)
470
        _run("git clone --depth 1 %s" % deploy_repo, False)
471

  
472 468
    @_check_fabric
473 469
    def build_synnefo(self):
474 470
        """Build Synnefo packages"""
......
490 486
            """
491 487
            _run(cmd, False)
492 488

  
493
        self.logger.debug("Build snf-deploy package")
489
        # Build synnefo packages
490
        self.logger.debug("Build synnefo packages")
494 491
        cmd = """
495
        git checkout -t origin/debian
496
        git-buildpackage --git-upstream-branch=master \
497
                --git-debian-branch=debian \
498
                --git-export-dir=../snf-deploy_build-area \
499
                -uc -us
492
        devflow-autopkg snapshot -b ~/synnefo_build-area --no-sign
500 493
        """
501
        with fabric.cd("snf-deploy"):
494
        with fabric.cd("synnefo"):
502 495
            _run(cmd, True)
503 496

  
497
        # Install snf-deploy package
504 498
        self.logger.debug("Install snf-deploy package")
505 499
        cmd = """
506 500
        dpkg -i snf-deploy*.deb
507 501
        apt-get -f install --yes
508 502
        """
509
        with fabric.cd("snf-deploy_build-area"):
503
        with fabric.cd("synnefo_build-area"):
510 504
            with fabric.settings(warn_only=True):
511 505
                _run(cmd, True)
512 506

  
513
        self.logger.debug("Build synnefo packages")
514
        cmd = """
515
        devflow-autopkg snapshot -b ~/synnefo_build-area --no-sign
516
        """
517
        with fabric.cd("synnefo"):
518
            _run(cmd, True)
519

  
507
        # Setup synnefo packages for snf-deploy
520 508
        self.logger.debug("Copy synnefo debs to snf-deploy packages dir")
521 509
        cmd = """
522 510
        cp ~/synnefo_build-area/*.deb /var/lib/snf-deploy/packages/

Also available in: Unified diff