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)