I have a Java app that runs fine on my local Liberty server (Eclipse IDE). I'm trying to deploy this app to a Bluemix Liberty server using the Continuous Delivery pipeline. The app uses the Maven builder and the build stage finishes successfully. Here are the last few lines from the build log:
[INFO] Packaging webapp
[INFO] Assembling webapp [CPE2x] in [/home/pipeline/0102a7d2-42b8-42a4-98be-0481cd6d5293/target/CPE2x-1.0.0]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/pipeline/0102a7d2-42b8-42a4-98be-0481cd6d5293/src/main/webapp]
[INFO] Webapp assembled in [144 msecs]
[INFO] Building war: /home/pipeline/0102a7d2-42b8-42a4-98be-0481cd6d5293/target/CPE2x-1.0.0.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.863 s
[INFO] Finished at: 2018-03-10T00:09:47+00:00
[INFO] Final Memory: 38M/74M
[INFO] ------------------------------------------------------------------------
However, the deploy stage fails right away, because it can't find the .war file that was created in the build stage. Here is the deploy log in its entirety:
Preparing to start the job...
Logging into Bluemix as user: "jimh@customer.com"
Cloning the 'master' branch from repo 'https://git.ng.bluemix.net/jimh1/CPE_2x.git'
Repository successfully cloned
Target: https://api.ng.bluemix.net
Using manifest file /home/pipeline/e3050545-ef30-47f9-9cae-f2700d8d5431/manifest.yml
Updating app CPE_2x in org MyOrg / space dev as jimh@cogability.com...
OK
Using route CPE_2x.mybluemix.net
FAILED
Error processing app files: lstat /home/pipeline/e3050545-ef30-47f9-9cae-f2700d8d5431/target/CPE2x-1.0.0.war: no such file or directory
Finished: FAILED
The obvious difference is in the path to the .war, but I don't know if this is the real problem or if it's an artifact of the build/deploy process. The long directory name in the path changes on every attempt, so I tend to believe it's a red herring. In either case, I can't get it to proceed past this point.
I have built and deployed many Node.js projects to Bluemix, but this is my first Liberty for Java application.