fix deployment stage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dmitry Isaenko 2022-08-10 17:51:06 +03:00
parent f7635e0302
commit 2cc57fbb2d
2 changed files with 3 additions and 2 deletions

1
.deploy_locally Normal file
View file

@ -0,0 +1 @@
grep -m 1 '<version>' pom.xml| sed -e 's/\s*.\/\?version>//g' | xargs -l sh -c 'mvn install:install-file -Dfile=./target/libKonogonka-$0-jar-with-dependencies.jar -DgroupId=ru.redrise -DartifactId=libKonogonka -Dversion=$0 -Dpackaging=jar -DgeneratePom=true;'

View file

@ -22,9 +22,9 @@ steps:
path: /builds path: /builds
- name: install-local-repo - name: install-local-repo
image: alpine:latest image: maven:3-jdk-11
commands: commands:
- mvn install:install-file -Dfile=./target/libKonogonka-*-jar-with-dependencies.jar -DgroupId=ru.redrise -DartifactId=libKonogonka -Dversion=`grep -m 1 '<version>' pom.xml| sed -e 's/\s*.\/\?version>//g'` -Dpackaging=jar -DgeneratePom=true; - . .deploy_locally
volumes: volumes:
- name: m2 - name: m2