Skip to content
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

feat(tiflow): add trigger for new sync_diff pipeline #3392

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
38 changes: 38 additions & 0 deletions jobs/pingcap/tiflow/latest/pull_syncdiff_integration_test.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// REF: https://<your-jenkins-server>/plugin/job-dsl/api-viewer/index.html
// For trunk and latest release branches.
pipelineJob('pingcap/tiflow/pull_syncdiff_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 {
githubProjectUrl("https://github.com/pingcap/tiflow")
}

definition {
cpsScm {
lightweight(true)
scriptPath("pipelines/pingcap/tiflow/latest/pull_syncdiff_integration_test.groovy")
scm {
git{
remote {
url('https://github.com/PingCAP-QE/ci.git')
}
branch('main')
extensions {
cloneOptions {
depth(1)
shallow(true)
timeout(5)
}
}
}
}
}
}
}
12 changes: 12 additions & 0 deletions prow-jobs/pingcap/tiflow/latest-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ presubmits:
rerun_command: "/test pull-engine-integration-test"
branches: *branches

- name: pingcap/tiflow/pull_syncdiff_integration_test
agent: jenkins
decorate: false # need add this.
always_run: false
optional: true # TODO: remove this after the test is ready.
# skip_if_only_changed: "(\\.(md|png|jpeg|jpg|gif|svg|pdf)|Dockerfile|OWNERS|OWNERS_ALIASES)$" # TODO: uncomment this after the test is ready.
context: wip/pull-syncdiff-integration-test # TODO: remove wip after the test is ready.
skip_report: false
trigger: "(?m)^/test (?:.*? )?(pull-syncdiff-integration-test)(?: .*?)?$"
rerun_command: "/test pull-syncdiff-integration-test"
branches: *branches

- name: pingcap/tiflow/ghpr_verify
agent: jenkins
decorate: false # need add this.
Expand Down