ci: deploy to nexus

This commit is contained in:
CaptainB 2023-09-04 13:55:07 +08:00
parent e4d6984e6d
commit be2021e5b8
2 changed files with 8 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -43,8 +43,8 @@ pipeline {
export CLASSPATH=$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:/opt/apache-maven-3.8.3/bin:$PATH
java -version
mvn install -N -Drevision=${REVISION} --settings ./settings.xml
mvn clean install -Drevision=${REVISION} -pl framework,framework/sdk-parent,framework/sdk-parent/domain,framework/sdk-parent/sdk,framework/sdk-parent/xpack-interface,framework/sdk-parent/jmeter --settings ./settings.xml
mvn deploy -N -Drevision=${REVISION} --settings ./settings.xml
mvn clean deploy -Drevision=${REVISION} -pl framework,framework/sdk-parent,framework/sdk-parent/domain,framework/sdk-parent/sdk,framework/sdk-parent/xpack-interface,framework/sdk-parent/jmeter --settings ./settings.xml
# 复制前端代码
if [ -n "${FRONTEND_LINK}" ]; then

View File

@ -174,4 +174,10 @@
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>fit2cloud-public</id>
<url>https://repository.fit2cloud.com/content/repositories/fit2cloud-public</url>
</repository>
</distributionManagement>
</project>