In Bitbucket Pipelines there conditional steps changesets definition
- step:
condition:
changesets:
includePaths:
- "path1/*"
- "path2/*" I'm thinking to dynamically adjust steps sequence to use negate changesets
- parallel:
- step:
name: clear cache
condition:
changesets:
includePaths:
- "path1/*"
- step:
name: Lint
condition:
changesets:
includePaths:
- "path1/*"
- parallel:
- step:
name: Deploy
- step:
name: Lint
condition:
NOchangesets:
includePaths:
- "path1/*"
The logic is like
If has clear cache on selected changesets triggered
Do Lint togather
Else // no changesets trigger Lint goes to next parallel steps
Do Lint in Deployment