Configure Slack alerts in SpinnakerBuild spinnaker with docker-compose, redirect to localhostHow to configure jenkins slack plugin?Enable Slack on SpinnakerSpinnaker Support for App ELB in AWSCan't see Grafana images in SlackSpinnaker clouddriver doesn't startLaravel 5.6 won't log to SlackLaravel Logging to Slack via a ProxySpinnaker delivery pipelineCan you stop one Spinnaker pipeline based on a different pipeline running?

Why isn't LOX/UDMH used in staged combustion rockets now-a-days?

Applying for mortgage when living together but only one will be on the mortgage

Help me, I hate squares!

UX writing: When to use "we"?

Planting Trees in Outer Space

Why don't short runways use ramps for takeoff?

Was Donald Trump at ground zero helping out on 9-11?

Why are prop blades not shaped like household fan blades?

Adding a (stair/baby) gate without facing walls

Using Python in a Bash Script

How can you tell the version of Ubuntu on a system in a .sh (bash) script?

How to structure presentation to avoid getting questions that will be answered later in the presentation?

What would the United Kingdom's "optimal" Brexit deal look like?

How does Asimov's second law deal with contradictory orders from different people?

How to efficiently shred a lot of cabbage?

Why do we need a voltage divider when we get the same voltage at the output as the input?

Create two random teams from a list of players

My employer is refusing to give me the pay that was advertised after an internal job move

How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?

Can you remove a blindfold using the Telekinesis spell?

Why “deal 6 damage” is a legit phrase?

How to prevent a single-element caster from being useless against immune foes?

Gold Battle KoTH

Easy way to get process information from a window



Configure Slack alerts in Spinnaker


Build spinnaker with docker-compose, redirect to localhostHow to configure jenkins slack plugin?Enable Slack on SpinnakerSpinnaker Support for App ELB in AWSCan't see Grafana images in SlackSpinnaker clouddriver doesn't startLaravel 5.6 won't log to SlackLaravel Logging to Slack via a ProxySpinnaker delivery pipelineCan you stop one Spinnaker pipeline based on a different pipeline running?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















When a spinnaker pipeline fails, we can see the following:



Spinnaker Alerts Bot APP [3:24 PM]
Stage failed for APP_NAME
Stage STAGE_NAME for APP_NAME's PIPELINE_NAME has failed

OTHER STUFF FROM NOTIFICATION CONFIG PANEL OF STAGE

Spinnaker Today at 3:24 PM


It's easy to configure the "OTHER STUFF", but what about the first 3 lines, not seeing a place in Spinnaker UI to do this, perhaps in the configuration files on server?










