diff --git a/.drone.yml b/.drone.yml index 9dce40f..db885a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,31 +6,32 @@ steps: - name: test image: maven:3-jdk-11 commands: - - mvn -B -DskipTests clean package - - mvn test -B + - mvn -B -DskipTests clean package + - mvn test -B volumes: - - name: m2 - path: /root/.m2 + - name: m2 + path: /root/.m2 - name: archive-standard-artifact image: alpine:latest commands: - - mkdir -p /builds/ns-usbloader - - cp target/ns-usbloader-*jar /builds/ns-usbloader/ + - mkdir -p /builds/ns-usbloader + - cp target/ns-usbloader-*jar /builds/ns-usbloader/ volumes: - - name: builds - path: /builds + - name: builds + path: /builds - - name: make-store-legacy-artifact + - name: emerge-legacy-artifact image: maven:3-jdk-11 commands: - - sed -z -i -e 's/org.usb4java<\/groupId>\n\s*usb4java<\/artifactId>\s*1.3.0<\/version>/org.usb4java<\/groupId>\nusb4java<\/artifactId>\n1.2.0<\/version>/g' pom.xml - - sed -z -i -e 's/${project.artifactId}-${project.version}-${maven.build.timestamp}<\/finalName>/${project.artifactId}-legacy-${project.version}-${maven.build.timestamp}<\/finalName>/g' pom.xml - - mvn -B -DskipTests clean package - - cp target/ns-usbloader-*jar /builds/ns-usbloader/ + - . ./.make_legacy + - mvn -B -DskipTests clean package + - cp target/ns-usbloader-*jar /builds/ns-usbloader/ volumes: - - name: m2 - path: /root/.m2 + - name: m2 + path: /root/.m2 + - name: builds + path: /builds volumes: - name: m2 @@ -38,4 +39,4 @@ volumes: path: /home/docker/drone/files/m2 - name: builds host: - path: /home/www/builds \ No newline at end of file + path: /home/www/builds diff --git a/.make_legacy b/.make_legacy new file mode 100644 index 0000000..051c7f5 --- /dev/null +++ b/.make_legacy @@ -0,0 +1,2 @@ +sed -z -i -e 's/org.usb4java<\/groupId>\n\s*usb4java<\/artifactId>\s*1.3.0<\/version>/org.usb4java<\/groupId>\nusb4java<\/artifactId>\n1.2.0<\/version>/g' pom.xml +sed -z -i -e 's/${project.artifactId}-${project.version}-${maven.build.timestamp}<\/finalName>/${project.artifactId}-legacy-${project.version}-${maven.build.timestamp}<\/finalName>/g' pom.xml