Repository navigation
chore(QTDI-3642): pull dependencies from GitHub Packages instead of Nexus - #1306
ozhelezniak-talend merged 23 commits into
Conversation
Scope & Design Review — QTDI-3642Critic round 1: APPROVED — no Blocker or Major findings. 4 Minor (non-blocking):
Signed: Claude Sonnet 5.5 |
Code Review / Compliance — QTDI-3642Reviewed 6 files (pom.xml, .jenkins/settings.xml, .jenkins/scripts/docker_build.sh, Jenkinsfile, ci/Jenkinsfile-release, ci/Jenkinsfile-trivy; no Java changes).
Critical: 0 · Warnings: 0 · Info: 3 Signed: Claude Sonnet 5.5 |
There was a problem hiding this comment.
🟡 Changes recommended
Maven stages can still fail to authenticate against GitHub Packages because required credentials are missing from the deploy stage and the release-preparation command does not use the injected settings file.
2 open issues
What changed in this PR
This verification-only PR updates Maven and Jenkins configuration to resolve release dependencies from GitHub Packages instead of Nexus while preserving Nexus deployment configuration for restoration.
Changes:
- Adds GitHub Packages repositories and authenticated Maven server configuration.
- Injects GitHub Packages credentials into the main, release, and Trivy Jenkins pipelines.
- Updates Docker Maven builds to use
.jenkins/settings.xml. - Comments out Nexus pull configuration without deleting it.
Two moderate issues remain unresolved: the relevant Maven deploy stages need GitHub Packages credentials, and the release preparation command must use .jenkins/settings.xml.
This pull request requires changes.
| File | Description |
|---|---|
pom.xml |
Configures GitHub Packages release repositories while commenting out Nexus pull repositories. |
Jenkinsfile |
Updates pipeline stages with GitHub Packages credentials and Maven settings usage. |
ci/Jenkinsfile-trivy |
Adds GitHub Packages credentials to the Trivy build stage. |
ci/Jenkinsfile-release |
Adds GitHub Packages credentials to release pipeline stages. |
.jenkins/settings.xml |
Adds GitHub Packages server credentials and comments out Nexus pull configuration. |
.jenkins/scripts/docker_build.sh |
Ensures Docker Maven builds use the Jenkins settings file. |
Review effort: Lite
…exus Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…IT settings The invoker ITs use their own settings.xml, which lacked the GitHub Packages server, so org.talend.components:jdbc:car could not be resolved once the Nexus pull repositories were commented out. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ository The maven-plugin ITs depend on org.talend.components:salesforce:car:1.55.0-SNAPSHOT, previously pulled from TalendOpenSourceSnapshot. global-artifacts hosts both releases and snapshots under the same URL, so enable snapshots on it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… plugin IT The 1.55.0-SNAPSHOT car is not available in GitHub Packages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
03cf5af to
f24fd91
Compare
…ory cache Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…d use settings.xml in prepare-next-iteration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…atype stage Drop the GITHUB_PACKAGES_DEV_DEPLOY parameter: GitHub Packages now deploys whenever the Sonatype/Nexus stage does (standard branch or MAVEN_DEPLOY). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
…42_github_packages_pull_check # Conflicts: # Jenkinsfile Co-authored-by: acatoire <1255625+acatoire@users.noreply.github.com>
Merged |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
… Maven Central 429 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
|
…ckages Same settings as connectors (QTDI-3610) and Studio; picked up by the forked release:perform build too. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
…tors#91 is released Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| @@ -0,0 +1,2 @@ | |||
| -Daether.connector.connectTimeout=60000 | |||
| -Daether.connector.requestTimeout=300000 | |||
There was a problem hiding this comment.
I first thought that this value was huge (5min), but I see that the default value is 30 minutes :D
|
| printf ">> Maven prepare release %s (next-dev: %s; tag: %s)\n" "${releaseVersion}" "${nextVersion}" "${tagName}" | ||
|
|
||
| local release_profiles="release,ossrh,gpg2" | ||
| local release_profiles="release,gpg-keyring,gpg2" |
There was a problem hiding this comment.
a bit strange that we have now 2 gpg related profiles...
There was a problem hiding this comment.
They have different roles: gpg-keyring is the settings profile in .jenkins/settings.xml that provides gpg.keyname/gpg.passphrase (it replaces the former ossrh settings profile, which also carried the Sonatype credentials), while gpg2 is the pom profile that activates maven-gpg-plugin. Both were already needed before; only the settings profile name changed.
There was a problem hiding this comment.
okay, but to be honest it's confusing because names a quite similar
is it possible to find a better name?
it's optional
There was a problem hiding this comment.
Agreed, it is confusing. It is optional so I did not change it in this PR. I will not track it in a Jira work item for now.
| <!-- TODO QTDI-3642: once Talend/connectors#91 is released, move the IT component to a jdbc version whose pom uses hikari-cp, then remove this HikariCP exclusion. --> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.zaxxer</groupId> |
There was a problem hiding this comment.
maybe create a work-item and add to backlog to remove this leftovers?
There was a problem hiding this comment.
Agreed, I will create a work item to remove these leftovers once connectors#91 is released (the TODO comment is in both IT poms).
There was a problem hiding this comment.
Update: tracked in QTDI-3836 (remove the HikariCP exclusion once connectors#91 is released). It is also documented in the PR description and by a TODO QTDI-3642 comment in both IT poms.
There was a problem hiding this comment.
TODO comment and PR description is not enough to remove those leftovers the next minute as we release the connectors version for GithubPackages
There was a problem hiding this comment.
Created the jira ticket: https://qlik-dev.atlassian.net/browse/QTDI-3836 component-runtime: remove the HikariCP exclusion from the maven plugin ITs once connectors#91 is released
| and Sonatype/OSSRH repositories. If you do it, be sure that your branch is up to date with master. | ||
| currently published by the master branch build on the GitHub Packages repository. If you do it, be sure that your branch is up to date with master. | ||
| Only to test Jenkins job evolution, never for real development work.''') | ||
| booleanParam( |
There was a problem hiding this comment.
why do we remove SONATYPE in the scope of this PR?
it's fishy
scope creep or smth else
There was a problem hiding this comment.
Not scope creep: the Sonatype/Central deploy removal is part of QTDI-3791 (releases are pushed to GitHub Packages only). The PR description was stale ('verification-only'); I updated it to cover QTDI-3642 (pull) and QTDI-3791 (push).
There was a problem hiding this comment.
he-he
you say QTDI-3791
but this PR is to QTDI-3642 =) -> almost a definition of a scope creep
anyway
Sonatype is no longer used, so the system scope dependency of component-runtime-di is not a limitation anymore: remove the separate release-zl deploy path and the maven.deploy.skip workaround. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
|


0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (62.30% Estimated after merge)
Summary
https://qlik-dev.atlassian.net/browse/QTDI-3642
Moves component-runtime from Nexus to GitHub Packages (QTDI-3642 pull, QTDI-3791 push).
Pull (QTDI-3642)
github_package_releases(https://maven.pkg.github.com/Talend/global-artifacts) is added as repository/pluginRepository, withgithub_package_*servers in.jenkins/settings.xml(GITHUB_PACKAGES_LOGIN/GITHUB_PACKAGES_TOKEN).githubPackagesCredentialsis injected viawithCredentialsin every dependency-resolving stage ofJenkinsfile,ci/Jenkinsfile-release,ci/Jenkinsfile-trivy.Push (QTDI-3791)
distributionManagementuses thegithub_packagesserver id: snapshots/qualified versions go toglobal-artifacts, releases to the packages of this repository.component-runtime-dihas asystemscope dependency that Sonatype rejected) are no longer released apart: therelease-zlprofile,release-3.1-perform-studio.shand the "Release studio modules" stage are removed.Known leftover (TODO)
talend-component-maven-plugin/src/it/uispec/pom.xmlandsrc/it/dependency/pom.xmlkeep a HikariCP exclusion. Once Talend/connectors#91 is released, move the IT component to a jdbc version whose pom uses hikari-cp and remove the exclusion (marked with aTODO QTDI-3642comment in both files). Tracked in QTDI-3836.Checklist
mvn clean verifypasses locally — not run;mvn help:effective-pomandspotless:checkonlyAI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code
AI contribution metrics
100%(82/82)100%100%(plan approved without changes)