여씨의 개발이야기

[Today's Bug (Jenkins)] A problem occurred configuring root project 'dbti_api' 본문

🐞 Debug

[Today's Bug (Jenkins)] A problem occurred configuring root project 'dbti_api'

yeossi 2024. 2. 7. 17:21

📢 이 버그 좀 보세요!

jenkins로 spring boot 프로젝트 배포도중에 에러가 발생함 
A problem occurred configuring root project '프로젝트명' 

🐞 버그가 나타난 이유?

spring boot gradle plugin은 java17에서 돌아가기 때문에 이러한 오류가 났다고 함.

🕸 어떻게 이 버그를 잡을까?

개발환경 : ubuntu 22.04  
sudo update-alternatives --config java 입력 후, 업그레이드 할 java를 선택하면 됨. 필자는 type selection number를 0이라고 입력해서 0번째 path로 설정했다. 

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@donggle:~$ java -version
openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment (build 11.0.21+9-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.21+9-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
ubuntu@donggle:~$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-17-openjdk-amd64/bin/java      1711      auto mode
* 1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-17-openjdk-amd64/bin/java      1711      manual mode
  3            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto                                                 mode
ubuntu@donggle:~$ java -version
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-122.04, mixed mode, sharing)
Comments