charts/pipelines-library/templates/resources/cm-codenarc-settings.yaml (45 lines of code) (raw):
apiVersion: v1
kind: ConfigMap
metadata:
name: custom-codenarc-settings
labels:
{{- include "edp-tekton.labels" . | nindent 4 }}
data:
init.gradle: |
// Copyright 2022 EPAM Systems.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
allprojects {
buildscript {
repositories {
maven {
name "maven-group"
credentials {
username nexusLogin
password nexusPassword
}
url "${nexusMavenRepositoryUrl}"
allowInsecureProtocol = true
}
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
afterEvaluate { project ->
project.apply plugin: 'org.sonarqube'
}
}