Skip to content

Commit

Permalink
[#459] releng for publishing Maven Docs to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
BeckerFrank committed Apr 13, 2024
1 parent 1c7085c commit 847d1b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
24 changes: 24 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,29 @@ pipeline {
}
}
}
stage('Deploy Mylyn Docs Maven Artifacts') {
steps {
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh '''
mvn \
deploy \
-f mylyn.docs/pom.xml \
-U -B -V -e \
-s /home/jenkins/.m2/settings-deploy-ossrh-docs.xml \
$MAVEN_PROFILES \
-Possrh \
-Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Dtycho.buildqualifier.format=yyyyMMddHHmm \
-Dmaven.test.failure.ignore=true \
-Dmaven.test.error.ignore=true \
-Ddash.fail=false \
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
-Dnexus.autoReleaseAfterClose="${PERFORM_RELEASE}"
'''
}
}
}
}
}
}
10 changes: 4 additions & 6 deletions mylyn.docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
<properties>
<releaseVersion>4.3.0</releaseVersion>
<qualifier>-SNAPSHOT</qualifier>
<tycho-version>4.0.7</tycho-version>
<tycho.scmUrl>scm:git:https://github.com/eclipse-mylyn/org.eclipse.mylyn.docs</tycho.scmUrl>
<nexus.autoReleaseAfterClose>false</nexus.autoReleaseAfterClose>
</properties>
<build>
Expand Down Expand Up @@ -414,20 +412,20 @@
</licenses>
<organization>
<name>Eclipse Mylyn</name>
<url>https://projects.eclipse.org/projects/mylyn.docs</url>
<url>https://projects.eclipse.org/projects/tools.mylyn</url>
</organization>
<issueManagement>
<system>Bugzilla</system>
<url>https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;classification=Mylyn;product=Mylyn%20Docs</url>
<url>https://github.com/eclipse-mylyn/org.eclipse.mylyn/issues</url>
</issueManagement>
<scm>
<developerConnection>scm:git:https://github.com/eclipse-mylyn/org.eclipse.mylyn.docs.git</developerConnection>
<connection>scm:git:https://github.com/eclipse-mylyn/org.eclipse.mylyn.docs.git</connection>
<url>https://github.com/eclipse-mylyn/org.eclipse.mylyn.docs.git</url>
<url>https://github.com/eclipse-mylyn/org.eclipse.mylyn.git</url>
</scm>
<developers>
<developer>
<url>https://projects.eclipse.org/projects/mylyn.docs/who</url>
<url>https://projects.eclipse.org/projects/tools.mylyn/who</url>
</developer>
</developers>
<mailingLists>
Expand Down

0 comments on commit 847d1b3

Please sign in to comment.