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 | PHP Fatal error: Uncaught Exception: apksigner returned with exit status code: -1 in /opt/libre-busto-ci-cd/bin/publish-latest-branch-build.php:164 |
|---|---|
| 2 | Stack trace: |
| 3 | #0 {main} |
| 4 | thrown in /opt/libre-busto-ci-cd/bin/publish-latest-branch-build.php on line 164 |
| 5 |
| 1085 | 24487139 res/tL.xml (OK - compressed) |
|---|---|
| 1086 | 24487504 res/tS.png (OK) |
| 1087 | 24487865 res/tS.xml (OK - compressed) |
| 1088 | 24488208 res/tU.9.png (OK) |
| 1089 | 24488460 res/tZ.9.png (OK) |
| 1090 | 24488700 res/te.png (OK) |
| 1091 | 24489018 res/tf.xml (OK - compressed) |
| 1092 | 24489399 res/tk.xml (OK - compressed) |
| 1093 | 24489658 res/tp.xml (OK - compressed) |
| 1094 | 24489953 res/tt.xml (OK - compressed) |
| 1095 | 24490379 res/tv.xml (OK - compressed) |
| 1096 | 24491379 res/u0.xml (OK - compressed) |
| 1097 | 24491816 res/u3.png (OK) |
| 1098 | 24492372 res/uE.webp (OK) |
| 1099 | 24506692 res/uI.xml (OK - compressed) |
| 1100 | 24507754 res/uJ.xml (OK - compressed) |
| 1101 | 24508232 res/uL.9.png (OK) |
| 1102 | 24509238 res/uR.xml (OK - compressed) |
| 1103 | 24509801 res/uR1.xml (OK - compressed) |
| 1104 | 24510280 res/uj.9.png (OK) |
| 1105 | 24510516 res/up.xml (OK - compressed) |
| 1106 | 24510772 res/ut.9.png (OK) |
| 1107 | 24511568 res/uu.9.png (OK) |
| 1108 | 24511812 res/uy.xml (OK - compressed) |
| 1109 | 24513533 res/v-.xml (OK - compressed) |
| 1110 | 24514048 res/v4.9.png (OK) |
| 1111 | 24514296 res/v5.xml (OK - compressed) |
| 1112 | 24514620 res/vF.xml (OK - compressed) |
| 1113 | 24514879 res/vG.xml (OK - compressed) |
| 1114 | 24515516 res/vH.xml (OK - compressed) |
| 1115 | 24515849 res/vJ.xml (OK - compressed) |
| 1116 | 24516176 res/vL.9.png (OK) |
| 1117 | 24516439 res/vR.xml (OK - compressed) |
| 1118 | 24516704 res/vT.xml (OK - compressed) |
| 1119 | 24516932 res/vZ.xml (OK - compressed) |
| 1120 | 24517189 res/vf.xml (OK - compressed) |
| 1121 | 24517516 res/vl.xml (OK - compressed) |
| 1122 | 24518087 res/vn.xml (OK - compressed) |
| 1123 | 24518440 res/vq.xml (OK - compressed) |
| 1124 | 24519018 res/vy.xml (OK - compressed) |
| 1125 | 24519508 res/vz.9.png (OK) |
| 1126 | 24519729 res/w7.xml (OK - compressed) |
| 1127 | 24520485 res/w9.xml (OK - compressed) |
| 1128 | 24520760 res/wL.9.png (OK) |
| 1129 | 24521240 res/wN.9.png (OK) |
| 1130 | 24521505 res/wP.xml (OK - compressed) |
| 1131 | 24521860 res/w_.png (OK) |
| 1132 | 24522116 res/wb.png (OK) |
| 1133 | 24528045 res/wi.xml (OK - compressed) |
| 1134 | 24528420 res/wy.png (OK) |
| 1135 | 24528888 res/x3.9.png (OK) |
| 1136 | 24529140 res/x4.xml (OK - compressed) |
| 1137 | 24529916 res/xH.png (OK) |
| 1138 | 24530142 res/xI.xml (OK - compressed) |
| 1139 | 24530843 res/xM.ttf (OK - compressed) |
| 1140 | 24590536 res/xR.9.png (OK) |
| 1141 | 24590772 res/xa.9.png (OK) |
| 1142 | 24591033 res/xa.xml (OK - compressed) |
| 1143 | 24591594 res/xd.xml (OK - compressed) |
| 1144 | 24592307 res/xj.xml (OK - compressed) |
| 1145 | 24592599 res/xq.xml (OK - compressed) |
| 1146 | 24592987 res/xz.xml (OK - compressed) |
| 1147 | 24594178 res/y-.xml (OK - compressed) |
| 1148 | 24594446 res/y4.xml (OK - compressed) |
| 1149 | 24594702 res/y9.xml (OK - compressed) |
| 1150 | 24594971 res/yE.xml (OK - compressed) |
| 1151 | 24595228 res/yH.9.png (OK) |
| 1152 | 24595452 res/yS.xml (OK - compressed) |
| 1153 | 24595703 res/yT.xml (OK - compressed) |
| 1154 | 24596026 res/yV.xml (OK - compressed) |
| 1155 | 24596368 res/yY.9.png (OK) |
| 1156 | 24596594 res/ya.xml (OK - compressed) |
| 1157 | 24596952 res/yd.png (OK) |
| 1158 | 24608888 res/yg.9.png (OK) |
| 1159 | 24609323 res/yj.xml (OK - compressed) |
| 1160 | 24609720 res/yn.png (OK) |
| 1161 | 24612204 res/z-.9.png (OK) |
| 1162 | 24612468 res/z9.9.png (OK) |
| 1163 | 24612928 res/zE.png (OK) |
| 1164 | 24613292 res/zG.xml (OK - compressed) |
| 1165 | 24613612 res/zR.png (OK) |
| 1166 | 24616413 res/zR.xml (OK - compressed) |
| 1167 | 24616904 res/zV.9.png (OK) |
| 1168 | 24619407 res/zc.xml (OK - compressed) |
| 1169 | 24619860 res/ze.png (OK) |
| 1170 | 24628215 res/zp.xml (OK - compressed) |
| 1171 | 24628474 res/zq.xml (OK - compressed) |
| 1172 | 24628784 res/zr.png (OK) |
| 1173 | 24631603 res/zs.xml (OK - compressed) |
| 1174 | 24631875 res/zu.xml (OK - compressed) |
| 1175 | 24632853 res/zv.xml (OK - compressed) |
| 1176 | 24634136 resources.arsc (OK) |
| 1177 | Verification successful |
| 1178 | [INFO][2026-04-26 18:05:37] APK ALIGNED D230-arm64-v8a-aligned.apk: apksigner... creating D230-arm64-v8a-signed.apk |
| 1179 | |
| 1180 | Fatal error: Uncaught Exception: apksigner returned with exit status code: -1 in /opt/libre-busto-ci-cd/bin/publish-latest-branch-build.php:164 |
| 1181 | Stack trace: |
| 1182 | #0 {main} |
| 1183 | thrown in /opt/libre-busto-ci-cd/bin/publish-latest-branch-build.php on line 164 |
| 1184 |
| 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.
| 1 | + docker run -e DESIRED_UID=1004 -e DESIRED_GID=1004 --rm -v /var/drydock/workingcopy-112/repo/libre-busto:/home/vagrant/appbuild:Z fdroid-asder launch_build_local -Dorg.gradle.jvmargs=-Xmx2g --stacktrace assembleGitpull |
|---|---|
| 2 | Note: Some input files use or override a deprecated API. |
| 3 | Note: Recompile with -Xlint:deprecation for details. |
| 4 | /home/vagrant/appbuild/app/src/gitpull/AndroidManifest.xml:4: Error: Mock locations should only be requested in a test or debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation] |
| 5 | <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/> |
| 6 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 7 | |
| 8 | Explanation for issues of type "MockLocation": |
| 9 | Using a mock location provider (by requiring the permission |
| 10 | android.permission.ACCESS_MOCK_LOCATION) should only be done in debug |
| 11 | builds (or from tests). In Gradle projects, that means you should only |
| 12 | request this permission in a test or debug source set specific manifest |
| 13 | file. |
| 14 | |
| 15 | To fix this, create a new manifest file in the debug folder and move the |
| 16 | <uses-permission> element there. A typical path to a debug manifest |
| 17 | override file in a Gradle project is src/debug/AndroidManifest.xml. |
| 18 | |
| 19 | 1 error |
| 20 | |
| 21 |
| 69 | > Task :app:processGitpullNavigationResources |
|---|---|
| 70 | > Task :app:generateGitpullResValues |
| 71 | > Task :app:compileGitpullNavigationResources |
| 72 | > Task :app:mapGitpullSourceSetPaths |
| 73 | > Task :app:extractGitpullSupportedLocales |
| 74 | > Task :app:generateGitpullResources |
| 75 | > Task :app:generateGitpullLocaleConfig |
| 76 | > Task :app:createGitpullCompatibleScreenManifests |
| 77 | > Task :app:extractDeepLinksGitpull |
| 78 | |
| 79 | > Task :app:processGitpullMainManifest |
| 80 | /home/vagrant/appbuild/app/src/gitpull/AndroidManifest.xml Warning: |
| 81 | service#info.mqtt.android.service.MqttService was tagged at AndroidManifest.xml:0 to replace another declaration but no other declaration present |
| 82 | /home/vagrant/appbuild/app/src/gitpull/AndroidManifest.xml Warning: |
| 83 | provider#org.acra.attachment.AcraContentProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present |
| 84 | |
| 85 | > Task :app:processGitpullManifest |
| 86 | > Task :app:mergeGitpullResources |
| 87 | > Task :app:desugarGitpullFileDependencies |
| 88 | > Task :app:mergeGitpullStartupProfile |
| 89 | > Task :app:javaPreCompileGitpull |
| 90 | > Task :app:processGitpullManifestForPackage |
| 91 | > Task :app:mergeExtDexGitpull |
| 92 | > Task :app:mergeGitpullArtProfile |
| 93 | > Task :app:mergeGitpullShaders |
| 94 | > Task :app:compileGitpullShaders NO-SOURCE |
| 95 | > Task :app:generateGitpullAssets UP-TO-DATE |
| 96 | > Task :app:mergeGitpullAssets |
| 97 | > Task :app:compressGitpullAssets |
| 98 | > Task :app:extractGitpullVersionControlInfo |
| 99 | > Task :app:extractProguardFiles |
| 100 | > Task :app:collectGitpullDependencies |
| 101 | > Task :app:sdkGitpullDependencyData |
| 102 | > Task :app:writeGitpullAppMetadata |
| 103 | > Task :app:writeGitpullSigningConfigVersions |
| 104 | > Task :app:processGitpullResources |
| 105 | > Task :app:optimizeGitpullResources |
| 106 | |
| 107 | > Task :app:kspGitpullKotlin |
| 108 | w: [ksp] /home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/data/gtfs/GtfsAgency.kt:21: Primary key constraint on gtfsId is ignored when being merged into it.reyboz.bustorino.data.gtfs.GtfsAgency |
| 109 | |
| 110 | > Task :app:compileGitpullKotlin |
| 111 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/ActivityAbout.kt:132:13 'fun onBackPressed(): Unit' is deprecated. This method has been deprecated in favor of using the |
| 112 | {@link OnBackPressedDispatcher} via {@link #getOnBackPressedDispatcher()}. |
| 113 | The OnBackPressedDispatcher controls how back button events are dispatched |
| 114 | to one or more {@link OnBackPressedCallback} objects. |
| 115 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:142:21 'val loaderManager: LoaderManager' is deprecated. Deprecated in Java. |
| 116 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:147:30 'val loaderManager: LoaderManager' is deprecated. Deprecated in Java. |
| 117 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:374:29 'val loaderManager: LoaderManager' is deprecated. Deprecated in Java. |
| 118 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:427:29 'val loaderManager: LoaderManager' is deprecated. Deprecated in Java. |
| 119 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:582:20 Condition is always 'true'. |
| 120 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/ArrivalsFragment.kt:697:66 'fun execute(vararg p0: Stop!): AsyncTask<Stop!, Void!, Boolean!>!' is deprecated. Deprecated in Java. |
| 121 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/IntroFragment.kt:172:43 'fun setColorFilter(p0: Int, p1: PorterDuff.Mode): Unit' is deprecated. Deprecated in Java. |
| 122 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/IntroFragment.kt:213:24 'fun setColorFilter(p0: Int, p1: PorterDuff.Mode): Unit' is deprecated. Deprecated in Java. |
| 123 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/LinesDetailFragment.kt:186:21 Condition is always 'false'. |
| 124 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt:650:25 'fun requestSingleUpdate(p0: String, p1: LocationListener, p2: Looper?): Unit' is deprecated. Deprecated in Java. |
| 125 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/MapLibreFragment.kt:671:26 This declaration overrides a deprecated member but is not marked as deprecated itself. Add the '@Deprecated' annotation or suppress the diagnostic. |
| 126 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/fragments/TestRealtimeGtfsFragment.kt:55:39 The corresponding parameter in the supertype 'MQTTMatoListener' is named 'posUpdates'. This may cause problems when calling this function with named arguments. |
| 127 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:186:27 'class LocationProvider : Any' is deprecated. Deprecated in Java. |
| 128 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:186:44 'static field OUT_OF_SERVICE: Int' is deprecated. Deprecated in Java. |
| 129 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:186:72 'class LocationProvider : Any' is deprecated. Deprecated in Java. |
| 130 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:186:89 'static field TEMPORARILY_UNAVAILABLE: Int' is deprecated. Deprecated in Java. |
| 131 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:188:34 'class LocationProvider : Any' is deprecated. Deprecated in Java. |
| 132 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:188:51 'static field AVAILABLE: Int' is deprecated. Deprecated in Java. |
| 133 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/middleware/AppLocationManager.kt:216:48 'class Criteria : Any, Parcelable' is deprecated. Deprecated in Java. |
| 134 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/util/ImportExport.kt:53:40 Unchecked cast of 'Any!' to 'Map<String?, Any>?'. |
| 135 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/util/ImportExport.kt:83:56 Unchecked cast of 'Set<*>' to 'Set<String?>'. |
| 136 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/viewmodels/ArrivalsViewModel.kt:224:17 Expression under 'when' is never equal to null. |
| 137 | w: file:///home/vagrant/appbuild/app/src/main/java/it/reyboz/bustorino/viewmodels/LivePositionsViewModel.kt:145:39 The corresponding parameter in the supertype 'MQTTMatoListener' is named 'posUpdates'. This may cause problems when calling this function with named arguments. |
| 138 | |
| 139 | > Task :app:compileGitpullJavaWithJavac |
| 140 | |
| 141 | > Task :app:dexBuilderGitpull |
| 142 | > Task :app:mergeGitpullGlobalSynthetics |
| 143 | > Task :app:generateGitpullLintVitalReportModel |
| 144 | > Task :app:mergeDexGitpull |
| 145 | > Task :app:processGitpullJavaRes |
| 146 | > Task :app:compileGitpullArtProfile |
| 147 | > Task :app:mergeGitpullJavaResource |
| 148 | > Task :app:lintVitalAnalyzeGitpull |
| 149 | > Task :app:lintVitalReportGitpull |
| 150 | |
| 151 | > Task :app:lintVitalGitpull |
| 152 | |
| 153 | > Task :app:packageGitpull |
| 154 | > Task :app:createGitpullApkListingFileRedirect |
| 155 | > Task :app:assembleGitpull |
| 156 | |
| 157 | [Incubating] Problems report is available at: file:///home/vagrant/appbuild/build/reports/problems/problems-report.html |
| 158 | |
| 159 | Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. |
| 160 | |
| 161 | You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. |
| 162 | |
| 163 | For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. |
| 164 | |
| 165 | BUILD SUCCESSFUL in 4m 16s |
| 166 | 56 actionable tasks: 56 executed |
| 167 | ==> Build completed |
| 168 |
| Passed |
| Passed |