GithubHelp home page GithubHelp logo

mikemimik / bitbucket-build-notification-resource Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 20 KB

Bitbucket build notification resource for concourse

JavaScript 100.00%
concourse concourse-ci concourse-resource bitbucket notifications build

bitbucket-build-notification-resource's Introduction

Bitbucket Build Notification Resource For Concourse

This resource sends a build status payload to bitbucket to signify the status of a commit.

Source Configuration

  • username: Required. Username to bitbucket account with access to the repository being worked with.
  • password: Required. Password (or App Password) to bitbucket account with access to the repository being worked with.

Behavior

CHECK

no-op function

IN

no-op function

OUT

Parameters

  • status: Required. Can be one of [ 'INPROGRESS', 'SUCCESSFUL', 'FAILED', 'STOPPED' ]
  • project: Required. Bitbucket repository owner (organization account slug, or user account slug).
  • repository: Required. Bitbucket repository slug.

Examples

Resource Type:

resource_types:
- name: bitbucket-build-notification-resource
  type: docker-image
  source:
    repository: mperrotte/bitbucket-build-notification-resource

Resource:

resources:
- name: build-notify
  type: bitbucket-build-notification-resource
  source:
    username: ((bitbucket-username))
    password: ((bitbucket-password))
resources:
- name: pipeline-generator
  type: pipeline-resource
  source:
    target: http://localhost:8080
    teams:
    - name: main
      username: concourse
      password: changeme
    - name: other_team
      username: other_concourse
      password: other_changeme

Plan usage

plan:
- get: some-git-resource
- task: build-testing
  file: some-git-resource/task/file.yml
  on_success:
    put: build-notify
    params:
      status: SUCCESSFUL
      project: ((bitbucket-repository-owner))
      repository: ((bitbucket-repository-name))
  on_failuer:
    put: build-notify
    params:
      status: FAILED
      project: ((bitbucket-repository-owner))
      repository: ((bitbucket-repository-name))
  on_abort:
    put: build-notify
    params:
      status: STOPPED
      project: ((bitbucket-repository-owner))
      repository: ((bitbucket-repository-name))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.