Skip to content

Commit

Permalink
Disable triggering most IO_Direct precommit on buildSrc and core chan…
Browse files Browse the repository at this point in the history
…ge (#25612)

* Disable triggering most IO_Direct precommit on buildSrc and core change

* Add jobs to README

* Create an umbrella IO job

* Fix readme: IOs job does not have cron
  • Loading branch information
Abacn authored Feb 27, 2023
1 parent 62e9a12 commit 7db76df
Show file tree
Hide file tree
Showing 25 changed files with 221 additions and 899 deletions.
18 changes: 16 additions & 2 deletions .test-infra/jenkins/PrecommitJobBuilder.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,27 @@ class PrecommitJobBuilder {
/** Whether to trigger on new PR commits. Useful to set to false when testing new jobs. */
boolean commitTriggering = true

/**
* Whether to trigger on cron run. Useful to set jobs that runs tasks covered by
* other test suites but are deemed to triggered on pull request only.
*/
boolean cronTriggering = true

/**
* Whether to configure defaultPathTriggers.
* Set to false for PreCommit only runs on certain code path change.
*/
boolean defaultPathTriggering = true

/**
* Define a set of pre-commit jobs.
*
* @param additionalCustomization Job DSL closure with additional customization to apply to the job.
*/
void build(Closure additionalCustomization = {}) {
defineCronJob additionalCustomization
if (cronTriggering) {
defineCronJob additionalCustomization
}
if (commitTriggering) {
defineCommitJob additionalCustomization
}
Expand Down Expand Up @@ -82,7 +96,7 @@ class PrecommitJobBuilder {
'^gradle.bat$',
'^settings.gradle.kts$'
]
if (triggerPathPatterns) {
if (defaultPathTriggering && triggerPathPatterns) {
triggerPathPatterns.addAll defaultPathTriggers
}
job.with {
Expand Down
31 changes: 29 additions & 2 deletions .test-infra/jenkins/README.md

Large diffs are not rendered by default.

41 changes: 0 additions & 41 deletions .test-infra/jenkins/job_PreCommit_Java_Amqp_IO_Direct.groovy

This file was deleted.

42 changes: 0 additions & 42 deletions .test-infra/jenkins/job_PreCommit_Java_Cassandra_IO_Direct.groovy

This file was deleted.

44 changes: 0 additions & 44 deletions .test-infra/jenkins/job_PreCommit_Java_Cdap_IO_Direct.groovy

This file was deleted.

41 changes: 0 additions & 41 deletions .test-infra/jenkins/job_PreCommit_Java_Clickhouse_IO_Direct.groovy

This file was deleted.

45 changes: 0 additions & 45 deletions .test-infra/jenkins/job_PreCommit_Java_Debezium_IO_Direct.groovy

This file was deleted.

This file was deleted.

43 changes: 0 additions & 43 deletions .test-infra/jenkins/job_PreCommit_Java_HCatalog_IO_Direct.groovy

This file was deleted.

43 changes: 0 additions & 43 deletions .test-infra/jenkins/job_PreCommit_Java_Hbase_IO_Direct.groovy

This file was deleted.

Loading

0 comments on commit 7db76df

Please sign in to comment.