Skip to content

sukiyaki/horenso-reporter-ciscospark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

horenso-reporter-ciscospark

CircleCI Coverage Status MIT License

Screenshot

horenso meets Cisco Spark ❤️

This plugin is strongly inspired by horenso-reporter-slack.

Usage

$ go get github.com/sukiyaki/horenso-reporter-ciscospark/cmd/horenso-reporter-ciscospark
$ HRS_SPARK_TOKEN="YOUR_SPARK_TOKEN" HRS_SPARK_ROOMID="YOUR_ROOM_ID" horenso -r ./horenso-reporter-ciscospark -- [command]
$ HRS_SPARK_TOKEN="YOUR_SPARK_TOKEN" HRS_SPARK_TO_EMAIL="YOUR_EMAIL_ADDR" horenso -r ./horenso-reporter-ciscospark -- [command]

Environment Variables

  • HRS_SPARK_TOKEN(required)
  • HRS_SPARK_ROOMID(required when HRS_SPARK_TO_EMAIL is not provided)
    • The ID of the recipient
    • This ID could be obtained at here
  • HRS_SPARK_TO_EMAIL(required when HRS_SPARK_ROOMID is not provided)
    • The email address of the recipient
  • HRS_SPARK_ITEMS(optional defauls: all):
    • Select reporting items by Comma-Separated Values
    • example: Stdout,Stderr,ExitCode
    • supported items
      • Command
      • CommandArgs
      • Output
      • Stdout
      • Stderr
      • ExitCode
      • Result
      • Pid
      • StartAt
      • EndAt
      • Hostname
      • SystemTime
      • UserTime
  • HRS_SPARK_NOTIFY_EVERYTHING (optional defauls: 1)
    • Set 0 if you don't want to raise the report when the command exited with code: 0

License

MIT

Author

Masaki Tagawa (sukiyaki project)