Ionic Package build error - but 'BUILD SUCCESSFUL'

Why is this build failing? It seems to be successful creating the .apk …

BUILD SUCCESSFUL in 57s 47 actionable tasks: 47 executed Built the following apk(s): /usr/src/app/platforms/android/app/build/outputs/apk/debug/app-debug.apk $ cordova build android success Running after script… $ run “clean-up” Running Stage clean-up for Job: 5303926 ERROR: Job failed: exit status 1

Below is a successful build of a previous version. I notice the build path is different - why? I didn’t think it was possible to control this path …

SUCCESSFUL - /usr/src/app/platforms/android/build/outputs/apk/android-debug.apk
FAIL - /usr/src/app/platforms/android/app/build/outputs/apk/debug/app-debug.apk

BUILD SUCCESSFUL Total time: 55.126 secs Built the following apk(s): /usr/src/app/platforms/android/build/outputs/apk/android-debug.apk $ cordova build android success Uploading APK… APK uploaded successfully! Running after script… $ run “clean-up” Running Stage clean-up for Job: 5261892 Job succeeded

Fixed - https://ionic.zendesk.com/hc/en-us/articles/115015945347?input_string=ionic+package+build+error+-+but+‘build+successful’