This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-optaplanner.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new fe7b9065ad [10.0.x] NO-ISSUE: Setup nexus credentials to build parent
modules (#3119)
fe7b9065ad is described below
commit fe7b9065ad1b7e1d668be7b9503e6f352bfdfd79
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Aug 19 14:03:37 2024 -0300
[10.0.x] NO-ISSUE: Setup nexus credentials to build parent modules (#3119)
Setup nexus credentials to build parent modules
---
.ci/jenkins/Jenkinsfile.deploy | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 2a06609679..a828be9b41 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -406,12 +406,16 @@ MavenCommand getOptaplannerQuickstartsMavenCommand() {
* Builds the parent modules and the BOM so that project depending on these
artifacts can resolve.
*/
void mavenCleanInstallOptaPlannerParents() {
- configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID,
variable: 'MAVEN_SETTINGS_FILE')]) {
- getOptaplannerMavenCommand()
- .skipTests(true)
- .withOptions(['-U', '-pl
org.optaplanner:optaplanner-build-parent,org.optaplanner:optaplanner-bom',
'-am'])
- .withSettingsXmlFile(MAVEN_SETTINGS_FILE)
- .run('clean install')
+ withCredentials([usernamePassword(credentialsId: env.MAVEN_REPO_CREDS_ID,
usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
+ configFileProvider([configFile(fileId:
env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) {
+ getOptaplannerMavenCommand()
+ .skipTests(true)
+ .withOptions(['-U', '-pl
org.optaplanner:optaplanner-build-parent,org.optaplanner:optaplanner-bom',
'-am'])
+ .withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .withProperty('apache.repository.username',
"${REPOSITORY_USER}")
+ .withProperty('apache.repository.password',
"${REPOSITORY_TOKEN}")
+ .run('clean install')
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]