8000 feat(tikv/tikv): add refactored jobs for LTS branches by wuhuizuo · Pull Request #3065 · PingCAP-QE/ci · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(tikv/tikv): add refactored jobs for LTS branches #3065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 9, 2024
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
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/latest/pull_integration_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'
final jobName = 'pull_integration_copr_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}/latest/${jobName}.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/latest/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For trunk branches.
pipelineJob('tikv/tikv/pull_unit_test') {
final folder = 'tikv/tikv'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/latest/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/latest/${jobName}.groovy")
scm {
git{
remote {
Expand Down
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-6.1/pull_integration_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-6.1'
final jobName = 'pull_integration_copr_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)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-6.1/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-6.1/pull_unit_test') {
final folder = 'tikv/tikv/release-6.1'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-6.1/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/release-6.1/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-6.5/pull_integration_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-6.5'
final jobName = 'pull_integration_copr_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)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-6.5/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-6.5/pull_unit_test') {
final folder = 'tikv/tikv/release-6.5'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
10000 daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-6.5/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/release-6.5/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-7.1/pull_integration_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-7.1'
final jobName = 'pull_integration_copr_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)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-7.1/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-7.1/pull_unit_test') {
final folder = 'tikv/tikv/release-7.1'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-7.1/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/release-7.1/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-7.5/pull_integration_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-7.5'
final jobName = 'pull_integration_copr_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)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-7.5/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-7.5/pull_unit_test') {
final folder = 'tikv/tikv/release-7.5'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-7.5/pull_unit_test') {
definition {
cpsScm {
lightweight(tru 427E e)
scriptPath("pipelines/tikv/tikv/release-7.5/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
41 changes: 41 additions & 0 deletions jobs/tikv/tikv/release-8.1/pull_integration_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.1'
final jobName = 'pull_integration_copr_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)
}
}
}
}
}
}
}
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-8.1/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-8.1/pull_unit_test') {
final folder = 'tikv/tikv/release-8.1'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-8.1/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/release-8.1/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
8 changes: 5 additions & 3 deletions jobs/tikv/tikv/release-8.2/pull_unit_test.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For release branches.
pipelineJob('tikv/tikv/release-8.2/pull_unit_test') {
final folder = 'tikv/tikv/release-8.2'
final jobName = 'pull_unit_test'

pipelineJob("${folder}/${jobName}") {
logRotator {
daysToKeep(30)
}
Expand All @@ -18,7 +20,7 @@ pipelineJob('tikv/tikv/release-8.2/pull_unit_test') {
definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/tikv/tikv/release-8.2/pull_unit_test.groovy")
scriptPath("pipelines/${folder}/${jobName}.groovy")
scm {
git{
remote {
Expand Down
Loading
0