Skip to content

Commit

Permalink
Merge pull request #928 from strongbox/issue-923/start-publishing-our…
Browse files Browse the repository at this point in the history
…-distributions-to-github

Issue 923: Start publishing our distribution on Github
  • Loading branch information
carlspring committed Nov 17, 2018
2 parents cdc564d + 6d21243 commit 140dc99
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ pipeline {
}
}
}
stage('Deploying to GitHub') {
when {
expression { BRANCH_NAME == 'master' && (currentBuild.result == null || currentBuild.result == 'SUCCESS') }
}
steps {
withMavenPlus(mavenLocalRepo: workspace().getM2LocalRepoPath(), mavenSettingsConfig: 'a5452263-40e5-4d71-a5aa-4fc94a0e6833', publisherStrategy: 'EXPLICIT')
{
sh "mvn package -Pdeploy-release-artifact-to-github -Dmaven.test.skip=true"
}
}
}
}
post {
success {
Expand Down
3 changes: 3 additions & 0 deletions strongbox-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
<tag>${project.version}</tag>

<overwriteArtifact>true</overwriteArtifact>
<repositoryId>strongbox/strongbox</repositoryId>
<serverId>github</serverId>
<deleteRelease>true</deleteRelease>

<fileSets>
<fileSet>
Expand Down
2 changes: 1 addition & 1 deletion strongbox-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
<plugin>
<groupId>de.jutzig</groupId>
<artifactId>github-release-plugin</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
</plugin>

<plugin>
Expand Down

0 comments on commit 140dc99

Please sign in to comment.