2022-07-23 20:28:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-08-17 08:43:56 +00:00
|
|
|
name: android
|
2022-07-23 20:28:06 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: code-analysis
|
2022-07-23 20:39:48 +00:00
|
|
|
image: mingc/android-build-box:latest
|
2022-07-23 20:28:06 +00:00
|
|
|
failure: ignore
|
2022-08-17 08:59:05 +00:00
|
|
|
detach: true
|
2022-07-23 20:28:06 +00:00
|
|
|
commands:
|
|
|
|
- ls -la
|
2022-08-17 08:43:56 +00:00
|
|
|
- ./gradlew sonarqube -Dsonar.projectKey=RFS2 -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN -PignoreGitVersion=true
|
2022-07-23 20:28:06 +00:00
|
|
|
environment:
|
|
|
|
SONAR_HOST_URL:
|
|
|
|
from_secret: sonarScannerHostUrl
|
|
|
|
SONAR_LOGIN:
|
|
|
|
from_secret: sonarScannerLogin
|
2022-08-17 08:59:05 +00:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: mingc/android-build-box:latest
|
|
|
|
commands:
|
|
|
|
- ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="URL" -P appLoginUsername="LOGIN" -P appLoginPassword="PASS"
|