Skip to content

Commit

Permalink
feat(tiflash&tikv): split release 8.5 jobs for tiflash and tikv (#3197)
Browse files Browse the repository at this point in the history
split release 8.5 jobs for tiflash and tikv.

---------

Signed-off-by: purelind <purelind@gmail.com>
  • Loading branch information
purelind authored Nov 1, 2024
1 parent 436da4b commit 5b82f93
Show file tree
Hide file tree
Showing 23 changed files with 2,524 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/pingcap/tiflash/release-8.5/aa_folder.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
folder('pingcap/tiflash/release-8.5') {
description("Folder for pipelines of pingcap/tiflash repo for v8.5")
}
39 changes: 39 additions & 0 deletions jobs/pingcap/tiflash/release-8.5/merged_build.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release-8.5 branches.
pipelineJob('pingcap/tiflash/release-8.5/merged_build') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
// priority(0) // 0 fast than 1
githubProjectUrl("https://github.com/pingcap/tiflash")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflash/release-8.5/merged_build.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
39 changes: 39 additions & 0 deletions jobs/pingcap/tiflash/release-8.5/merged_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release-8.5 branches.
pipelineJob('pingcap/tiflash/release-8.5/merged_unit_test') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
// priority(0) // 0 fast than 1
githubProjectUrl("https://github.com/pingcap/tiflash")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflash/release-8.5/merged_unit_test.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
39 changes: 39 additions & 0 deletions jobs/pingcap/tiflash/release-8.5/pull_integration_test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release-8.5 branches.
pipelineJob('pingcap/tiflash/release-8.5/pull_integration_test') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
// priority(0) // 0 fast than 1
githubProjectUrl("https://github.com/pingcap/tiflash")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflash/release-8.5/pull_integration_test.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
39 changes: 39 additions & 0 deletions jobs/pingcap/tiflash/release-8.5/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release-8.5 branches.
pipelineJob('pingcap/tiflash/release-8.5/pull_unit_test') {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC")
}
properties {
// priority(0) // 0 fast than 1
githubProjectUrl("https://github.com/pingcap/tiflash")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflash/release-8.5/pull_unit_test.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
3 changes: 3 additions & 0 deletions jobs/tikv/tikv/release-8.5/aa_folder.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
folder('tikv/tikv/release-8.5') {
description("Folder for pipelines of tikv/tikv repo for v8.5")
}
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-8.5/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
final folder = 'tikv/tikv/release-8.5'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
parameters {
// Ref: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
stringParam("BUILD_ID")
stringParam("PROW_JOB_ID")
stringParam("JOB_SPEC", "", "Prow job spec struct data")
}
properties {
buildFailureAnalyzer(false) // disable failure analyze
githubProjectUrl("https://github.com/tikv/tikv")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
Loading

0 comments on commit 5b82f93

Please sign in to comment.