1
젠킨스에서 스프링 부트 jar 파일을 만들고 FTP를 통해 Azure로 업로드합니다.하지만 앱이 여전히 실행 중이므로 아래 오류가 발생합니다. 하늘빛에서 이것을 처리하기위한 권장 방법은 무엇입니까? 내가 어떻게 든 항아리를 업로드하기 전에 서버를 종료하고 업로드 후 다시 시작한다고 가정합니다. 미리스프링 부트 jar 파일을 Azure에 배포하고 Azure를 다시 시작하십시오.
..........
FTP: Connecting from host [ip-172-20-20-20]
FTP: Connecting with configuration [Back-End-Azure-FTP] ...
FTP: Disconnecting configuration [Back-End-Azure-FTP] ...
ERROR: Exception when publishing, exception message [Could not write file. Server message: [550 The process cannot access the file because it is being used by another process.
]]
Build step 'Send build artifacts over FTP' changed build result to UNSTABLE
Notifying upstream projects of job completion
Finished: UNSTABLE
감사 스프링 액추에이터를 이용 될 수있다이 구현
감사합니다. 스프린트 액츄에이터에 대해 알지 못해서 테스트를 추가하고 테스트했습니다. 시스템 종료는 작동하지만 공용으로 사용하는 것이 위험하므로 모든 사람이 내 서버를 종료 할 수 있습니다. –