All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.plugins.buildstability.BuildStabilityPlugin Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
/*
 * Sonar Build Stability Plugin
 * Copyright (C) 2010 SonarSource
 * [email protected]
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
 */
package org.sonar.plugins.buildstability;

import org.sonar.api.Extension;
import org.sonar.api.Properties;
import org.sonar.api.Property;
import org.sonar.api.SonarPlugin;

import java.util.Arrays;
import java.util.List;

/**
 * @author Evgeny Mandrikov
 */
@Properties({
  @Property(
    key = BuildStabilitySensor.DAYS_PROPERTY,
    defaultValue = BuildStabilitySensor.DAYS_DEFAULT_VALUE + "",
    name = "Days",
    description = "Number of days to analyze.",
    global = true,
    project = true,
    module = false
  ),
  @Property(
    key = BuildStabilitySensor.CI_URL_PROPERTY,
    defaultValue = "",
    name = "Continuous Integration Server URL",
    description = "URL of the project on the CI server. Leave blank to take this value from pom.xml. Examples: 
    " + "
  • \"Jenkins:https://ci.jenkins-ci.org/job/jenkins_main_trunk/\"
  • " + "
  • \"Bamboo:http://ci.codehaus.org/browse/SONAR\"
", global = false, project = true, module = false ), @Property( key = BuildStabilitySensor.USERNAME_PROPERTY, defaultValue = "", name = "Username", description = "Username to connect with Continuous Integration Server. Leave blank for anonymous.", global = true, project = true, module = false ), @Property( key = BuildStabilitySensor.PASSWORD_PROPERTY, defaultValue = "", name = "Password", description = "Password to connect with Continuous Integration Server. Leave blank for anonymous.", global = true, project = true, module = false ), @Property( key = BuildStabilitySensor.USE_JSECURITYCHECK_PROPERTY, defaultValue = BuildStabilitySensor.USE_JSECURITYCHECK_DEFAULT_VALUE + "", name = "Use j_security_check", description = "Set this property to true, if your CI Server delegates security to servlet container.", global = true, project = true, module = false ) }) public class BuildStabilityPlugin extends SonarPlugin { public List> getExtensions() { return Arrays.asList( BuildStabilityMetrics.class, BuildStabilitySensor.class, BuildStabilityWidget.class, BuildStabilityChart.class); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy