Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .jenkins/scripts/docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ dockerBuild() {
mvn package "${_JIB_GOAL}" \
--file "images/${_IMAGE}-image/pom.xml" \
--define docker.talend.image.tag="${_TAG}" \
--settings .jenkins/settings.xml \
$skip_for_docker_build

if [[ ${_IS_LATEST} == 'true' ]]; then
mvn package "${_JIB_GOAL}" \
--file "images/${_IMAGE}-image/pom.xml" \
--define docker.talend.image.tag=latest \
--settings .jenkins/settings.xml \
$skip_for_docker_build
fi
}
Expand Down
26 changes: 25 additions & 1 deletion .jenkins/scripts/release/release-2-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,31 @@ main() {

printf ">> Maven prepare release %s (next-dev: %s; tag: %s)\n" "${releaseVersion}" "${nextVersion}" "${tagName}"

local release_profiles="release,ossrh,gpg2"
# The documentation module generates tracked files (antora.yml, package-lock.json)
# from the project version. Build and commit them now, otherwise the tag keeps stale values and
# tags with the same antora version make the documentation site build fail (duplicate nav).
# The phase is process-sources on purpose: it is enough for antora.yml. The generated_*.adoc files
# need the compile and process-classes phases and are only regenerated by release-5. They are
# not in the tag. Only the version links in generated_sample-index.adoc can be old on a
# maintenance branch.
printf ">> Regenerate documentation files before tagging\n"
# The antora version is the SNAPSHOT version without suffix, which is the release version.
mvn clean process-sources --batch-mode \
--projects documentation \
--define skipTests \
--define invoker.skip=true \
--define checkstyle.skip \
--define enforcer.skip=true \
--define rat.skip \
--settings .jenkins/settings.xml \
"${extraBuildParams[@]}"

if ! grep -qE "^version: '${releaseVersion%%-*}'$" documentation/src/main/antora/antora.yml; then
printf "WARN: antora.yml version is not %s\n" "${releaseVersion%%-*}" >&2
fi
git commit -a -m "[jenkins-release] update generated documentation for ${releaseVersion}" || true

local release_profiles="release,gpg-keyring,gpg2"

mvn release:prepare \
--batch-mode \
Expand Down
4 changes: 2 additions & 2 deletions .jenkins/scripts/release/release-3-perform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ main() {

printf ">> Maven perform release"

local release_profiles="release,ossrh,gpg2"
local release_profiles="release,gpg-keyring,gpg2"

# Release artifacts are published on the packages of this repository (QTDI-3791), see the release profile.
mvn release:perform \
--batch-mode \
--errors \
--define arguments="-DskipTests -DskipITs -Dinvoker.skip=true -Dcheckstyle.skip -Denforcer.skip=true -Drat.skip" \
--settings .jenkins/settings.xml \
--activate-profiles "$release_profiles" \
"${extraBuildParams[@]}"

}

main "$@"
57 changes: 0 additions & 57 deletions .jenkins/scripts/release/release-3.1-perform-studio.sh

This file was deleted.

11 changes: 10 additions & 1 deletion .jenkins/scripts/release/release-5-prepare-next-iteration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,22 @@ main() {
git checkout "${branchName}"

# "|| true" is here to avoid blocking the jenkins pipeline in case of failure
mvn clean install --define skipTests \
mvn clean install --settings .jenkins/settings.xml \
--define skipTests \
--define invoker.skip=true \
--define checkstyle.skip \
--define enforcer.skip=true \
--define rat.skip \
"${extraBuildParams[@]}" || true

# The install above ignores failures, so check that the documentation module regenerated antora.yml.
# A version left identical to the release tag makes the documentation site build fail (duplicate nav).
local devVersion
devVersion="$(grep -m1 -oP '(?<=<version>)[^<]+' pom.xml || true)"
if ! grep -qE "^version: '${devVersion%%-*}'$" documentation/src/main/antora/antora.yml; then
printf "WARN: antora.yml version is not %s, the documentation build was probably skipped; fix it manually\n" "${devVersion%%-*}" >&2
fi

printf "Push to github\n"
# "|| true" is here to avoid blocking the jenkins pipeline when there is nothing to commit
git commit -a -m "Updating doc for next iteration" || true
Expand Down
4 changes: 2 additions & 2 deletions .jenkins/scripts/release_legacy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ main() {
--define releaseVersion="${release}" \
--define developmentVersion="${dev_version}" \
--define arguments="-DskipTests -DskipITs -Dinvoker.skip=true" \
--activate-profiles ossrh,release,gpg2 \
--activate-profiles gpg-keyring,release,gpg2 \
${extraBuildParams} \
--settings .jenkins/settings.xml
echo ">> Maven perform release $release"
mvn release:perform \
--batch-mode \
--errors \
--define arguments="-DskipTests -DskipITs -Dinvoker.skip=true" \
--activate-profiles ossrh,release,gpg2 \
--activate-profiles gpg-keyring,release,gpg2 \
${extraBuildParams} \
--settings .jenkins/settings.xml
###
Expand Down
78 changes: 7 additions & 71 deletions .jenkins/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>central.portal</id>
<username>${env.OSSRH_USER}</username>
<password>${env.OSSRH_PASS}</password>
</server>
<server>
<id>github</id>
<username>${env.GITHUB_LOGIN}</username>
Expand All @@ -20,90 +15,31 @@
<password>${env.JIRA_PASS}</password>
</server>
<server>
<id>TalendOpenSourceRelease</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>TalendOpenSourceSnapshot</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>talend.oss.snapshots</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>talend.oss.releases</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>github_package_snapshots</id>
<id>github_packages</id>
<username>${env.GITHUB_PACKAGES_LOGIN}</username>
<password>${env.GITHUB_PACKAGES_TOKEN}</password>
</server>
<server>
<id>github_package_releases</id>
<username>${env.GITHUB_PACKAGES_LOGIN}</username>
<password>${env.GITHUB_PACKAGES_TOKEN}</password>
</server>
<server>
<id>talend.snapshots</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>talend.releases</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>talend_nexus_deployment</id>
<username>${env.NEXUS_USER}</username>
<password>${env.NEXUS_PASS}</password>
<configuration>
<timeout>30000</timeout>
</configuration>
</server>
<server>
<id>artifactory.datapwn.com</id>
<username>${env.DOCKER_USER}</username>
<password>${env.DOCKER_PASS}</password>
</server>
</servers>

<!-- QTDI-3641: Maven Central goes through the internal Artifactory cache;
the artifactory.datapwn.com server above takes its credentials from the artifactory-datapwn-credentials binding -->
<mirrors>
<mirror>
<id>maven_central_proxy</id>
<name>Maven Central Proxy</name>
<url>https://artifacts-zl.talend.com/nexus/content/repositories/central/</url>
<id>artifactory.datapwn.com</id>
<name>Internal Artifactory Maven Central cache</name>
<url>https://artifactory.datapwn.com/artifactory/maven-central-remote</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

<profiles>
<profile>
<id>ossrh</id>
<id>gpg-keyring</id>
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
<gpg.executable>gpg</gpg.executable>
Expand Down
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-Daether.connector.connectTimeout=60000
-Daether.connector.requestTimeout=300000
Loading
Loading