During execution, an error was reported saying that progress.log does not exist, as shown below.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/cicd_vehicle/bamboo_agent_home/WORKSPACE/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT/PLAN_SCRIPT/script/process/checkout_subRepos.py", line 35, in checkout_subRepos
File "/home/cicd_vehicle/bamboo_agent_home/WORKSPACE/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT/PLAN_SCRIPT/script/common/append_description.py", line 20, in append_description
FileNotFoundError: [Errno 2] No such file or directory: 'progress.log'
When I connected to the server and checked, the workspace performed by the agent had been deleted.
The agent's log was as follows.
please help
INFO | jvm 242 | 2024/03/09 21:29:01 | 2024-03-09 21:29:01,490 INFO [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [TaskExecutorImpl] Starting task '[preprocess 8] check out sub repositories to the target revision' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
INFO | jvm 242 | 2024/03/09 21:29:01 | 2024-03-09 21:29:01,491 WARN [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [EnvironmentVariableAccessorImpl] The size of environment is 9288, make sure your build environment handles this correctly
INFO | jvm 242 | 2024/03/09 21:29:01 | 2024-03-09 21:29:01,492 INFO [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [ProcessServiceImpl$2] Beginning to execute external process for build 'Vehicle Electronics SW - SCM-MCU_SG2_EV-MCU_SG2_EV-PR-62-BUILD - BUILD_JOB #2 (VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT-2)'\n ... running command line: \n/bin/sh /home/cicd_vehicle/bamboo_agent_home/cicd_vehicle_agent20/temp/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT-2-ScriptBuildTask-6008075926138251910.sh\n ... in: /home/cicd_vehicle/bamboo_agent_home/WORKSPACE/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT\n
INFO | jvm 242 | 2024/03/09 21:29:03 | 2024-03-09 21:29:03,134 INFO [remoteEventRebroadcasterMessageListenerContainerLongLived-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue, agents known to be affected: []
INFO | jvm 242 | 2024/03/09 21:29:30 | 2024-03-09 21:29:30,204 INFO [remoteEventRebroadcasterMessageListenerContainerLongLived-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue, agents known to be affected: []
INFO | jvm 242 | 2024/03/09 21:29:32 | 2024-03-09 21:29:32,566 INFO [remoteEventRebroadcasterMessageListenerContainerLongLived-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue, agents known to be affected: []
INFO | jvm 242 | 2024/03/09 21:29:32 | 2024-03-09 21:29:32,702 INFO [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [TaskResultBuilder] Failing task since return code of [/bin/sh /home/cicd_vehicle/bamboo_agent_home/cicd_vehicle_agent20/temp/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT-2-ScriptBuildTask-6008075926138251910.sh] was 1 while expected 0
INFO | jvm 242 | 2024/03/09 21:29:32 | 2024-03-09 21:29:32,703 INFO [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [TaskExecutorImpl] Starting task '[postprocess 1] inform dependency' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
INFO | jvm 242 | 2024/03/09 21:29:38 | 2024-03-09 21:29:38,854 ERROR [0-BAM::CICD_VEHICLE_AGENT_20::Agent:pool-5-thread-1] [TaskExecutorImpl] Error occurred while running Task '[postprocess 1] inform dependency(10)' of type com.atlassian.bamboo.plugins.scripttask:task.builder.script.
INFO | jvm 242 | 2024/03/09 21:29:38 | com.atlassian.bamboo.task.TaskException: Failed to execute task
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:63) ~[atlassian-bamboo-plugin-scripttask-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.plugins.script.task.ScriptBuildTask.execute(ScriptBuildTask.java:66) ~[atlassian-bamboo-plugin-scripttask-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:126) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:207) ~[atlassian-bamboo-agent-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:179) ~[atlassian-bamboo-agent-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:169) ~[atlassian-bamboo-agent-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) ~[atlassian-bamboo-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:162) ~[atlassian-bamboo-agent-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:124) ~[atlassian-bamboo-agent-core-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) ~[atlassian-bamboo-api-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) ~[atlassian-bamboo-api-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) ~[atlassian-bamboo-api-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) ~[atlassian-bamboo-api-9.2.7.jar:?]
INFO | jvm 242 | 2024/03/09 21:29:38 | at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_372]
INFO | jvm 242 | 2024/03/09 21:29:38 | Caused by: java.lang.IllegalArgumentException: The working directory /home/cicd_vehicle/bamboo_agent_home/WORKSPACE/VES-AKNBU2P2NINKV6U2HGJPUKVR7MRSXMZLMN5YD6TKDKVPVGRZSL5CVMP2CKVEUYRA-BJT must exist before executing the process