This is an automated email from the ASF dual-hosted git repository. jstastnycz pushed a commit to branch radtriste-fix-pipelines in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
commit ae1d9ec73223f48b1e3eb88888881b2aa885bd2b 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 | 4 ---- dsl/seed/jenkinsfiles/Jenkinsfile.buildchain | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml index 9161b53d..c0447a50 100644 --- a/.ci/jenkins/config/branch.yaml +++ b/.ci/jenkins/config/branch.yaml @@ -37,10 +37,6 @@ environments: auto_generation: false ids: - ecosystem -disable: - deploy: true - triggers: true - pr_check: 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]
