mirror of
https://github.com/Telecominfraproject/wlan-cloud-base.git
synced 2025-11-02 11:27:58 +00:00
committed by
GitHub
parent
2fcf195b37
commit
2776c5a39e
47
.github/workflows/maven_settings_template.xml
vendored
Normal file
47
.github/workflows/maven_settings_template.xml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<settings>
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>tip-wlan-cloud-maven-repo</id>
|
||||||
|
<username>${env.MAVEN_REPO_USERNAME}</username>
|
||||||
|
<password>${env.MAVEN_REPO_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>jfrog-spring-milestones</id>
|
||||||
|
<username>${env.MAVEN_REPO_USERNAME}</username>
|
||||||
|
<password>${env.MAVEN_REPO_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
<server>
|
||||||
|
<id>jfrog-maven-central</id>
|
||||||
|
<username>${env.MAVEN_REPO_USERNAME}</username>
|
||||||
|
<password>${env.MAVEN_REPO_PASSWORD}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
<mirrors>
|
||||||
|
<mirror>
|
||||||
|
<id>jfrog-maven-central</id>
|
||||||
|
<name>Mirror Repository</name>
|
||||||
|
<url>https://tip.jfrog.io/artifactory/maven-central</url>
|
||||||
|
<mirrorOf>central</mirrorOf>
|
||||||
|
</mirror>
|
||||||
|
<mirror>
|
||||||
|
<id>jfrog-spring-milestones</id>
|
||||||
|
<url>https://tip.jfrog.io/artifactory/spring-milestones</url>
|
||||||
|
<mirrorOf>spring-milestones</mirrorOf>
|
||||||
|
</mirror>
|
||||||
|
</mirrors>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>schema-publisher</id>
|
||||||
|
<properties>
|
||||||
|
<schema-repository-user>${env.MAVEN_REPO_USERNAME}</schema-repository-user>
|
||||||
|
<schema-repository-password>${env.MAVEN_REPO_PASSWORD}</schema-repository-password>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<activeProfiles>
|
||||||
|
<activeProfile>schema-publisher</activeProfile>
|
||||||
|
</activeProfiles>
|
||||||
|
|
||||||
|
</settings>
|
||||||
26
.github/workflows/sonar.yml
vendored
26
.github/workflows/sonar.yml
vendored
@@ -3,13 +3,13 @@ name: Run sonar analysis
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SONAR_URL: https://sonarcloud.io
|
SONAR_URL: https://sonarcloud.io
|
||||||
SONAR_ORGANIZATION: telecominfraproject
|
SONAR_ORGANIZATION: telecominfraproject
|
||||||
SONAR_PROJECT_KEY: Telecominfraproject_wlan-cloud-base2
|
SONAR_PROJECT_KEY: Telecominfraproject_wlan-cloud-base2
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
MAVEN_OPTS: -Xmx3g -Xss2m # prevents java.lang.StackOverflowError
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonar:
|
sonar:
|
||||||
@@ -32,7 +32,27 @@ jobs:
|
|||||||
java-version: 14
|
java-version: 14
|
||||||
java-package: jdk
|
java-package: jdk
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
- name: Cache Maven packages
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository/
|
||||||
|
key: ${{ runner.os }}-m2
|
||||||
|
- name: Configure maven settings.xml
|
||||||
|
run: cp wlan-cloud-base/.github/workflows/maven_settings_template.xml /home/runner/.m2/settings.xml
|
||||||
|
- name: Run maven build
|
||||||
|
working-directory: wlan-cloud-base/base-build
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
MAVEN_REPO_USERNAME: build-pipeline
|
||||||
|
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
mvn clean verify
|
||||||
- name: Run sonar
|
- name: Run sonar
|
||||||
working-directory: wlan-cloud-base/base-build
|
working-directory: wlan-cloud-base/base-build
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
MAVEN_REPO_USERNAME: build-pipeline
|
||||||
|
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
||||||
|
MAVEN_OPTS: -Xmx3g -Xss2m # prevents java.lang.StackOverflowError
|
||||||
run: |
|
run: |
|
||||||
mvn clean verify sonar:sonar -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.organization=${{ env.SONAR_ORGANIZATION }} -Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
|
mvn sonar:sonar -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.organization=${{ env.SONAR_ORGANIZATION }} -Dsonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user