diff --git a/Jenkinsfile b/Jenkinsfile index eb760ca..1d7d95a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,10 +54,8 @@ pipeline { } } } - stage('Unpack') { - agent { - label "linux" - } + stage('Archive artifacts') { + agent any steps { unstash 'core-artifacts' unstash 'windows-artifacts' @@ -70,5 +68,23 @@ pipeline { } } } + stage('Deploy artifacts') { + agent { + label "linux" + } + steps { + unstash 'core-artifacts' + unstash 'windows-artifacts' + unstash 'osx-artifacts' + unstash 'linux-artifacts' + sh 'echo $GPG_SECRET_KEYS | base64 --decode | gpg --import' + sh 'echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust' + withMaven( + mavenSettingsConfig: 'maven-central' + ) { + sh "mvn deploy" + } + } + } } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index a2275a6..b4fb428 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,17 @@ scm:git:https://github.com/jinput/jinput.git + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + UTF-8 1.6 @@ -133,36 +144,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + true + + - - - - release-sign-artifacts - - - performRelease - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.1 - - - sign-artifacts - verify - - sign - - - - - - - - \ No newline at end of file