GithubHelp home page GithubHelp logo

n7mobile / concourse-bitbucket-pr Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 95 KB

Interact with pull request on BitBucket Cloud with ConcourseCI.

License: MIT License

Dockerfile 0.95% Makefile 1.09% Go 95.93% Shell 2.03%
concourse bitbucket pullrequest concourse-resource

concourse-bitbucket-pr's Issues

resource put failed

The example of the pipeline being used:

resource_types:
 - name: bitbucket-pr
   type: registry-image
   source:
     repository: n7mobile/concourse-bitbucket-pr

resources:
 - name: pull-request
   type: bitbucket-pr
   check_every: 1m
   source:
      workspace: ((bitbucket_project))
      slug: ((bitbucket_repo))
      username: ((bitbucket-username))
      password: ((bitbucket-password))
      debug: true

jobs:
  - name: check-pr
    serial: true
    plan:
    - get: pull-request
      version: every
      trigger: true
    - put: pull-request
      params:
         repo_path: pull-request
         action: set:commit.build.status
         status: INPROGRESS
         url: example.com

Resource put fails with the following error:

selected worker: concourse-worker-5995d5548d-gpv7f
calling out cmd wioth dest  /tmp/build/put
running command: %!w(*fmt.wrapError=&{resource/out: params invalid: resource/model: version path or name is empty 0xc00001c190})

PR Comment

Is there anyway to send back a comment to the Pull-Request?

Put error

When attempting to set the build status, I get this error. However, I am not able to find "resource/model: version path or name is empty" in the code. There are other "resource/model:" errors, but not the one displayed below. Is there a change that has not been tracked in git, but is in the docker image?

running command: %!w(*fmt.wrapError=&{resource/out: params invalid: resource/model: version path or name is empty 0xc00007ade0})

OAuth 2.0 support

Hi there @antrov, at some point Bitbucket Cloud added support for OAuth 2.0 to their API.

It would be nice if this resource provided an option that allows users to take advantage of this.

In my use case, I have an OAuth Consumer in Bitbucket Cloud set up for Concourse and I would like to use those credentials with this resource rather than a username and password.

Is this something you would consider merging in if I can find the time to send you a PR?

[Question] Build not triggered when additional commits arrive in Pull Request

Hi. I've set up pipeline with PR resource in its simplest form. It checks BitBucket repo every 2 minutes. When new PR arrives, Concourse build is triggered as expected and completes successfully.
Some time later I push additional commits to existing PR and expect it to trigger build again, but it does not happen.
Question: is it possible to trigger build again for newer commits? Thanks.

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.