This commit is contained in:
parent
5ed2167e9d
commit
eefaa70f95
2 changed files with 19 additions and 16 deletions
33
.drone.yml
33
.drone.yml
|
@ -6,31 +6,32 @@ steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: maven:3-jdk-11
|
image: maven:3-jdk-11
|
||||||
commands:
|
commands:
|
||||||
- mvn -B -DskipTests clean package
|
- mvn -B -DskipTests clean package
|
||||||
- mvn test -B
|
- mvn test -B
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
|
|
||||||
- name: archive-standard-artifact
|
- name: archive-standard-artifact
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /builds/ns-usbloader
|
- mkdir -p /builds/ns-usbloader
|
||||||
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
||||||
volumes:
|
volumes:
|
||||||
- name: builds
|
- name: builds
|
||||||
path: /builds
|
path: /builds
|
||||||
|
|
||||||
- name: make-store-legacy-artifact
|
- name: emerge-legacy-artifact
|
||||||
image: maven:3-jdk-11
|
image: maven:3-jdk-11
|
||||||
commands:
|
commands:
|
||||||
- sed -z -i -e 's/<groupId>org.usb4java<\/groupId>\n\s*<artifactId>usb4java<\/artifactId>\s*<version>1.3.0<\/version>/<groupId>org.usb4java<\/groupId>\n<artifactId>usb4java<\/artifactId>\n<version>1.2.0<\/version>/g' pom.xml
|
- . ./.make_legacy
|
||||||
- sed -z -i -e 's/<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}<\/finalName>/<finalName>${project.artifactId}-legacy-${project.version}-${maven.build.timestamp}<\/finalName>/g' pom.xml
|
- mvn -B -DskipTests clean package
|
||||||
- mvn -B -DskipTests clean package
|
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
||||||
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
|
- name: builds
|
||||||
|
path: /builds
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
|
@ -38,4 +39,4 @@ volumes:
|
||||||
path: /home/docker/drone/files/m2
|
path: /home/docker/drone/files/m2
|
||||||
- name: builds
|
- name: builds
|
||||||
host:
|
host:
|
||||||
path: /home/www/builds
|
path: /home/www/builds
|
||||||
|
|
2
.make_legacy
Normal file
2
.make_legacy
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sed -z -i -e 's/<groupId>org.usb4java<\/groupId>\n\s*<artifactId>usb4java<\/artifactId>\s*<version>1.3.0<\/version>/<groupId>org.usb4java<\/groupId>\n<artifactId>usb4java<\/artifactId>\n<version>1.2.0<\/version>/g' pom.xml
|
||||||
|
sed -z -i -e 's/<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}<\/finalName>/<finalName>${project.artifactId}-legacy-${project.version}-${maven.build.timestamp}<\/finalName>/g' pom.xml
|
Loading…
Reference in a new issue