[fix]:[20251208][drone 测试持久化目录]
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
705d2141b7
commit
e6e78fa287
14
.drone.yml
14
.drone.yml
@ -29,9 +29,9 @@ steps:
|
|||||||
- name: test_dir
|
- name: test_dir
|
||||||
image: alpine
|
image: alpine
|
||||||
pull: false
|
pull: false
|
||||||
volumes:
|
# volumes:
|
||||||
- name: maven-cache
|
# - name: maven-cache
|
||||||
path: /localcache/maven/repository
|
# path: /localcache/maven/repository
|
||||||
commands:
|
commands:
|
||||||
- echo "✅ PR pipeline completed at $(date)"
|
- echo "✅ PR pipeline completed at $(date)"
|
||||||
- touch /localcache/maven/repository/aaa.txt
|
- touch /localcache/maven/repository/aaa.txt
|
||||||
@ -40,15 +40,15 @@ steps:
|
|||||||
- name: java-build-test
|
- name: java-build-test
|
||||||
image: registry.cn-beijing.aliyuncs.com/yinzy/maven:jk3.9-8
|
image: registry.cn-beijing.aliyuncs.com/yinzy/maven:jk3.9-8
|
||||||
pull: false
|
pull: false
|
||||||
volumes:
|
# volumes:
|
||||||
- name: maven-cache
|
# - name: maven-cache
|
||||||
path: /localcache/maven/repository
|
# path: /localcache/maven/repository
|
||||||
environment:
|
environment:
|
||||||
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.m2
|
- mkdir -p ~/.m2
|
||||||
- cat ~/.m2/settings.xml
|
- cat ~/.m2/settings.xml
|
||||||
- mvn -B clean test package
|
- mvn -B clean test package -Dmaven.repo.local=/localcache/maven/repository
|
||||||
- ls -lah target/*.jar || (echo "JAR file not found!" && exit 1)
|
- ls -lah target/*.jar || (echo "JAR file not found!" && exit 1)
|
||||||
|
|
||||||
- name: frontend-build
|
- name: frontend-build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user