Commit 6b18c6d1 authored by Christophe Henry's avatar Christophe Henry
Browse files

Merge branch 'remove-android-lint-jenkins-plugin' into 'develop'

(Jenkins pipeline) Remove PublishHTML, androidLint and junit plugins

See merge request !122
parents 6aa41ca8 cbc3d23d
Pipeline #5486 passed with stage
in 0 seconds
......@@ -61,16 +61,7 @@ pipeline {
steps {
gitlabCommitStatus("Lint") {
sh "./gradlew spotlessCheck lint"
androidLint pattern: "**/lint-results*.xml"
publishHTML([
allowMissing : false,
alwaysLinkToLastBuild: true,
keepAll : false,
reportDir : "$WORKSPACE/app/build/reports/",
reportFiles : "lint-results.html",
reportName : "HTML Report",
reportTitles : ""
])
recordIssues(tools: [androidLintParser(pattern: "**/lint-results*.xml")])
}
}
}
......@@ -79,16 +70,7 @@ pipeline {
steps {
gitlabCommitStatus("Unit tests") {
sh "./gradlew testDebugUnitTest"
junit "**/test-results/**/*.xml"
publishHTML([
allowMissing : false,
alwaysLinkToLastBuild: true,
keepAll : false,
reportDir : "$WORKSPACE/app/build/reports/tests/",
reportFiles : "index.html",
reportName : "Junit test report",
reportTitles : ""
])
recordIssues(tools: [junitParser(pattern: "**/test-results/**/*.xml")])
}
}
}
......@@ -116,12 +98,12 @@ pipeline {
stage("Build APK") {
steps {
gitlabCommitStatus("Build APK") {
sh("""./gradlew clean assembleJenkins \
-Pandroid.injected.signing.store.file=${env.SIGN_KEY_PATH} \
-Pandroid.injected.signing.store.password=${env.SIGN_KEY_CREDENTIALS_PSW} \
-Pandroid.injected.signing.key.alias=${env.SIGN_KEY_CREDENTIALS_USR} \
-Pandroid.injected.signing.key.password=${env.SIGN_KEY_CREDENTIALS_PSW}
""")
sh('''./gradlew clean assembleJenkins \
-Pandroid.injected.signing.store.file=$SIGN_KEY_PATH \
-Pandroid.injected.signing.store.password=$SIGN_KEY_CREDENTIALS_PSW \
-Pandroid.injected.signing.key.alias=$SIGN_KEY_CREDENTIALS_USR \
-Pandroid.injected.signing.key.password=$SIGN_KEY_CREDENTIALS_PSW
''')
archiveArtifacts artifacts: "**/*.apk", fingerprint: true, onlyIfSuccessful: true
}
}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment