Adds auto-deploy
All checks were successful
EpicKnarvik97/KnarLib/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2022-11-26 14:48:58 +01:00
parent dd827d4191
commit 85beb1f811
2 changed files with 15 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -19,7 +19,7 @@ pipeline {
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'mvn verify -Dmaven.test.skip=true'
sh 'mvn verify -Dmaven.test.skip=true & mvn deploy'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}

14
pom.xml
View File

@ -61,7 +61,21 @@
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>gitea</id>
<url>https://git.knarcraft.net/api/packages/EpicKnarvik97/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>https://git.knarcraft.net/api/packages/EpicKnarvik97/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>https://git.knarcraft.net/api/packages/EpicKnarvik97/maven</url>
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>