triple check the name of the file that you are copying. The error is not intuitive but it means that it cannot find the file. In my case i was trying to copy a file but had a typo in the name of the file
Build Name | Correct Name |
---|---|
build/libs/Attendance-app.war | build/libs/Attendance.war |
I had the wrong name all along.