share|improve this question






























    0















    When a spinnaker pipeline fails, we can see the following:



    Spinnaker Alerts Bot APP [3:24 PM]
    Stage failed for APP_NAME
    Stage STAGE_NAME for APP_NAME's PIPELINE_NAME has failed

    OTHER STUFF FROM NOTIFICATION CONFIG PANEL OF STAGE

    Spinnaker Today at 3:24 PM


    It's easy to configure the "OTHER STUFF", but what about the first 3 lines, not seeing a place in Spinnaker UI to do this, perhaps in the configuration files on server?










    share|improve this question


























      0












      0








      0








      When a spinnaker pipeline fails, we can see the following:



      Spinnaker Alerts Bot APP [3:24 PM]
      Stage failed for APP_NAME
      Stage STAGE_NAME for APP_NAME's PIPELINE_NAME has failed

      OTHER STUFF FROM NOTIFICATION CONFIG PANEL OF STAGE

      Spinnaker Today at 3:24 PM


      It's easy to configure the "OTHER STUFF", but what about the first 3 lines, not seeing a place in Spinnaker UI to do this, perhaps in the configuration files on server?










      share|improve this question














      When a spinnaker pipeline fails, we can see the following:



      Spinnaker Alerts Bot APP [3:24 PM]
      Stage failed for APP_NAME
      Stage STAGE_NAME for APP_NAME's PIPELINE_NAME has failed

      OTHER STUFF FROM NOTIFICATION CONFIG PANEL OF STAGE

      Spinnaker Today at 3:24 PM


      It's easy to configure the "OTHER STUFF", but what about the first 3 lines, not seeing a place in Spinnaker UI to do this, perhaps in the configuration files on server?







      slack spinnaker






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 21:57









      OliverOliver

      16.6k4 gold badges31 silver badges51 bronze badges




      16.6k4 gold badges31 silver badges51 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1














          It's not documented, but if you edit the JSON of the notification, you can add a customMessage field, and that will override the default three-line message.



          For example, change the notifications field in your stage JSON to:



          "notifications": [

          "address": "my-slack-channel",
          "customMessage": "this will replace all three of the standard message lines, and can contain HTML",
          "level": "stage",
          "type": "slack",
          "when": [
          "stage.failed"
          ]

          ]


          and you'll see:



          Spinnaker Alerts Bot APP [3:24 PM]
          this will replace all three of the standard message lines, and can contain HTML

          Spinnaker Today at 3:24 PM





          share|improve this answer

























          • Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

            – Oliver
            Mar 27 at 4:40











          • @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

            – Chris B
            Mar 27 at 15:19











          • OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

            – Oliver
            Mar 27 at 15:35












          • So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

            – Oliver
            Mar 27 at 15:44











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366768%2fconfigure-slack-alerts-in-spinnaker%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          It's not documented, but if you edit the JSON of the notification, you can add a customMessage field, and that will override the default three-line message.



          For example, change the notifications field in your stage JSON to:



          "notifications": [

          "address": "my-slack-channel",
          "customMessage": "this will replace all three of the standard message lines, and can contain HTML",
          "level": "stage",
          "type": "slack",
          "when": [
          "stage.failed"
          ]

          ]


          and you'll see:



          Spinnaker Alerts Bot APP [3:24 PM]
          this will replace all three of the standard message lines, and can contain HTML

          Spinnaker Today at 3:24 PM





          share|improve this answer

























          • Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

            – Oliver
            Mar 27 at 4:40











          • @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

            – Chris B
            Mar 27 at 15:19











          • OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

            – Oliver
            Mar 27 at 15:35












          • So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

            – Oliver
            Mar 27 at 15:44
















          1














          It's not documented, but if you edit the JSON of the notification, you can add a customMessage field, and that will override the default three-line message.



          For example, change the notifications field in your stage JSON to:



          "notifications": [

          "address": "my-slack-channel",
          "customMessage": "this will replace all three of the standard message lines, and can contain HTML",
          "level": "stage",
          "type": "slack",
          "when": [
          "stage.failed"
          ]

          ]


          and you'll see:



          Spinnaker Alerts Bot APP [3:24 PM]
          this will replace all three of the standard message lines, and can contain HTML

          Spinnaker Today at 3:24 PM





          share|improve this answer

























          • Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

            – Oliver
            Mar 27 at 4:40











          • @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

            – Chris B
            Mar 27 at 15:19











          • OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

            – Oliver
            Mar 27 at 15:35












          • So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

            – Oliver
            Mar 27 at 15:44














          1












          1








          1







          It's not documented, but if you edit the JSON of the notification, you can add a customMessage field, and that will override the default three-line message.



          For example, change the notifications field in your stage JSON to:



          "notifications": [

          "address": "my-slack-channel",
          "customMessage": "this will replace all three of the standard message lines, and can contain HTML",
          "level": "stage",
          "type": "slack",
          "when": [
          "stage.failed"
          ]

          ]


          and you'll see:



          Spinnaker Alerts Bot APP [3:24 PM]
          this will replace all three of the standard message lines, and can contain HTML

          Spinnaker Today at 3:24 PM





          share|improve this answer













          It's not documented, but if you edit the JSON of the notification, you can add a customMessage field, and that will override the default three-line message.



          For example, change the notifications field in your stage JSON to:



          "notifications": [

          "address": "my-slack-channel",
          "customMessage": "this will replace all three of the standard message lines, and can contain HTML",
          "level": "stage",
          "type": "slack",
          "when": [
          "stage.failed"
          ]

          ]


          and you'll see:



          Spinnaker Alerts Bot APP [3:24 PM]
          this will replace all three of the standard message lines, and can contain HTML

          Spinnaker Today at 3:24 PM






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 22:29









          Chris BChris B

          5283 silver badges5 bronze badges




          5283 silver badges5 bronze badges















          • Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

            – Oliver
            Mar 27 at 4:40











          • @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

            – Chris B
            Mar 27 at 15:19











          • OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

            – Oliver
            Mar 27 at 15:35












          • So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

            – Oliver
            Mar 27 at 15:44


















          • Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

            – Oliver
            Mar 27 at 4:40











          • @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

            – Chris B
            Mar 27 at 15:19











          • OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

            – Oliver
            Mar 27 at 15:35












          • So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

            – Oliver
            Mar 27 at 15:44

















          Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

          – Oliver
          Mar 27 at 4:40





          Exciting, thx, I'll try that tomorrow then I can accept/upvote. Do you know if expressions are allowed in the customMessage string?

          – Oliver
          Mar 27 at 4:40













          @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

          – Chris B
          Mar 27 at 15:19





          @Oliver yeah, the messages will be run through the SpEL processor, so you can use expressions in them. There are a couple of extra, non-SpEL expressions you can use, too: executionId (the id of the execution) and link (the URL of the execution, deep linked to that stage)

          – Chris B
          Mar 27 at 15:19













          OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

          – Oliver
          Mar 27 at 15:35






          OK so I checked and it worked partially so +1: unfortunately the title does not get changed, ie the line in my question sample "Stage failed for APP_NAME" remains the same. The line after it contains the custom message that I wrote, and I was indeed able to use parameters from the pipeline via $ parameters['...'] . I didn't try the deep link which is there by default. Is there a way to find out what the default message string is?

          – Oliver
          Mar 27 at 15:35














          So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

          – Oliver
          Mar 27 at 15:44






          So I'm guessing that github.com/spinnaker/echo/blob/master/echo-notifications/src/… is the code for the Slack notification, it shows your customMessage, and shows that the title is hard-coded to the return value of getNotificationTitle() which always includes the Application name. I'd have to somehow override that function. in the plugin after installing spinnaker, not really an option.

          – Oliver
          Mar 27 at 15:44









          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366768%2fconfigure-slack-alerts-in-spinnaker%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현