Skip to content

Commit aa257f5

Browse files
committed
Improve pipeline trigger filters
- Apply same filters for PR and CI - Exclude everything by default, only build for test framework, pipeline or specific sample changes
1 parent f8f6333 commit aa257f5

12 files changed

+267
-55
lines changed
Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Configuration/src/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-configuration.yaml
15+
- Configuration/src/ConfigurationProviders
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-configuration.yaml
27+
- Configuration/src/ConfigurationProviders
928

1029
variables:
1130
- group: 'PCFone Credentials'
1231

1332
jobs:
14-
- job: Configuration_All_Linux
15-
displayName: 'Configuration: All (Linux)'
16-
timeoutInMinutes: 90
17-
pool:
18-
vmImage: ubuntu-latest
19-
workspace:
20-
clean: all
21-
steps:
22-
- template: templates/setup-cloud-foundry-linux-steps.yaml
23-
- bash: touch reinit
24-
displayName: 'Reinit Virtual Python Environment'
25-
- bash: ./behave.sh Configuration/src/ConfigurationProviders '--stop'
26-
displayName: 'Sample -> Configuration: All'
27-
env:
28-
PYTHON: python3.10
29-
- template: templates/publish-results-steps.yaml
33+
- template: templates/cloud-foundry-job.yaml
3034
parameters:
31-
feature: ConfigurationProviders
32-
sample: All
33-
os: Linux
35+
feature: Configuration
36+
sample: ConfigurationProviders

ci/azure-pipeline-connectors-cosmosdb.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/CosmosDb/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-cosmosdb.yaml
15+
- Connectors/src/CosmosDb
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-cosmosdb.yaml
27+
- Connectors/src/CosmosDb
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-mongodb.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/MongoDb/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-mongodb.yaml
15+
- Connectors/src/MongoDb
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-mongodb.yaml
27+
- Connectors/src/MongoDb
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-mysql.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/MySql/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-mysql.yaml
15+
- Connectors/src/MySql
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-mysql.yaml
27+
- Connectors/src/MySql
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-mysqlefcore.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/MySqlEFCore/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-mysqlefcore.yaml
15+
- Connectors/src/MySqlEFCore
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-mysqlefcore.yaml
27+
- Connectors/src/MySqlEFCore
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-postgresql.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/PostgreSql/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-postgresql.yaml
15+
- Connectors/src/PostgreSql
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-postgresql.yaml
27+
- Connectors/src/PostgreSql
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-postgresqlefcore.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/PostgreSqlEFCore/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-postgresqlefcore.yaml
15+
- Connectors/src/PostgreSqlEFCore
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-postgresqlefcore.yaml
27+
- Connectors/src/PostgreSqlEFCore
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-rabbitmq.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/RabbitMQ/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-rabbitmq.yaml
15+
- Connectors/src/RabbitMQ
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-rabbitmq.yaml
27+
- Connectors/src/RabbitMQ
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-redis.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/Redis/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-redis.yaml
15+
- Connectors/src/Redis
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-redis.yaml
27+
- Connectors/src/Redis
928

1029
variables:
1130
- group: 'PCFone Credentials'

ci/azure-pipeline-connectors-sqlserverefcore.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
trigger:
22
branches:
33
include:
4-
- main
4+
- main
55
paths:
6+
exclude:
7+
- /*
68
include:
7-
- config/*
8-
- Connectors/src/SqlServerEFCore/*
9+
- behave*
10+
- Pipfile*
11+
- pyenv.pkgs
12+
- '**/*.py'
13+
- ci/templates/*.yaml
14+
- ci/azure-pipeline-connectors-sqlserverefcore.yaml
15+
- Connectors/src/SqlServerEFCore
16+
pr:
17+
paths:
18+
exclude:
19+
- /*
20+
include:
21+
- behave*
22+
- Pipfile*
23+
- pyenv.pkgs
24+
- '**/*.py'
25+
- ci/templates/*.yaml
26+
- ci/azure-pipeline-connectors-sqlserverefcore.yaml
27+
- Connectors/src/SqlServerEFCore
928

1029
variables:
1130
- group: 'PCFone Credentials'

0 commit comments

Comments
 (0)