diff --git a/README.md b/README.md index 97d03fd..95525d5 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Any changes to the json file will require a restart of SonarQube. ## Prerequisites - [SonarQube](https://www.sonarqube.org) `>=6.7.4` -- [vcsparser](https://github.com/ericlemes/vcsparser) +- [vcsparser](https://github.com/ericlemes/vcsparser) `>=1.0.81` ## Installation diff --git a/appveyor.yml b/appveyor.yml index 7b8ce4b..42e1028 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,16 +18,18 @@ test_script: - ps: mvn "-Dproject.build.id=$env:APPVEYOR_BUILD_NUMBER" verify -e after_test: + - ps: | + if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) { + mvn "-Dproject.build.id=$env:APPVEYOR_BUILD_NUMBER" sonar:sonar "-Dsonar.projectKey=$env:SONAR_PROJECT_KEY" "-Dsonar.host.url=$env:SONAR_HOST_URL" "-Dsonar.organization=$env:SONAR_ORGANIZATION" + } + +on_finish: - ps: | $wc = New-Object 'System.Net.WebClient' Get-ChildItem . -Name -Recurse 'TEST-*.xml' | Foreach-Object { $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_)) } - - ps: | - if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) { - mvn "-Dproject.build.id=$env:APPVEYOR_BUILD_NUMBER" sonar:sonar "-Dsonar.projectKey=$env:SONAR_PROJECT_KEY" "-Dsonar.host.url=$env:SONAR_HOST_URL" "-Dsonar.organization=$env:SONAR_ORGANIZATION" - } - ps: | $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh @@ -35,13 +37,13 @@ after_test: artifacts: - path: 'target\*.jar' - name: Plugin + name: plugin deploy: - provider: GitHub auth_token: secure: G0czgyQ/fEhnzY4D7yQ/6ZBq3ViTBFVJTOfc6wZ+w7vISamtIQmnPb1YxQcA819B - artifact: target/*.jar + artifact: plugin + force_update: true on: - branch: master APPVEYOR_REPO_TAG: true diff --git a/pom.xml b/pom.xml index 35025b2..429ca7f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 dev.roryclaasen sonar-vcsparser-plugin - 0.0.1 + 0.1.0 sonar-plugin