For example, I have three last steps in my pipeline and I would like to have not only the message in slack but also a link to the allure report as well
prepare:
title: “Prepare report”
stage: “prepare”
image: ‘ubuntu’ # The image in which command will be executed
working_directory: “${{clone}}” # Running command where code cloned
commands:
- “cp -r -f ./allure-results $CF_VOLUME_PATH/allure-results”
All 92 report files was successfully uploaded
You can access report on: Codefresh | console
Start removing test report folder
Annotation cf_test_reporter_link was created.
How can I get this URL after every single pipeline run and post it to slack?
Thank you for your answer. The main problem is this annotation “cf_test_reporter_link”. I see it generated in the console log but unfortunately, I can’t get it and transfer it to Slack.
I need to double check if the test report is always annotating with the URL, but I believe it does. You can easily use the Codefresh CLI in a pipeline step Codefresh API · Codefresh | Docs
You need to use two steps. One with codefresh cli and cf_export to create an environment variable with the result. And one with slack that uses the result