Skip to content
Success

Changes

Summary

  1. fix(pipelines): fix and use OCI_TAG_* for next-gen pipeline artifacts (commit: 2996bb9) (details)
Commit 2996bb9c55ff1a66c8eed2e0fc8c50395c3765d0 by noreply
fix(pipelines): fix and use OCI_TAG_* for next-gen pipeline artifacts (#3851)

This pull request updates several Jenkins pipeline scripts to improve
how OCI artifact tags are determined and used for various TiDB and TiCDC
integration tests. The main change is to switch from using hardcoded
branch-based tags to dynamically computed OCI tags based on the base
reference of the pull request, specifically targeting "next-gen"
releases. This enhances flexibility and ensures the correct artifacts
are fetched for both standard and "next-gen" release branches.

Key changes include:

**Dynamic OCI Tag Calculation:**
- Replaced hardcoded `TARGET_BRANCH_*` variables with `OCI_TAG_*`
variables that select tags based on whether the base ref matches
`release-nextgen-*`. If it does, the base ref itself is used; otherwise,
a default "next-gen" tag is applied (e.g., `master-next-gen`,
`dedicated-next-gen`). This logic is applied across all affected
pipeline scripts.
[[1]](diffhunk://#diff-eea030b5a2abb8b2e5e3a1be2362ce7712fc41dd2b252430b51432f9d9663366L12-R14)
[[2]](diffhunk://#diff-7c278a7e52ae6c08b00ca70ee8f001a39c9c3cdd1a3c6570aebe98fe4e1a08b9L12-R14)
[[3]](diffhunk://#diff-0d57a2a2ca36ee110a1d7deea669186d95ac684d9eb5576b9685e1856f88dbe1L14-R17)
[[4]](diffhunk://#diff-e7bf7a9625ab848ccff480a36c8f4b45957b5c082874b2d5adafbd7876054f51L14-R17)
[[5]](diffhunk://#diff-8865fe8918a1c7c538095eeca44934ff85415cb3cc5c29102fe169eda34039deL13-R16)
[[6]](diffhunk://#diff-1a998bce2e699cdc9c5f16468d783aae485d1c3f1e19f4aaaee876dab06246f1L13-R16)
[[7]](diffhunk://#diff-f3831bd92a6e08ffb23d96f223fb4f15c935109a50ddc8a95902354966468b7bL13-R16)
[[8]](diffhunk://#diff-4c7fa0a2f6e195cf0c7df02e922510771e55fb4091730e0b08b0b78d210a394fL13-R16)
[[9]](diffhunk://#diff-7fac7c78890fea63acbad3b5a333f10e6b8f52ce21cfdbc030f1e746b333576aL13-R16)

**Artifact Download Script Invocation Updates:**
- Updated all invocations of `download_pingcap_oci_artifact.sh` to use
the new `OCI_TAG_*` variables instead of the old `TARGET_BRANCH_*`
variables, ensuring the correct artifacts are downloaded for the current
test context. This affects both heavy and light integration test
pipelines for JDBC, MySQL, Kafka, Pulsar, and Storage.
[[1]](diffhunk://#diff-eea030b5a2abb8b2e5e3a1be2362ce7712fc41dd2b252430b51432f9d9663366L66-R67)
[[2]](diffhunk://#diff-7c278a7e52ae6c08b00ca70ee8f001a39c9c3cdd1a3c6570aebe98fe4e1a08b9L66-R67)
[[3]](diffhunk://#diff-0d57a2a2ca36ee110a1d7deea669186d95ac684d9eb5576b9685e1856f88dbe1L91-R96)
[[4]](diffhunk://#diff-e7bf7a9625ab848ccff480a36c8f4b45957b5c082874b2d5adafbd7876054f51L91-R96)
[[5]](diffhunk://#diff-8865fe8918a1c7c538095eeca44934ff85415cb3cc5c29102fe169eda34039deL88-R93)
[[6]](diffhunk://#diff-1a998bce2e699cdc9c5f16468d783aae485d1c3f1e19f4aaaee876dab06246f1L88-R93)
[[7]](diffhunk://#diff-f3831bd92a6e08ffb23d96f223fb4f15c935109a50ddc8a95902354966468b7bL89-R94)
[[8]](diffhunk://#diff-4c7fa0a2f6e195cf0c7df02e922510771e55fb4091730e0b08b0b78d210a394fL90-R95)
[[9]](diffhunk://#diff-7fac7c78890fea63acbad3b5a333f10e6b8f52ce21cfdbc030f1e746b333576aL90-R95)

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
(commit: 2996bb9)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_mysql_integration_heavy_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/periodics_tidb_next_gen_smoke_test.groovy (diff)
The file was modifiedpipelines/tidbcloud/cloud-storage-engine/dedicated/pull_integration_realcluster_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_integration_ddl_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/tikv/pd/latest/pull_integration_realcluster_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_storage_integration_heavy_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_br_integration_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap-qe/tidb-test/latest/pull_mysql_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_integration_realcluster_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_kafka_integration_light_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_mysql_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_kafka_integration_heavy_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap-qe/tidb-test/latest/pull_integration_jdbc_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_storage_integration_light_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/tidb/latest/pull_integration_e2e_test_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_pulsar_integration_light_next_gen/pipeline.groovy (diff)
The file was modifiedpipelines/pingcap/ticdc/latest/pull_cdc_mysql_integration_light_next_gen/pipeline.groovy (diff)