Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .jenkins/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
<username>${env.DOCKER_USER}</username>
<password>${env.DOCKER_PASS}</password>
</server>
<server>
<id>github_package_snapshots</id>
<username>${env.GITHUB_PACKAGES_LOGIN}</username>
<password>${env.GITHUB_PACKAGES_TOKEN}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
</servers>

<mirrors>
Expand Down
13 changes: 9 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -457,22 +461,23 @@ 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()
}
}
// Add description to job
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/']
Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1825,10 +1825,11 @@
Its overwrite the snapshotRepository with a private one.
-->
<distributionManagement>
<snapshotRepository>
<id>talend.snapshots</id>
<url>https://artifacts-zl.talend.com/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<snapshotRepository>
<id>github_package_snapshots</id>
<name>GitHub Maven Packages (snapshots)</name>
<url>https://maven.pkg.github.com/Talend/global-artifacts</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
Expand Down
Loading