Package hudson.model

Examples of hudson.model.AbstractProject.addProperty()


                AbstractProject project = (AbstractProject) item;
                DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class);
                if(property==null){
                    try {
                        property = new DiskUsageProperty();
                        project.addProperty(property);

                    } catch (IOException ex) {
                        Logger.getLogger(DiskUsageItemListener.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
View Full Code Here


                for(AbstractProject project : DiskUsageUtil.getAllProjects((ItemGroup)item)){
                    DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class);
                    if(property==null){
                        try {
                            property = new DiskUsageProperty();
                            project.addProperty(property);
                        } catch (IOException ex) {
                            Logger.getLogger(DiskUsageItemListener.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                    loadData(property);
View Full Code Here

                        AbstractProject project = (AbstractProject) item;
                      //  if (!project.isBuilding()) {
                            DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class);
                            if(property==null){
                                property = new DiskUsageProperty();
                                project.addProperty(property);
                            }
                            ProjectDiskUsage diskUsage = property.getProjectDiskUsage();
                            for(DiskUsageBuildInformation information: diskUsage.getBuildDiskUsage()){ 
                                Map<Integer,AbstractBuild> loadedBuilds = project._getRuns().getLoadedBuilds();
                                AbstractBuild build = loadedBuilds.get(information.getNumber());
View Full Code Here

        if (item instanceof AbstractProject) {
            AbstractProject project = (AbstractProject)item;
            JobProperty metadataJobProperty = project.getProperty(MetadataJobProperty.class);
            if (metadataJobProperty == null) {
                try {
                    project.addProperty(new MetadataJobProperty());
                } catch (IOException e) {
                    logger.info("Could not create initial MetadataJobProperty for " + project.getName());
                }
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.