In the example below there are two notifications (Slack combines messages from the same sender to save space). ![]() It is also possible to emit success notifications. It is possible to generate dynamic messages for your notifications. In the preceding section the notification text was hardcoded within the pipeline-slack-failures.yml file. Your lovely failure will now appear as a notification in Slack: So we will store the URL in a pipeline-specific location in Credhub (remember to run bucc credhub in your bucc project to re-login to Credhub):įly -t bucc set-pipeline -p slack-notifications -c pipeline-slack-failures.ymlįly -t bucc trigger-job -j slack-notifications/test -w Triple click to select, then copy it to your clipboard.Įach pipeline might have its own ((slack-webhook)) parameter to send notifications to different Slack channels. On the next page, you will be given a unique secret URL. For this tutorial, choose your own personal channel "Privately to you".Ĭlick "Add Incoming WebHooks integration" button. For example, for concourseci organization:Ĭhoose a public or private channel into which your notifications will be delivered. ![]() Visit the /services/new/incoming-webhook for your Slack organization. In the examples below I will use the defunct organization. ![]() First you'll need to create an organization or be invited. Resources : - name : notify type : slack-notification source : url : ((slack-webhook)) Join a Slack organization ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |