The after-script section in the following custom pipeline is never triggered:
pipelines:
custom:
test-job:
- step:
name: Run Postman
image: alpine:3.15
script:
- apk add npm bash
- npm install -g newman
- echo "This runs"
after-script:
- echo "This doesn't run"
Although the following works:
pipelines:
custom:
test-job:
- step:
name: Run Postman
image: alpine:3.15
script:
- echo "This runs"
after-script:
- echo "This also runs"
This seems like a pipeline bug to me. Any ideas what might be causing this?