From 4670e9985e7b7bedf952c99a498a3a1c13912dd0 Mon Sep 17 00:00:00 2001 From: Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:20:13 +0200 Subject: SONAR-20699 Send DevOps platform information for GitHub from the scanner. --- .../org/sonar/core/ce/CeTaskCharacteristics.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sonar-core/src/main/java/org/sonar/core/ce/CeTaskCharacteristics.java (limited to 'sonar-core/src') diff --git a/sonar-core/src/main/java/org/sonar/core/ce/CeTaskCharacteristics.java b/sonar-core/src/main/java/org/sonar/core/ce/CeTaskCharacteristics.java new file mode 100644 index 00000000000..7d3c7b3b2f9 --- /dev/null +++ b/sonar-core/src/main/java/org/sonar/core/ce/CeTaskCharacteristics.java @@ -0,0 +1,32 @@ +/* + * SonarQube + * Copyright (C) 2009-2023 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * 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 02110-1301, USA. + */ +package org.sonar.core.ce; + +public class CeTaskCharacteristics { + + public static final String BRANCH = "branch"; + public static final String BRANCH_TYPE = "branchType"; + public static final String PULL_REQUEST = "pullRequest"; + public static final String DEVOPS_PLATFORM_URL = "devOpsPlatformUrl"; + public static final String DEVOPS_PLATFORM_PROJECT_IDENTIFIER = "devOpsPlatformProjectIdentifier"; + + private CeTaskCharacteristics() { + } +} -- cgit v1.2.3