Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ivagonz-antroma-practica2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ivagonz
ivagonz-antroma-practica2
Commits
4bcf1bc9
Commit
4bcf1bc9
authored
Dec 21, 2017
by
antroma
Browse files
Options
Downloads
Patches
Plain Diff
modificadas las rutas sonar en yml
parent
5ff54e06
No related branches found
No related tags found
1 merge request
!1
Direccion gps
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-5
4 additions, 5 deletions
.gitlab-ci.yml
build.xml
+1
-1
1 addition, 1 deletion
build.xml
with
5 additions
and
6 deletions
.gitlab-ci.yml
+
4
−
5
View file @
4bcf1bc9
...
...
@@ -45,7 +45,7 @@ sonar_publish_job:
-
mvn -Djacoco.destFile=$JACOCO_AGENT clean org.jacoco:jacoco-maven-plugin:0.7.8:prepare-agent install
-
mvn -X -Djacoco.dataFile=$JACOCO_AGENT -Djacoco.outputDirectory=./jacoco_ut org.jacoco:jacoco-maven-plugin:report
script
:
-
mvn --batch-mode verify jxr:jxr pmd:pmd sonar:sonar -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_USER_TOKEN -Dsonar.analysis.mode=publish -Dsonar.issuesReport.console.enable=true -Dsonar.jacoco.reportPath=$JACOCO_AGENT -Dsonar.junit.reportPaths=target/surefire-reports
-
mvn --batch-mode verify jxr:jxr pmd:pmd sonar:sonar -Dsonar.host.url=$
{
SONAR_URL
}
-Dsonar.login=$
{
SONAR_USER_TOKEN
}
-Dsonar.analysis.mode=publish -Dsonar.issuesReport.console.enable=true -Dsonar.jacoco.reportPath=$JACOCO_AGENT -Dsonar.junit.reportPaths=target/surefire-reports
coverage
:
/Total.*?([0-9]{1,3})%/
only
:
-
develop
...
...
@@ -57,7 +57,7 @@ sonar_preview_job:
-
mvn -Djacoco.destFile=$JACOCO_AGENT clean org.jacoco:jacoco-maven-plugin:0.7.8:prepare-agent install
-
mvn -X -Djacoco.dataFile=$JACOCO_AGENT -Djacoco.outputDirectory=./jacoco_ut org.jacoco:jacoco-maven-plugin:report
script
:
-
mvn --batch-mode verify org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_USER_TOKEN -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME -Dsonar.gitlab.user_token=$GITLAB_USER_TOKEN -Dsonar.gitlab.url="https://gitlab.inf.uva.es" -Dsonar.issuesReport.console.enable=true -Dsonar.gitlab.only_issue_from_commit_line=true -Dsonar.gitlab.comment_no_issue=true -Dsonar.gitlab.disable_global_comment=true
-
mvn --batch-mode verify org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar -Dsonar.host.url=$
{
SONAR_URL
}
-Dsonar.login=$
{
SONAR_USER_TOKEN
}
-Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME -Dsonar.gitlab.user_token=$GITLAB_USER_TOKEN -Dsonar.gitlab.url="https://gitlab.inf.uva.es" -Dsonar.issuesReport.console.enable=true -Dsonar.gitlab.only_issue_from_commit_line=true -Dsonar.gitlab.comment_no_issue=true -Dsonar.gitlab.disable_global_comment=true
coverage
:
/Total.*?([0-9]{1,3})%/
except
:
-
develop
...
...
@@ -83,4 +83,3 @@ deploy:
-
mvn -$MAVEN_CLI_OPTS deploy
only
:
-
master
This diff is collapsed.
Click to expand it.
build.xml
+
1
−
1
View file @
4bcf1bc9
...
...
@@ -70,7 +70,7 @@
<target
name=
"medidas"
description=
"obtener informe sobre medidas"
depends=
"obtenerInformeCobertura, medidas_unix"
/>
<target
name=
"medidas_unix"
description=
"medidas Unix"
>
<exec
dir=
"."
executable=
"sh"
>
<arg
line=
"-c 'mvn -P Unit,Integration jxr:jxr pmd:pmd sonar:sonar -Dsonar.host.url=https://sonarqube.inf.uva.es/ -Dsonar.login=${SONAR_USER_TOKEN} -Dsonar.analysis.mode=publish -Dsonar.issuesReport.console.enable=true -Dsonar.jacoco.reportPath=target/coverage/jacoco.exec -Dsonar.junit.reportPaths=target/surefire-reports'"
/>
<arg
line=
"-c 'mvn -P Unit,Integration jxr:jxr pmd:pmd sonar:sonar -Dsonar.host.url=https://sonarqube.inf.uva.es/ -Dsonar.login=${SONAR_USER_TOKEN
.value
} -Dsonar.analysis.mode=publish -Dsonar.issuesReport.console.enable=true -Dsonar.jacoco.reportPath=target/coverage/jacoco.exec -Dsonar.junit.reportPaths=target/surefire-reports'"
/>
</exec>
</target>
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment