예제 #1
0
    def startVC(self, branch, revision, patch):
        if self.getProperty('branch_'+self.layername):
            self.branch = self.getProperty('branch_'+self.layername)
        else:
            self.branch = "master"
        if self.getProperty('repo_'+self.layername):
            self.repourl = self.getProperty('repo_'+self.layername)
        else:
            self.repourl = "git://git.yoctoproject.org/poky"

        if self.getProperty('commit_'+self.layername) == "HEAD" and \
           self.getProperty('commit_resolvedhead_'+self.layername) is not None:
            log.msg("Using Resolved HEAD")
            self.commit = self.getProperty('commit_resolvedhead_'+self.layername)
        elif self.getProperty('commit_'+self.layername):
            self.commit = self.getProperty('commit_'+self.layername)
        else:
            self.commit = "HEAD"

        self.setProperty('repourl_' + self.layername, self.repourl, "CheckOutLayers")
        self.setProperty('branch_' + self.layername, self.branch, "CheckOutLayers")
        self.setProperty('commit_' + self.layername, self.commit, "CheckOutLayers")
        if self.layername == "poky" or self.layername == "oecore" or "eclipse" in self.layername:
            self.setProperty('repository', self.repourl, "CheckOutLayers")
            self.setProperty('branch', self.branch, "CheckOutLayers")
            self.setProperty('revision', self.commit, "CheckOutLayers")
        YoctoGit.startVC(self, branch=self.branch, patch=None, revision=self.commit)
예제 #2
0
    def startVC(self, branch, revision, patch):
        if self.getProperty("branch_trigger_" + self.layername + "_" + self.scheduler):
            self.branch = self.getProperty("branch_trigger_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("branch_triggerer_" + self.layername + "_" + self.scheduler):
            self.branch = self.getProperty("branch_triggerer_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("branch_" + self.layername):
            self.branch = self.getProperty("branch_" + self.layername)
        else:
            self.branch = "master"
        if self.getProperty("repo_trigger_" + self.layername + "_" + self.scheduler):
            self.repourl = self.getProperty("repo_trigger_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("repo_triggerer_" + self.layername + "_" + self.scheduler):
            self.repourl = self.getProperty("repo_triggerer_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("repo_" + self.layername):
            self.repourl = self.getProperty("repo_" + self.layername)
        else:
            self.repourl = "git://git.yoctoproject.org/poky"

        if (
            self.getProperty("commit_trigger_" + self.layername + "_" + self.scheduler) == "HEAD"
            and self.getProperty("repo_trigger_" + self.layername + "_" + self.scheduler)
            == self.getProperty("triggers_repo_" + self.layername)
            and self.getProperty("branch_trigger_" + self.layername + "_" + self.scheduler)
            == self.getProperty("triggers_branch_" + self.layername)
            and self.getProperty("commit_resolvedhead_" + self.layername) is not None
        ):
            log.msg("Using Resolved HEAD")
            self.commit = self.getProperty("commit_resolvedhead_" + self.layername)
        elif self.getProperty("commit_trigger_" + self.layername + "_" + self.scheduler):
            self.commit = self.getProperty("commit_trigger_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("commit_triggerer_" + self.layername + "_" + self.scheduler):
            self.commit = self.getProperty("commit_triggerer_" + self.layername + "_" + self.scheduler)
        elif self.getProperty("commit_" + self.layername):
            self.commit = self.getProperty("commit_" + self.layername)
        else:
            self.commit = "HEAD"

        self.setProperty("repourl_" + self.layername, self.repourl, "CheckOutLayers")
        self.setProperty("branch_" + self.layername, self.branch, "CheckOutLayers")
        self.setProperty("commit_" + self.layername, self.commit, "CheckOutLayers")
        if self.layername == "poky" or self.layername == "oecore" or "eclipse" in self.layername:
            self.setProperty("repository", self.repourl, "CheckOutLayers")
            self.setProperty("branch", self.branch, "CheckOutLayers")
            self.setProperty("revision", self.commit, "CheckOutLayers")
        YoctoGit.startVC(self, branch=self.branch, patch=None, revision=self.commit)