ci: использовать gradle из образа вместо ./gradlew (убран chmod +x gradlew)

This commit is contained in:
Дмитрий Соловьев
2026-06-10 09:14:00 +03:00
parent 9206ef6c49
commit cf14880309
13 changed files with 28 additions and 84 deletions
+2 -6
View File
@@ -113,10 +113,8 @@ ballistics:test:
extends: extends:
- .ballistics:rules:test - .ballistics:rules:test
- .ballistics:gradle-cache - .ballistics:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-ballistics-service:test - gradle --no-daemon :services:pcp-ballistics-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -135,10 +133,8 @@ ballistics:build:
needs: needs:
- job: ballistics:test - job: ballistics:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-ballistics-service:bootJar - gradle --no-daemon :services:pcp-ballistics-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+4 -12
View File
@@ -151,10 +151,8 @@ complex-mission-service:test:
extends: extends:
- .complex-mission-service:rules:test - .complex-mission-service:rules:test
- .pcp-gradle-cache - .pcp-gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-complex-mission-service:test - gradle --no-daemon :services:pcp-complex-mission-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -173,10 +171,8 @@ complex-mission-service:build:
needs: needs:
- job: complex-mission-service:test - job: complex-mission-service:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-complex-mission-service:bootJar - gradle --no-daemon :services:pcp-complex-mission-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
@@ -323,10 +319,8 @@ tle-monitoring:test:
extends: extends:
- .tle-monitoring:rules:test - .tle-monitoring:rules:test
- .pcp-gradle-cache - .pcp-gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:tle-monitoring-service:test - gradle --no-daemon :services:tle-monitoring-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -345,10 +339,8 @@ tle-monitoring:build:
needs: needs:
- job: tle-monitoring:test - job: tle-monitoring:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:tle-monitoring-service:bootJar - gradle --no-daemon :services:tle-monitoring-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -94,10 +94,8 @@ coverage-scheme:test:
extends: extends:
- .coverage_scheme:rules:test - .coverage_scheme:rules:test
- .coverage_scheme:gradle-cache - .coverage_scheme:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-coverage-scheme-service:test - gradle --no-daemon :services:pcp-coverage-scheme-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -116,10 +114,8 @@ coverage-scheme:build:
needs: needs:
- job: coverage-scheme:test - job: coverage-scheme:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-coverage-scheme-service:bootJar - gradle --no-daemon :services:pcp-coverage-scheme-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -95,10 +95,8 @@ dynamic-plan:test:
extends: extends:
- .dynamic_plan:rules:test - .dynamic_plan:rules:test
- .dynamic_plan:gradle-cache - .dynamic_plan:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-dynamic-plan-service:test - gradle --no-daemon :services:pcp-dynamic-plan-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -117,10 +115,8 @@ dynamic-plan:build:
needs: needs:
- job: dynamic-plan:test - job: dynamic-plan:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-dynamic-plan-service:bootJar - gradle --no-daemon :services:pcp-dynamic-plan-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -94,10 +94,8 @@ mission-planing:test:
extends: extends:
- .mission-planing:rules:test - .mission-planing:rules:test
- .mission-planing:gradle-cache - .mission-planing:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-mission-planing-service:test - gradle --no-daemon :services:pcp-mission-planing-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -116,10 +114,8 @@ mission-planing:build:
needs: needs:
- job: mission-planing:test - job: mission-planing:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-mission-planing-service:bootJar - gradle --no-daemon :services:pcp-mission-planing-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -95,10 +95,8 @@ request:test:
extends: extends:
- .request:rules:test - .request:rules:test
- .request:gradle-cache - .request:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-request-service:test - gradle --no-daemon :services:pcp-request-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -117,10 +115,8 @@ request:build:
needs: needs:
- job: request:test - job: request:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-request-service:bootJar - gradle --no-daemon :services:pcp-request-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -93,10 +93,8 @@ satellite-catalog:test:
extends: extends:
- .satellite-catalog:rules:test - .satellite-catalog:rules:test
- .satellite-catalog:gradle-cache - .satellite-catalog:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-satellite-catalog-service:test - gradle --no-daemon :services:pcp-satellite-catalog-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -115,10 +113,8 @@ satellite-catalog:build:
needs: needs:
- job: satellite-catalog:test - job: satellite-catalog:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-satellite-catalog-service:bootJar - gradle --no-daemon :services:pcp-satellite-catalog-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -84,10 +84,8 @@ spring-boot-admin:test:
extends: extends:
- .spring-boot-admin:rules:test - .spring-boot-admin:rules:test
- .spring-boot-admin:gradle-cache - .spring-boot-admin:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-srpring-boot-admin-server:test - gradle --no-daemon :services:pcp-srpring-boot-admin-server:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -106,10 +104,8 @@ spring-boot-admin:build:
needs: needs:
- job: spring-boot-admin:test - job: spring-boot-admin:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-srpring-boot-admin-server:bootJar - gradle --no-daemon :services:pcp-srpring-boot-admin-server:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -93,10 +93,8 @@ stations:test:
extends: extends:
- .stations:rules:test - .stations:rules:test
- .stations:gradle-cache - .stations:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-stations-service:test - gradle --no-daemon :services:pcp-stations-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -115,10 +113,8 @@ stations:build:
needs: needs:
- job: stations:test - job: stations:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-stations-service:bootJar - gradle --no-daemon :services:pcp-stations-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -91,10 +91,8 @@ tgu:test:
extends: extends:
- .tgu:rules:test - .tgu:rules:test
- .tgu:gradle-cache - .tgu:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-tgu-service:test - gradle --no-daemon :services:pcp-tgu-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -113,10 +111,8 @@ tgu:build:
needs: needs:
- job: tgu:test - job: tgu:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-tgu-service:bootJar - gradle --no-daemon :services:pcp-tgu-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -94,10 +94,8 @@ ui:test:
extends: extends:
- .ui:rules:test - .ui:rules:test
- .ui:gradle-cache - .ui:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-ui-service:test - gradle --no-daemon :services:pcp-ui-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -116,10 +114,8 @@ ui:build:
needs: needs:
- job: ui:test - job: ui:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:pcp-ui-service:bootJar - gradle --no-daemon :services:pcp-ui-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -104,10 +104,8 @@ slots:test:
extends: extends:
- .slots:rules:test - .slots:rules:test
- .slots:gradle-cache - .slots:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:slots-service:test - gradle --no-daemon :services:slots-service:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -126,10 +124,8 @@ slots:build:
needs: needs:
- job: slots:test - job: slots:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:slots-service:bootJar - gradle --no-daemon :services:slots-service:bootJar
artifacts: artifacts:
when: always when: always
paths: paths:
+2 -6
View File
@@ -90,10 +90,8 @@ config-server:test:
extends: extends:
- .config-server:rules:test - .config-server:rules:test
- .config-server:gradle-cache - .config-server:gradle-cache
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:spring-cloud-config-server:test - gradle --no-daemon :services:spring-cloud-config-server:test
artifacts: artifacts:
when: always when: always
reports: reports:
@@ -112,10 +110,8 @@ config-server:build:
needs: needs:
- job: config-server:test - job: config-server:test
artifacts: true artifacts: true
before_script:
- chmod +x gradlew
script: script:
- ./gradlew --no-daemon :services:spring-cloud-config-server:bootJar - gradle --no-daemon :services:spring-cloud-config-server:bootJar
artifacts: artifacts:
when: always when: always
paths: paths: