Take an example of a following skeleton of a pipeline.
# Example
definitions:
step:
- step: &RunFlake
name: Run Flake
runs-on:
- self.hosted
- windows
script:
- git config --global core.autocrlf input
- git config --global --add safe.directory '*'
- git lfs pull
- step: &GenerateExe
name: Generate Exe
runs-on:
- self.hosted
- windows
script:
# Run your commands inside the Docker container
- git config --global core.autocrlf input
- git config --global --add safe.directory '*'
- git lfs pull
- step: &BumpRevision
name: Bump Revision
runs-on:
- self.hosted
- windows
script:
# Run your commands inside the Docker container
- git config --global core.autocrlf input
- git config --global --add safe.directory '*'
- git lfs pull
pipelines:
default:
parallel:
- step: *GenerateExe
- step: *RunFlake
branches:
develop:
- step: *GenerateExe
- step: *BumpRevision
When i put this into the Bitbucket Pipelines - Validator
It shows it as valid.
This pipeline is not valid. As when we run it the bitbucket runner throws the error as below:
The correct syntax for the parallel is as follows:
pipelines:
default:
- parallel:
- step: *GenerateExe
- step: *RunFlake
branches:
develop:
- step: *GenerateExe
- step: *BumpRevision
Notice the hypen at the front of the parallel. So is it that the validator for the pipeline cannot be trusted??
Hi @skaul
Thank you for reaching out to the community.
Unfortunately, this is currently a known issue with the Pipelines validator feature and we have a public bug ticket for it that can be located here: https://jira.atlassian.com/browse/BCLOUD-18299
You can watch and click the "This affects my team" button so that you'll be notified of any updates from our team when the bug is fixed.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.