Skip to content

cosee-concourse/slack-upload-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Upload Resource

Build Status Docker Repository on Quay

Generates names for various services using a prefix and the current version.

Source Configuration

  • SlACK_BOT_TOKEN: Required Token for Slack Bot that should be used to post messages

Behavior

out: Post messages to Slack

  • Posts a message to slack based on the command provided. To give better information on the state of the pipeline the semver version is used.

Parameters

  • version: Required Filepath to semver version file
  • command: Required The type of message slack is supposed to send. Valid Arguments are success, failure and report.
  • directory: Required if command is report Location of the html reports
  • channel: Required The channel for the message to appear in

check: no-op

  • Since this resource does not have a version itself check returns an empty JSON.

in: no-op

  • Simply returns the provided version

Example Configuration

Resource Type

- name: slack-upload
  type: docker-image
  source:
    repository: quay.io/cosee-concourse/slack-upload-resource

Resource

- name: slack
  type: slack-upload
  source: 
    SLACK_BOT_TOKEN: xoxb-1345678903412-xxxxxxxxxxxxxxxxxxxxxxxxx

Plan

  - put: slack
    params: 
      version: version/number
      command: report
      directory: junit
      channel: bot-channel
  - put: slack
    params: 
      version: version/number
      command: failure
      channel: bot-channel

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published