소스 검색

Prepend the timestamp to the file name when building from codeship.

Codeship should run using the following command (identifying the profile with "-P codeship"):
$ mvn -Dbuild.number=123 -Dbuild.revision=ABC package -P codeship
James Albright 9 년 전
부모
커밋
3863504475
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      pom.xml

+ 9 - 0
pom.xml

@@ -16,6 +16,15 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
+    <profiles>
+        <profile>
+            <id>codeship</id>
+            <build>
+                <finalName>${timestamp.iso}-${project.artifactId}-${project.version}</finalName>
+            </build>
+        </profile>
+    </profiles>
+
     <build>
         <resources>
             <resource>