2022-07-26 18:25:26 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: maven:3-jdk-11
|
|
|
|
commands:
|
2022-07-26 19:52:57 +03:00
|
|
|
- mvn -B -DskipTests clean package
|
|
|
|
- mvn test -B
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 19:52:57 +03:00
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
2022-07-26 18:25:26 +03:00
|
|
|
|
|
|
|
- name: archive-standard-artifact
|
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
2022-07-26 19:52:57 +03:00
|
|
|
- mkdir -p /builds/ns-usbloader
|
|
|
|
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 19:52:57 +03:00
|
|
|
- name: builds
|
|
|
|
path: /builds
|
2022-07-26 18:25:26 +03:00
|
|
|
|
2022-07-26 19:52:57 +03:00
|
|
|
- name: emerge-legacy-artifact
|
2022-07-26 18:25:26 +03:00
|
|
|
image: maven:3-jdk-11
|
|
|
|
commands:
|
2022-07-26 20:06:14 +03:00
|
|
|
- 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
|
2022-07-26 19:52:57 +03:00
|
|
|
- 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
|
|
|
|
- cp target/ns-usbloader-*jar /builds/ns-usbloader/
|
2022-07-26 18:25:26 +03:00
|
|
|
volumes:
|
2022-07-26 19:52:57 +03:00
|
|
|
- name: m2
|
|
|
|
path: /root/.m2
|
|
|
|
- name: builds
|
|
|
|
path: /builds
|
2022-07-26 18:25:26 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
host:
|
|
|
|
path: /home/docker/drone/files/m2
|
|
|
|
- name: builds
|
|
|
|
host:
|
2022-07-26 19:52:57 +03:00
|
|
|
path: /home/www/builds
|