concourse-slack-alert-resource
concourse-slack-alert-resource copied to clipboard
Do not send fixed on a new pipeline/job
We're using instanced pipelines to handle PRs and the alert resource sends fixed for every job in the new instance of our pipeline
Per documentation:
Fixed is a special alert type that only alerts if the previous build did not succeed.
Can we change fixed to ignore the unknown state (no previous builds) or at least add a param to ignore new jobs?
Good point! This project is on life support and minimally maintained, would you be willing to submit a PR?
So I was looking at the source code and we skip the initial build to see if the pipeline is new: https://github.com/arbourd/concourse-slack-alert-resource/blob/main/out/main.go#L83-L86
But, instanced pipelines are before my time. I assume this value is not 1
as a result. Do you have any indicators from the API you can share with me @hsiliev re: a new instance pipeline?
Hey @arbourd, that's in my todo list, but since it is happening on a side-project it might take a while to get there.