Package dk.contix.eclipse.hudson

Examples of dk.contix.eclipse.hudson.HudsonClient


        final Job j = (Job) sel.getFirstElement();

        org.eclipse.core.runtime.jobs.Job sj = new org.eclipse.core.runtime.jobs.Job("Scheduling Hudson build") {
          protected IStatus run(IProgressMonitor monitor) {
            try {
              new HudsonClient().scheduleJob(j.getName());
            } catch (IOException e1) {
              return new Status(Status.ERROR, Activator.PLUGIN_ID, 0, "Unable to schedule job", e1);
            }

            try {
View Full Code Here


        return false;
      }
    }

    private void check() throws Exception {
      new HudsonClient().checkValidUrl(getStringValue());
    }
View Full Code Here

        final Job j = (Job) sel.getFirstElement();

        org.eclipse.core.runtime.jobs.Job sj = new org.eclipse.core.runtime.jobs.Job("Scheduling Hudson build") {
          protected IStatus run(IProgressMonitor monitor) {
            try {
              new HudsonClient().scheduleJob(j.getName());
            } catch (IOException e1) {
              return new Status(Status.ERROR, Activator.PLUGIN_ID, 0, "Unable to schedule job", e1);
            }

            try {
View Full Code Here

      }
    }

    private void check() throws Exception {
      if (getStringValue() != null && !"".equals(getStringValue().trim())) {
        new HudsonClient().checkValidUrl(getStringValue());
      }
    }
View Full Code Here

        final Job j = (Job) sel.getFirstElement();

        org.eclipse.core.runtime.jobs.Job sj = new org.eclipse.core.runtime.jobs.Job("Scheduling Hudson build") {
          protected IStatus run(IProgressMonitor monitor) {
            try {
              new HudsonClient().scheduleJob(j.getName());
            } catch (IOException e1) {
              return new Status(Status.ERROR, Activator.PLUGIN_ID, 0, "Unable to schedule job", e1);
            }

            try {
View Full Code Here

    updateViewMenu(viewmenu);
    manager.add(viewmenu);
  }

  private void updateViewMenu(MenuManager viewmenu) {
    HudsonClient client = new HudsonClient();
   
    try {
      JobView[] views = client.getViews();
      for (JobView view : views) {
        viewmenu.add(new SelectViewAction(viewer, view, jobContentProvider));
      }
    } catch (IOException e) {
      // unable to get views. Don't do anything
View Full Code Here

        final Job j = (Job) sel.getFirstElement();

        org.eclipse.core.runtime.jobs.Job sj = new org.eclipse.core.runtime.jobs.Job("Scheduling Hudson build") {
          protected IStatus run(IProgressMonitor monitor) {
            try {
              new HudsonClient().scheduleJob(j.getName());
            } catch (IOException e1) {
              return new Status(Status.ERROR, Activator.PLUGIN_ID, 0, "Unable to schedule job", e1);
            }

            try {
View Full Code Here

      }
    }

    private void check() throws Exception {
      if (getStringValue() != null && !"".equals(getStringValue().trim())) {
        new HudsonClient().checkValidUrl(getStringValue(), authEnabled.getBooleanValue(), username.getStringValue(), password.getStringValue());
      }
    }
View Full Code Here

      }
    }

    private void check() throws Exception {
      if (getStringValue() != null && !"".equals(getStringValue().trim())) {
        new HudsonClient().checkValidUrl(getStringValue(), authEnabled.getBooleanValue(), username.getStringValue(), password.getStringValue());
      }
    }
View Full Code Here

    updateViewMenu(viewmenu);
    manager.add(viewmenu);
  }

  private void updateViewMenu(MenuManager viewmenu) {
    HudsonClient client = new HudsonClient();
   
    try {
      JobView[] views = client.getViews();
      for (JobView view : views) {
        viewmenu.add(new SelectViewAction(viewer, view, jobContentProvider));
      }
    } catch (IOException e) {
      // unable to get views. Don't do anything
View Full Code Here

TOP

Related Classes of dk.contix.eclipse.hudson.HudsonClient

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.