Skip to content

Commit

Permalink
Use Artifactory Jenkins plugin for deployment (#1818)
Browse files Browse the repository at this point in the history
* Use artifactory jenkins plugin

* Bump version to 1.2.0-SNAPSHOT
  • Loading branch information
SupremeMortal authored Jan 7, 2021
1 parent bbbb703 commit dc46905
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
22 changes: 21 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,27 @@ pipeline {
}

steps {
sh 'mvn javadoc:jar source:jar deploy -DskipTests'
rtMavenDeployer(
id: "maven-deployer",
serverId: "opencollab-artifactory",
releaseRepo: "maven-releases",
snapshotRepo: "maven-snapshots"
)
rtMavenResolver(
id: "maven-resolver",
serverId: "opencollab-artifactory",
releaseRepo: "release",
snapshotRepo: "snapshot"
)
rtMavenRun(
pom: 'pom.xml',
goals: 'javadoc:jar source:jar install -DskipTests',
deployerId: "maven-deployer",
resolverId: "maven-resolver"
)
rtPublishBuildInfo(
serverId: "opencollab-artifactory"
)
}
}
}
Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@
</repository>
</repositories>

<distributionManagement>
<repository>
<id>releases</id>
<name>opencollab-releases</name>
<url>https://repo.opencollab.dev/maven-releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>opencollab-snapshots</name>
<url>https://repo.opencollab.dev/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down

0 comments on commit dc46905

Please sign in to comment.