Package org.netmelody.cieye.spies.jenkins.jsondomain

Examples of org.netmelody.cieye.spies.jenkins.jsondomain.Job


       
        assertThat(target.status(), Matchers.is(Status.BROKEN));
    }
   
    private Job defaultJob() {
        final Job job = new Job();
        job.name = "jobName";
        job.url = "jobUrl";
        job.color = "blue";
        return job;
    }
View Full Code Here


   
    private ViewDetail viewWithJobsNamed(String... names) {
        final ViewDetail server = new ViewDetail();
        server.jobs = Lists.newArrayList();
        for (String name : names) {
            final Job job = new Job();
            job.name = name;
            job.url = name;
            job.color = "red";
            server.jobs.add(job);
        }
View Full Code Here

        return new TargetDigestGroup(digests);
    }

    @Override
    public TargetDetail statusOf(final TargetId target) {
        Job job = recognisedJobs.get(target);
        if (null == job) {
            return null;
        }
        return laboratory.analyseJob(job);
    }
View Full Code Here

    public boolean takeNoteOf(TargetId target, String note) {
        if (!recognisedJobs.containsKey(target)) {
            return false;
        }
       
        final Job job = this.recognisedJobs.get(target);
        final String buildUrl = this.laboratory.lastBadBuildUrlFor(job);
       
        if (buildUrl.isEmpty()) {
            return true;
        }
View Full Code Here

    canAnalyseJobFromTheJenkinsLiveInstance() {
        final Contact contact = new JsonRestRequester(new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").create());
        final JenkinsCommunicator communicator = new JenkinsCommunicator("http://ci.jenkins-ci.org", contact);
        final JobLaboratory lab = new JobLaboratory(communicator, new RecordedKnownOffenders(new SettingsFile(new File(""))));

        final Job job = new Job();
        job.url = "http://ci.jenkins-ci.org/view/Jenkins%20core/job/jenkins_pom/";
       
        lab.analyseJob(job);
        lab.lastBadBuildUrlFor(job);
    }
View Full Code Here

TOP

Related Classes of org.netmelody.cieye.spies.jenkins.jsondomain.Job

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.