escape newlines
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dmitry Isaenko 2022-07-26 20:06:14 +03:00
parent e54f10b7a1
commit 88aef83798

View file

@ -24,7 +24,7 @@ steps:
- name: emerge-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 - 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 - 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/