This is an automated email from the ASF dual-hosted git repository.
tzimanyi pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/main by this push:
new dba05133 kie-issues#628: use wagon-maven-plugin to bulk deploy
snapshots (#1118)
dba05133 is described below
commit dba05133c68e6f7b2c39bfcd2f3a5e7b0d33fda1
Author: Jan Stastny <[email protected]>
AuthorDate: Tue Nov 7 13:52:12 2023 +0100
kie-issues#628: use wagon-maven-plugin to bulk deploy snapshots (#1118)
* kie-issues#628: use wagon-maven-plugin to bulk deploy snapshots
* kie-issues#628: enable deploy in kogito jobs
---------
Co-authored-by: jstastny-cz <[email protected]>
---
.ci/jenkins/config/branch.yaml | 2 --
dsl/seed/jenkinsfiles/Jenkinsfile.buildchain | 15 ++++++++++++---
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml
index 8dc37df1..b20c08c4 100644
--- a/.ci/jenkins/config/branch.yaml
+++ b/.ci/jenkins/config/branch.yaml
@@ -37,8 +37,6 @@ environments:
auto_generation: false
ids:
- ecosystem
-disable:
- deploy: true
repositories:
- name: incubator-kie-kogito-pipelines
job_display_name: kogito-pipelines
diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain
b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain
index d67b785d..d0a7e9db 100644
--- a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain
+++ b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain
@@ -160,9 +160,18 @@ pipeline {
}
steps {
script {
- // Upload to specific repository with credentials
- String mavenDeployRepositoryZipUrl =
"${mavenDeployRepository.replaceAll('/content/',
'/service/local/').replaceFirst('/*$', '')}/content-compressed"
-
maven.uploadLocalArtifacts(mavenDeployRepositoryCredsId,
getMavenDeployLocalDir(), mavenDeployRepositoryZipUrl)
+ withCredentials([usernamePassword(credentialsId:
mavenDeployRepositoryCredsId, usernameVariable: 'REPOSITORY_USER',
passwordVariable: 'REPOSITORY_TOKEN')]) {
+ configFileProvider([configFile(fileId:
settingsXmlId, variable: 'MAVEN_SETTINGS_FILE')]) {
+ new MavenCommand(this)
+
.withSettingsXmlFile(MAVEN_SETTINGS_FILE)
+ .withProperty('wagon.source',
"file://${getMavenDeployLocalDir()}")
+ .withProperty('wagon.target',
mavenDeployRepository)
+ .withProperty('wagon.targetId',
'apache-snapshots-repository')
+
.withProperty('apache.snapshot.repository.username', REPOSITORY_USER)
+
.withProperty('apache.snapshot.repository.password', REPOSITORY_TOKEN)
+
.run("org.codehaus.mojo:wagon-maven-plugin:2.0.2:merge-maven-repos")
+ }
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]