Package hudson.model

Examples of hudson.model.JobProperty


     * @throws Exception if so.
     */
    public void testJobToBuildMetadataConversion() throws Exception {
        FreeStyleProject project = createFreeStyleProject("test1");
        project.getBuildersList().add(new Shell("echo hej"));
        JobProperty property = project.getProperty(MetadataJobProperty.class);
        TreeNodeMetadataValue tree =
                TreeStructureUtil.createPath("value", "description", false, false, "tree", "string");

        if (property == null) {
            property = new MetadataJobProperty();
View Full Code Here


     */
    @Override
    public void onStarted(AbstractBuild build, TaskListener listener) {
        logger.entering(BuildContributorsController.class.getName(), "onStarted({0})", build);
        AbstractProject project = build.getProject();
        JobProperty property = project.getProperty(MetadataJobProperty.class);
        if (property == null) {
            return;
        }
        MetadataBuildAction action = build.getAction(MetadataBuildAction.class);
        if (action == null) {
View Full Code Here

    @Override
    public void onCreated(Item item) {
        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

Related Classes of hudson.model.JobProperty

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.