Bitbucket pipelines does not allow you to use dot notation in variables. So I created my own elastic search docker image to include the discovery type.
- Elasticsearch 7.x.x
- https://bitbucket.org/lionslair/elasticsearch-bitbucket-pipelines (originally)
- https://github.com/empeje/elasticsearch-bitbucket
docker build -t elasticsearch-bitbucket-pipelines .
When you commit to the bitbucket repo it will then trigger the image to be rebuilt on dockerhub.
Run the container locally after building.
docker run -i -t -P elasticsearch-bitbucket-pipelines:latest /lib/systemd/systemd