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..0f6bf5919eae3 100644 --- a/pom.xml +++ b/pom.xml @@ -1826,8 +1826,9 @@ --> - 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