I have created a self-hosted runner to run the bitbucket pipeline. There I want to run multiple steps or parallel on the same runner.
But only the step which has 'runs-on' tag with the label 'self.hosted' is running on the runner, other steps are running on Atlassian's infrastructure.
I don't want to add a repetitive 'runs-on' tag for each step.
Below is my current bitbucket-pipeline.yml file structure:
pipelines:
default:
- step:
runs-on:
- 'self.hosted'
- step:
name: Upload app
script:
- chmod +x appUpload.sh
- ./appUpload.sh
- parallel:
- step:
name: Build and Test
caches:
- maven
script:
- mvn clean
- mvn -B verify --file pom.xml test
after-script:
- pipe: atlassian/checkstyle-report:0.2.0
- step:
name: Security Scan
script:
- pipe: atlassian/git-secrets-scan:0.4.3