[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
|
||||
image: alpine
|
||||
pull: false
|
||||
volumes:
|
||||
- name: maven-cache
|
||||
path: /localcache/maven/repository
|
||||
# volumes:
|
||||
# - name: maven-cache
|
||||
# path: /localcache/maven/repository
|
||||
commands:
|
||||
- echo "✅ PR pipeline completed at $(date)"
|
||||
- touch /localcache/maven/repository/aaa.txt
|
||||
@ -40,15 +40,15 @@ steps:
|
||||
- name: java-build-test
|
||||
image: registry.cn-beijing.aliyuncs.com/yinzy/maven:jk3.9-8
|
||||
pull: false
|
||||
volumes:
|
||||
- name: maven-cache
|
||||
path: /localcache/maven/repository
|
||||
# volumes:
|
||||
# - name: maven-cache
|
||||
# path: /localcache/maven/repository
|
||||
environment:
|
||||
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
||||
commands:
|
||||
- mkdir -p ~/.m2
|
||||
- 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)
|
||||
|
||||
- name: frontend-build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user