[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
|
pull: false
|
||||||
|
|
||||||
steps:
|
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
|
- 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:
|
|
||||||
# - name: maven-cache
|
|
||||||
# path: /localcache/maven/repository
|
|
||||||
environment:
|
environment:
|
||||||
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
MAVEN_OPTS: -Dmaven.repo.local=/localcache/maven/repository
|
||||||
commands:
|
commands:
|
||||||
- touch /localcache/maven/repository/bbb.txt
|
# - touch /localcache/maven/repository/bbb.txt
|
||||||
- ls -lah /localcache/maven/repository
|
# - ls -lah /localcache/maven/repository
|
||||||
- mkdir -p ~/.m2
|
- mkdir -p ~/.m2
|
||||||
- cat ~/.m2/settings.xml
|
- 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)
|
- 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