Package hudson.model

Examples of hudson.model.Project


                // Don't try to identify downstream dependencies of a disabled project.
                // This is more consistent when simulating Hudson dependency behavior,
                // i.e. a disabled parent could not have been built to initiate the trigger.
                if (candidate.isDisabled() || !(candidate instanceof Project)) continue;

                Project p = (Project) candidate;
                IvyBuildTrigger t = (IvyBuildTrigger) p.getPublisher(DESCRIPTOR);

                if (t != null) {
                    if (extendedVersionMatching) {
                        ModuleDescriptor md = t.getModuleDescriptor(p);
                        ModuleRevisionId mdrid = md.getModuleRevisionId();
View Full Code Here


                LOG.info("unable to launch job "+jn+", it=null");
      }else if (!(it instanceof Project)){
          LOG.info("unable to launch job "+jn+", because it's not a Project, but just "+it.getClass());
      }else{
        // TODO 8: would like to have AbstractProject here, but it doesn't have BuildWrappers.
          Project p = (Project)it;
       
        DescribableList wrappers = p.getBuildWrappersList();
        JenkowBuildWrapper wrapper = new JenkowBuildWrapper();
        if (!wrappers.contains(wrapper.getDescriptor())) wrappers.add(wrapper);
       
        p.scheduleBuild2(jenkins.getQuietPeriod(),new WorkflowCause("triggered by workflow"),ja);
        return;
      }
    }
   
    // TODO 9: need test for Jenkins task with empty / non-existing job name
View Full Code Here

TOP

Related Classes of hudson.model.Project

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.