def test_compare_revision(self): self.assertNotEqual( ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( revision=FixedParameter("revision", "fish-v1"))), ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( revision=FixedParameter("revision", "fish-v2"))))
def test_compare_repository(self): self.assertNotEqual( ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( repository=FixedParameter("repository", "git://pond.org/fisher.git"))), ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( repository=FixedParameter("repository", "svn://ocean.com/trawler/"))))
def test_compare_project(self): self.assertNotEqual( ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( project=FixedParameter("project", "fisher"))), ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( project=FixedParameter("project", "trawler"))))
def test_compare_branch(self): self.assertNotEqual( ForceScheduler(name="testched", builderNames=[]), ForceScheduler( name="testched", builderNames=[], codebases=oneCodebase( branch=FixedParameter("branch", "fishing/pole"))))
"branch": setup.config_git_revision, } }, ) # Force rebuild Docker images docker_buildenv_image_rebuild_force_sched = schedulers.ForceScheduler( name='force-docker-buildenv-image', buttonName="Force a rebuild of this Dockerized build environment now", label="Rebuild now a Docker build environement image", builderNames=[ *(builder.name for builder in docker_buildenv_image_builders), ], codebases=oneCodebase( project=None, repository=setup.config_git_clone_url, branch=setup.config_git_revision, revision=None, ), ) # Scheduler to force a resynchronizaion from scratch of the CLIP OS source # tree: repo_sync_force_sched = schedulers.ForceScheduler( name='force-repo-sync-clipos', buttonName="Force a synchronization from scratch of the source tree", label="Synchronization from scratch", builderNames=[ # Only one builder is eligible to this scheduler: repo_sync_builder.name, ], codebases=oneCodebase(