diff --git a/build.gradle b/build.gradle index 682f12d..bd3fb74 100644 --- a/build.gradle +++ b/build.gradle @@ -75,9 +75,8 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-web") - implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' - implementation 'io.github.resilience4j:resilience4j-spring-boot3' - implementation 'org.springframework.boot:spring-boot-starter-aop' + implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.0' + implementation 'io.github.resilience4j:resilience4j-spring-boot3:2.2.0' } tasks.named('test') { diff --git a/infrastructure/jenkins/deploy-backend.groovy b/infrastructure/jenkins/deploy-backend.groovy index efab9a0..1d49f25 100644 --- a/infrastructure/jenkins/deploy-backend.groovy +++ b/infrastructure/jenkins/deploy-backend.groovy @@ -156,7 +156,12 @@ pipeline { echo '6. Ждем БД...' sleep 15 - + + echo '6.5. Удаляем старый образ и чистим кэш...' + docker rmi app-backend-${params.PORT}:latest 2>/dev/null || echo 'Образ не найден' + docker builder prune -f + rm -rf .gradle build + echo '7. Собираем приложение...' docker build --no-cache -t app-backend-${params.PORT}:latest .