Same issue. Several posts about this and zero answers. Wow
BUILD SUCCESSFUL in 4m 28s
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: 5502243
ERROR: Job failed: exit status 1