Source code:
https://gitpull.it/source/libre-busto-ci-cd/browse/master/bin/publish-latest-branch-build.sh
(ex P23)
This step will copy the built .apk to an indexed HTTP directory exposed by Apache, signing them:
| Failed |
Source code:
https://gitpull.it/source/libre-busto-ci-cd/browse/master/bin/publish-latest-branch-build.sh
(ex P23)
This step will copy the built .apk to an indexed HTTP directory exposed by Apache, signing them:
| 1 | ls: cannot access './app/build/outputs/apk/gitpull/app-gitpull-signed.apk': No such file or directory |
|---|---|
| 2 |
| 1 | [INFO] including .env file |
|---|---|
| 2 | Current directory: |
| 3 | /var/drydock/workingcopy-112/repo/libre-busto |
| 4 | Calculating sha256sum of: |
| 5 | ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk |
| 6 | File info |
| 7 |
| Passed |
| 1 | Unable to open 'app-gitpull-unsigned.apk' as zip archive |
|---|---|
| 2 | Exception in thread "main" java.io.FileNotFoundException: app-gitpull-unsigned-aligned.apk (No such file or directory) |
| 3 | at java.base/java.io.RandomAccessFile.open0(Native Method) |
| 4 | at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345) |
| 5 | at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259) |
| 6 | at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214) |
| 7 | at com.android.apksig.ApkSigner.sign(ApkSigner.java:199) |
| 8 | at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:395) |
| 9 | at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92) |
| 10 |
| 1 | Entering in app/build/outputs/apk/gitpull |
|---|---|
| 2 | Aligning zip |
| 3 | Signing APK |
| 4 | Sign concluded with exit status 1 |
| 5 |
| Passed |
This step will build an .apk using Gradle using this fantastic Docker image:
https://gitlab.com/fabmazz/android-fdroid-build-container/-/tree/ubuntu
Source code of this build step:
https://gitpull.it/source/libre-busto-ci-cd/browse/master/bin/fdroid-docker-builder.sh
TODO: Use the official image by Fabio Mazza, when the "DESIRED_UID" / "DESIRED_GID" features will be merged.
| 14 | <uses-permission> element there. A typical path to a debug manifest |
|---|---|
| 15 | override file in a Gradle project is src/debug/AndroidManifest.xml. |
| 16 | |
| 17 | /var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt:132: Error: Expected non-nullable value [NullSafeMutableLiveData from androidx.lifecycle] |
| 18 | palinaLiveData.postValue(palina) |
| 19 | ~~~~~~ |
| 20 | |
| 21 | Explanation for issues of type "NullSafeMutableLiveData": |
| 22 | This check ensures that LiveData values are not null when explicitly |
| 23 | declared as non-nullable. |
| 24 | |
| 25 | Kotlin interoperability does not support enforcing explicit |
| 26 | null-safety when using generic Java type parameters. Since |
| 27 | LiveData is a Java class its value can always be null even |
| 28 | when its type is explicitly declared as non-nullable. This can lead |
| 29 | to runtime exceptions from reading a null LiveData value that is |
| 30 | assumed to be non-nullable. |
| 31 | |
| 32 | Vendor: Android Open Source Project |
| 33 | Identifier: androidx.lifecycle |
| 34 | Feedback: https://issuetracker.google.com/issues/new?component=413132 |
| 35 | |
| 36 | 2 errors, 0 warnings |
| 37 | |
| 38 |
| 88 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt:124:17 Condition is always 'false'. |
|---|---|
| 89 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt:143:13 Condition is always 'true'. |
| 90 | w: file:///var/drydock/workingcopy-112/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt:163:17 Expression under 'when' is never equal to null. |
| 91 | |
| 92 | > Task :app:compileGitpullJavaWithJavac |
| 93 | |
| 94 | > Task :app:generateGitpullLintVitalReportModel |
| 95 | > Task :app:dexBuilderGitpull |
| 96 | > Task :app:mergeGitpullGlobalSynthetics |
| 97 | > Task :app:processGitpullJavaRes |
| 98 | > Task :app:mergeGitpullJavaResource |
| 99 | > Task :app:mergeDexGitpull |
| 100 | > Task :app:compileGitpullArtProfile |
| 101 | > Task :app:packageGitpull |
| 102 | > Task :app:createGitpullApkListingFileRedirect |
| 103 | > Task :app:lintVitalAnalyzeGitpull |
| 104 | > Task :app:lintVitalReportGitpull |
| 105 | |
| 106 | > Task :app:lintVitalGitpull |
| 107 | |
| 108 | > Task :app:assembleGitpull |
| 109 | |
| 110 | BUILD SUCCESSFUL in 1m 30s |
| 111 | 55 actionable tasks: 55 executed |
| 112 |
| Passed |
| 1 | Found 8.7 via distributionUrl |
|---|---|
| 2 | Running /home/phabricator-android-builder/versions/8.7/bin/gradle clean |
| 3 | > Task :app:clean |
| 4 | |
| 5 | BUILD SUCCESSFUL in 2s |
| 6 | 1 actionable task: 1 executed |
| 7 |
| Passed |
| Passed |