I have created AWS codepipeline for building unity application and also specified buildspec.yml for the same. But facing issue while executing unity commands.Below command I am using.
I moved the thread. What instructions are you following, can you share the documentation? Does this pipeline work when you run it locally? Instead of using placeholders as you have, what if you hard code the entire command? (to help troubleshoot) Does the project build correctly from the Editor?
still we are facing the same error
Error: COMMAND_EXECUTION_ERROR:
Error while executing command: eval {UNITY_COMMAND} -projectPath . -executeMethod WebGLBuilder.build '{BUILD_OUTPUT_FOLDER}/${BUILD_OUTPUT_NAME} -logfile /dev/stdout’. Reason: exit status 1
one more concern if you can suggest us which approach we can use for implementing CI/CD pipeline for unity projects.
We have tried with the below command
xvfb-run --auto-servernum --server-args=‘-screen 0 640x480x24’ /opt/unity/Editor/Unity -batchmode -quit -projectPath . -nographics -executeMethod WebGLBuilder.build
Did you install Unity and WebGL support on this server? It looks like your class method WebGLBuilder.build works locally, but is not found on the server.