From 3745aa6e2f4b6d9ba16a0d87ac1731aeb4a8c255 Mon Sep 17 00:00:00 2001 From: fdesiles <52663885+fdesiles@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:49:40 +0100 Subject: [PATCH 1/2] chore(QTDI-2094): Replace stage for publishing to GitHub Packages --- .jenkins/settings.xml | 8 ++++++++ Jenkinsfile | 13 +++++++++---- pom.xml | 9 +++++---- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.jenkins/settings.xml b/.jenkins/settings.xml index b1144552d2cfc..377352813d95f 100644 --- a/.jenkins/settings.xml +++ b/.jenkins/settings.xml @@ -85,6 +85,14 @@ ${env.DOCKER_USER} ${env.DOCKER_PASS} + + github_package_snapshots + ${env.GITHUB_PACKAGES_LOGIN} + ${env.GITHUB_PACKAGES_TOKEN} + + 30000 + + diff --git a/Jenkinsfile b/Jenkinsfile index b28379b83e8ce..b333934cec693 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,10 @@ final def ossrhCredentials = usernamePassword( final def nexusCredentials = usernamePassword( credentialsId: 'nexus-artifact-zl-credentials', usernameVariable: 'NEXUS_USER', passwordVariable: 'NEXUS_PASS') +final def githubPackagesCredentials = usernamePassword( + credentialsId: 'github-packages-ci-runner-connectors-pat', + usernameVariable: 'GITHUB_PACKAGES_LOGIN', + passwordVariable: 'GITHUB_PACKAGES_TOKEN') final def jetbrainsCredentials = usernamePassword( credentialsId: 'jetbrains-credentials', usernameVariable: 'JETBRAINS_USER', @@ -457,13 +461,14 @@ pipeline { script { withCredentials([ossrhCredentials, gpgCredentials, - nexusCredentials]) { + nexusCredentials, + githubPackagesCredentials]) { sh """\ #!/usr/bin/env bash set -xe bash mvn deploy $deployOptions \ $extraBuildParams \ - --settings .jenkins/settings.xml + --settings .jenkins/settings.xml """.stripIndent() } } @@ -471,8 +476,8 @@ pipeline { script { def repo if (devBranch_mavenDeploy) { - repo = ['artifacts-zl.talend.com', - 'https://artifacts-zl.talend.com/nexus/content/repositories/snapshots/org/talend/sdk/component'] + repo = ['global-artifacts', + 'https://github.com/orgs/Talend/packages?repo_name=global-artifacts'] } else { repo = ['oss.sonatype.org', 'https://central.sonatype.com/repository/maven-snapshots/org/talend/sdk/component/'] diff --git a/pom.xml b/pom.xml index e806d1f246951..23e4c62343391 100644 --- a/pom.xml +++ b/pom.xml @@ -1825,10 +1825,11 @@ Its overwrite the snapshotRepository with a private one. --> - - talend.snapshots - https://artifacts-zl.talend.com/nexus/content/repositories/snapshots - + + github_package_snapshots + GitHub Maven Packages (snapshots) + https://maven.pkg.github.com/Talend/global-artifacts + From 2dc9afeae7b489fdece33d5528f56492b8f0b7eb Mon Sep 17 00:00:00 2001 From: fdesiles <52663885+fdesiles@users.noreply.github.com> Date: Thu, 15 Jan 2026 11:55:30 +0100 Subject: [PATCH 2/2] fix(pom): correct indentation for snapshotRepository in distributionManagement --- pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 23e4c62343391..0f6bf5919eae3 100644 --- a/pom.xml +++ b/pom.xml @@ -1825,11 +1825,11 @@ Its overwrite the snapshotRepository with a private one. --> - - github_package_snapshots - GitHub Maven Packages (snapshots) - https://maven.pkg.github.com/Talend/global-artifacts - + + github_package_snapshots + GitHub Maven Packages (snapshots) + https://maven.pkg.github.com/Talend/global-artifacts +