commit
continuous-integration/drone/push Build encountered an error Details

pull/13/head
Victor Perez NGOUNOU 2 years ago
parent 21263d5793
commit bcd7a7bfb9

@ -7,64 +7,73 @@ trigger:
- push - push
steps: steps:
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
volumes: volumes:
- name: docs - name: docs
path: /docs path: /docs
commands: commands:
- dotnet restore Solution.sln - cd Sources/
- dotnet build Solution.sln -c Release --no-restore - dotnet restore Solution.sln
- dotnet publish Solution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet build Solution.sln -c Release --no-restore
- dotnet publish Solution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- name: code-analysis - name: tests
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- dotnet restore Solution.sln - cd Sources/
- dotnet sonarscanner begin /k:BowlingScoreApp /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**,BowlingApp/**,BowlingEF/**,Business/**,BowlingMaping/**,BowlingStub/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet restore Solution.sln
- dotnet build Solution.sln -c Release --no-restore - dotnet test Solution.sln --no-restore
- dotnet test Solution.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" depends_on: [ build ]
- reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- dotnet publish Solution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
secrets: [ SECRET_SONAR_LOGIN ]
settings:
# accessible en ligne de commande par ${PLUGIN_SONAR_HOST}
sonar_host: https://codefirst.iut.uca.fr/sonar/
# accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN}
sonar_token:
from_secret: SECRET_SONAR_LOGIN
#depends_on: [tests]
- name: generate-and-deploy-docs - name: code-analysis
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
failure: ignore commands:
volumes: - cd Sources/
- name: docs - dotnet restore Solution.sln
path: /docs - dotnet sonarscanner begin /k:BowlingScoreApp /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**,BowlingApp/**,BowlingEF/**,Business/**,BowlingMaping/**,BowlingStub/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
commands: - dotnet build Solution.sln -c Release --no-restore
#- cd Documentation/doxygen - dotnet test Solution.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage"
#- doxygen Doxyfile - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport"
- /entrypoint.sh - dotnet publish Solution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
when: - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
branch: secrets: [ SECRET_SONAR_LOGIN ]
- master settings:
depends_on: [ build ] # accessible en ligne de commande par ${PLUGIN_SONAR_HOST}
sonar_host: https://codefirst.iut.uca.fr/sonar/
- name: docker-build # accessible en ligne de commande par ${PLUGIN_SONAR_TOKEN}
image: plugins/docker sonar_token:
settings: from_secret: SECRET_SONAR_LOGIN
dockerfile: Sources/Dockerfile depends_on: [ tests ]
context: .
registry: hub.codefirst.iut.uca.fr - name: generate-and-deploy-docs
repo: hub.codefirst.iut.uca.fr/victor_perez.ngounou/bowlingapi image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
username: failure: ignore
from_secret: SECRET_REGISTRY_USERNAME volumes:
password: - name: docs
from_secret: SECRET_REGISTRY_PASSWORD path: /docs
when: commands:
branch: #- cd Documentation/doxygen
- master #- doxygen Doxyfile
- /entrypoint.sh
when:
branch:
- master
depends_on: [ build ]
- name: docker-build
image: plugins/docker
settings:
dockerfile: Sources/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/victor_perez.ngounou/bowlingapi
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
when:
branch:
- master
volumes: volumes:
- name: docs - name: docs

Loading…
Cancel
Save