[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
f1b158889d
commit
e28f963c01
20
.drone.yml
20
.drone.yml
@ -26,31 +26,17 @@ clone:
|
||||
pull: false
|
||||
|
||||
steps:
|
||||
- name: test_dir
|
||||
image: alpine
|
||||
pull: false
|
||||
# volumes:
|
||||
# - name: maven-cache
|
||||
# path: /localcache/maven/repository
|
||||
commands:
|
||||
- echo "✅ PR pipeline completed at $(date)"
|
||||
- touch /localcache/maven/repository/aaa.txt
|
||||
- ls -lah /localcache/maven/repository
|
||||
|
||||
- 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
|
||||
environment:
|
||||
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
||||
commands:
|
||||
- touch /localcache/maven/repository/bbb.txt
|
||||
- ls -lah /localcache/maven/repository
|
||||
# - touch /localcache/maven/repository/bbb.txt
|
||||
# - ls -lah /localcache/maven/repository
|
||||
- mkdir -p ~/.m2
|
||||
- cat ~/.m2/settings.xml
|
||||
- mvn -B clean test package -Dmaven.repo.local=/localcache/maven/repository
|
||||
- mvn -B clean test package
|
||||
- ls -lah target/*.jar || (echo "JAR file not found!" && exit 1)
|
||||
|
||||
- name: frontend-build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user