kopia lustrzana https://github.com/JOSM/MapWithAI
CI: Move sonar to after tests
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head
rodzic
fbb112f2ea
commit
94b3c86780
|
@ -121,21 +121,6 @@ build:
|
||||||
- build
|
- build
|
||||||
needs: ["assemble"]
|
needs: ["assemble"]
|
||||||
|
|
||||||
sonarcloud.io:
|
|
||||||
image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest
|
|
||||||
stage: test
|
|
||||||
environment:
|
|
||||||
name: sonarcloud.io
|
|
||||||
url: https://sonarcloud.io/dashboard?id=mapwithai
|
|
||||||
script:
|
|
||||||
- git fetch --unshallow
|
|
||||||
- ./gradlew -Dsonar.login=$SONAR_TOKEN sonarqube
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_TAG && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
|
||||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
|
||||||
- if: '$CI_MERGE_REQUEST_IID && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
@ -220,6 +205,23 @@ build with java 15:
|
||||||
# only:
|
# only:
|
||||||
# - master
|
# - master
|
||||||
|
|
||||||
|
sonarcloud.io:
|
||||||
|
image: registry.gitlab.com/josm/docker-library/openjdk-11-josmplugin:latest
|
||||||
|
stage: deploy
|
||||||
|
environment:
|
||||||
|
name: sonarcloud.io
|
||||||
|
url: https://sonarcloud.io/dashboard?id=mapwithai
|
||||||
|
script:
|
||||||
|
- git fetch --unshallow
|
||||||
|
- ./gradlew -Dsonar.login=$SONAR_TOKEN sonarqube
|
||||||
|
needs: ["test"]
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
||||||
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
||||||
|
- if: '$CI_MERGE_REQUEST_IID && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $SONAR_TOKEN =~ /[0-9a-z]+/'
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
environment:
|
environment:
|
||||||
|
|
Ładowanie…
Reference in New Issue