The command is:
/opt/reyboz/android/bin/publish-latest-branch-build.sh ${buildable.revision}
Source code:
This step will copy the built .apk to an indexed HTTP directory exposed by Apache:
Passed |
The command is:
/opt/reyboz/android/bin/publish-latest-branch-build.sh ${buildable.revision}
Source code:
This step will copy the built .apk to an indexed HTTP directory exposed by Apache:
1 | Current directory: |
---|---|
2 | /var/drydock/workingcopy-79/repo/libre-busto |
3 | Calculating sha256sum of: |
4 | ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk |
5 | File info |
6 | -rw-r--r-- 1 phabricator-android-builder phabricator-android-builder 8031765 Aug 31 15:17 ./app/build/outputs/apk/gitpull/app-gitpull-signed.apk |
7 | Cleaning old builds |
8 | Update checksums |
9 | Published here: |
10 | https://lab.reyboz.it/builds/libre-busto/D127-libre-busto.apk |
11 | Adding bipbop Comment to D127 |
12 | Cleaning |
13 | Done |
14 |
Passed |
This script is available here on gargantua.reyboz.it accessible to the Unix user phabricator-android-builder:
/opt/reyboz/android/bin/align-sign-fabione.sh
In general it does that:
#!/bin/sh # https://gitpull.it/harbormaster/step/view/16/ BASEDIR="app/build/outputs/apk/gitpull" OUT="app-gitpull-signed.apk" APK_UNSIGNED="app-gitpull-unsigned.apk" APK_ALIGNED="app-gitpull-unsigned-aligned.apk" KEYSTORE="/home/phabricator-android-builder/private-resources/gitpullkeystore-libre-busto.jks" PASSPHRASE="<omissis> echo "Entering in $BASEDIR" cd "$BASEDIR" echo "Aligning zip" ~/bin/zipalign -v -p 4 "$APK_UNSIGNED" "$APK_ALIGNED" echo "Signing APK" # NOTE: keep keystore unsescaped ~/bin/apksigner sign --ks "$KEYSTORE" --out "$OUT" --ks-pass pass:"$PASSPHRASE" "$APK_ALIGNED" echo "Sign concluded with exit status $?"
1192 | 6693162 res/yf.xml (OK - compressed) |
---|---|
1193 | 6693500 res/yq.png (OK) |
1194 | 6694712 res/yw.png (OK) |
1195 | 6696516 res/yx.xml (OK - compressed) |
1196 | 6697036 res/z1.xml (OK - compressed) |
1197 | 6697277 res/z11.xml (OK - compressed) |
1198 | 6697634 res/z12.xml (OK - compressed) |
1199 | 6697962 res/z3.xml (OK - compressed) |
1200 | 6698232 res/z6.png (OK) |
1201 | 6699136 res/z61.png (OK) |
1202 | 6700320 res/zB.xml (OK - compressed) |
1203 | 6700682 res/zH.xml (OK - compressed) |
1204 | 6701246 res/zL.xml (OK - compressed) |
1205 | 6701569 res/zN.xml (OK - compressed) |
1206 | 6701920 res/zZ.png (OK) |
1207 | 6702277 res/z_.xml (OK - compressed) |
1208 | 6702528 res/zq.xml (OK - compressed) |
1209 | 6702992 res/zt.png (OK) |
1210 | 6707468 res/zw.png (OK) |
1211 | 6707976 res/zy.png (OK) |
1212 | 6708220 resources.arsc (OK) |
1213 | Verification succesful |
1214 | Signing APK |
1215 | Sign concluded with exit status 0 |
1216 |
Passed |
This step will build an .apk using Gradle.
sudo apt install openjdk-11-jre-headless
Then aliased this gradle:
https://gitlab.com/fdroid/fdroidserver/-/blob/master/gradlew-fdroid
163 | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) |
---|---|
164 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) |
165 | at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) |
166 | at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) |
167 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) |
168 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) |
169 | at java.base/java.lang.Thread.run(Thread.java:829) |
170 | /var/drydock/workingcopy-79/repo/libre-busto/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] |
171 | <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/> |
172 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
173 | |
174 | Explanation for issues of type "MockLocation": |
175 | Using a mock location provider (by requiring the permission |
176 | android.permission.ACCESS_MOCK_LOCATION) should only be done in debug |
177 | builds (or from tests). In Gradle projects, that means you should only |
178 | request this permission in a test or debug source set specific manifest |
179 | file. |
180 | |
181 | To fix this, create a new manifest file in the debug folder and move the |
182 | <uses-permission> element there. A typical path to a debug manifest |
183 | override file in a Gradle project is src/debug/AndroidManifest.xml. |
184 | |
185 | 1 errors, 0 warnings |
186 | |
187 |
72 | w: file:///var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:45:36 Parameter 'view' is never used, could be renamed to _ |
---|---|
73 | w: file:///var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:45:42 Parameter 'motionEvent' is never used, could be renamed to _ |
74 | w: file:///var/drydock/workingcopy-79/repo/libre-busto/app/src/main/java/it/reyboz/bustorino/map/BusInfoWindow.kt:87:17 Variable 'layPars' is never used |
75 | |
76 | > Task :app:compileGitpullJavaWithJavac |
77 | |
78 | > Task :app:lintVitalAnalyzeGitpull |
79 | |
80 | > Task :app:dexBuilderGitpull |
81 | > Task :app:mergeGitpullJavaResource |
82 | > Task :app:mergeDexGitpull |
83 | > Task :app:compileGitpullArtProfile |
84 | > Task :app:packageGitpull |
85 | > Task :app:createGitpullApkListingFileRedirect |
86 | Daemon will be stopped at the end of the build after running out of JVM memory |
87 | |
88 | > Task :app:lintVitalReportGitpull |
89 | |
90 | > Task :app:lintVitalGitpull |
91 | |
92 | > Task :app:assembleGitpull |
93 | |
94 | BUILD SUCCESSFUL in 2m 1s |
95 | 40 actionable tasks: 40 executed |
96 |
Passed |
Clean Gradle directory to avoid nasty errors like:
1 | Found 7.5.1 via distributionUrl |
---|---|
2 | Running /home/phabricator-android-builder/versions/7.5.1/bin/gradle clean |
3 | Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details |
4 | > Task :app:clean |
5 | |
6 | BUILD SUCCESSFUL in 14s |
7 | 1 actionable task: 1 executed |
8 |
Passed |
Passed |