提交jenkins构建脚本

This commit is contained in:
zhouxiunai
2018-12-03 10:53:37 +08:00
parent 021de12235
commit fa2d15bb56
3 changed files with 98 additions and 0 deletions
+20
View File
@@ -101,6 +101,26 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.4</version>
<configuration>
<username>gzzn</username>
<password>Gzzn@2018</password>
<!-- 镜像tag -->
<tag>${project.version}</tag>
<!--useMavenSettingsForAuth>true</useMavenSettingsForAuth -->
<!-- 禁止使用谷歌商店认证 -->
<googleContainerRegistryEnabled>false</googleContainerRegistryEnabled>
<repository>130.120.3.193/${project.groupId}/${project.artifactId}</repository>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>