We're using pipelines to run our test suite, and we have a bitbucket-pipelines.yml file like so:
image: java:8
clone:
depth: 1
definitions:
caches:
gradle: ~/.gradle
gradlewrapper: ~/.gradle/wrapper
runTaggedTests: &runTaggedTests
- step:
caches:
- gradle
- gradlewrapper
script:
- cd tests
- TESTHOST=$HOST.domain.com bash ./gradlew test -PincludeTags=$TAG
runAllTests: &runAllTests
- parallel:
- step: *runTaggedTests
variables:
TAG: testTag1
- step: *runTaggedTests
variables:
TAG: testTag2
pipelines:
custom: # triggered manually or via schedule
test-env1:
- step: *runAllTests
variables:
HOST: test-env1
test-env2:
- step: *runAllTests
variables:
HOST: test-env1
However this pipeline fails because the step is defined as a list. I think I can do this using pipes, but I'm wondering if there's a simple way to fix the definitions above to work, as I'd rather fix this file (which is familiar to all of our devs) rather than introduce custom pipes (which are unfamiliar to all of our devs) if I can.