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