This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new a4e53450c9 [NO-ISSUE] Use apache-release profile when doing a release
build (#3530)
a4e53450c9 is described below
commit a4e53450c90c3b834a31d30e2745c7248a198114
Author: Tibor Zimányi <[email protected]>
AuthorDate: Fri May 24 11:27:26 2024 +0200
[NO-ISSUE] Use apache-release profile when doing a release build (#3530)
* Add apache-release profile to release builds.
* Override javadoc version.
* Fix JavaDoc build.
* Add password to gpg signing setup.
* Add GPG password to signing command
* Run from within withCredentials block for release.
---
.ci/jenkins/Jenkinsfile.deploy | 29 +++++++++++++++++++++----
kogito-build/kogito-build-no-bom-parent/pom.xml | 10 +++++++++
pom.xml | 1 +
3 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 316c7271cd..d71a8ee87c 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -152,11 +152,32 @@ pipeline {
if (params.SKIP_TESTS) {
mvnCmd.skipTests() // Conflict somehow with Python
testing. If `skipTests={anyvalue}` is set, then exec plugin is not executed ...
}
- configFileProvider([configFile(fileId:
env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){
- mvnCmd
- .withSettingsXmlFile(MAVEN_SETTINGS_FILE)
- .run("clean $installOrDeploy")
+ if (isRelease()) {
+ withCredentials([file(credentialsId:
'asf-release-gpg-signing-key', variable: 'SIGNING_KEY')]) {
+ withCredentials([file(credentialsId:
'asf-release-gpg-signing-key-password', variable: 'SIGNING_KEY_PASSWORD')]) {
+ // copy the key to singkey.gpg file in
*plain text* so we can import it
+ sh ('cat $SIGNING_KEY >
$WORKSPACE/signkey.gpg')
+ // Please do not remove list keys command.
When gpg is run for the first time, it may initialize some internals.
+ sh ('gpg --list-keys')
+ sh ("gpg --batch --pinentry-mode=loopback
--passphrase \"${SIGNING_KEY_PASSWORD}\" --import signkey.gpg")
+ sh ('rm $WORKSPACE/signkey.gpg')
+
+ mvnCmd.withProperty('gpg.passphrase',
SIGNING_KEY_PASSWORD)
+ .withProfiles(['apache-release'])
+
+ configFileProvider([configFile(fileId:
env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){
+
mvnCmd.withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .run("clean $installOrDeploy")
+ }
+ }
+ }
+ } else {
+ configFileProvider([configFile(fileId:
env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]){
+ mvnCmd.withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .run("clean $installOrDeploy")
+ }
}
+
}
}
}
diff --git a/kogito-build/kogito-build-no-bom-parent/pom.xml
b/kogito-build/kogito-build-no-bom-parent/pom.xml
index 3be39d1972..8b3101c356 100644
--- a/kogito-build/kogito-build-no-bom-parent/pom.xml
+++ b/kogito-build/kogito-build-no-bom-parent/pom.xml
@@ -661,6 +661,16 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>${version.maven-javadoc-plugin}</version>
+ <configuration>
+ <quiet>true</quiet>
+ <doclint>none</doclint>
+ <legacyMode>true</legacyMode>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
diff --git a/pom.xml b/pom.xml
index 039cb0f146..d4a05d4f29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,6 +101,7 @@
<project.build.outputTimestamp>2024-01-16T00:00:00Z</project.build.outputTimestamp>
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
<version.apache-rat-plugin>0.16.1</version.apache-rat-plugin>
+ <version.maven-javadoc-plugin>3.6.2</version.maven-javadoc-plugin>
</properties>
<build>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]