Giter VIP home page Giter VIP logo

Comments (7)

fewknow avatar fewknow commented on July 29, 2024

@philicious Can you help me with this? I can't seem to get it to work.

from concourse-git-bitbucket-pr-resource.

philicious avatar philicious commented on July 29, 2024

@fewknow
you could either modify the out script to be more verbose and then build/push/use it from your own registry. (remove -s -fail from the curl)
OR
run the out manually after adding some verbosity
cat test/payload| assets/out .
and the payload like

{
  "source": {
    "bitbucket_type": "cloud",
    "base_url": "https://bitbucket.org",
    "project": "foo",
    "repository": "foobar",
    "username": "peter",
    "password": "parker",
    "git": {
      "uri": "[email protected]:foo/foobar.git"
    }
  },
  "params": {
    "state": "SUCCESSFUL",
    "key": "BLA_3",
    "name": "unit test",
    "url": "http://whatever.com",
    "description": "foobar"    
  }
}

however you also need to modify in out

pr=`cat pull-request-info`
commit=`echo ${pr} | jq -r '.commit'`

and hardcode the commit hash of the latest commit in PR as that pull-request-info? file is created by the in step.

it can be a little cumbersome to debug concourse resources, but when reading the bash scripts and playing around a little, you will work it out. I went the same way when adding Bitbucket Cloud support to this resource

from concourse-git-bitbucket-pr-resource.

gmadu123 avatar gmadu123 commented on July 29, 2024

Hi Guys, did u resolve this and merged to Master? If not can you please do?

from concourse-git-bitbucket-pr-resource.

fewknow avatar fewknow commented on July 29, 2024

@gmadu123 have not fixed issue yet. Was going to test out another resource. https://github.com/mmb/concourse-bitbucket-pullrequest-resource

I would recommend trying this one as well. I will get around to this in the next few weeks.

from concourse-git-bitbucket-pr-resource.

philicious avatar philicious commented on July 29, 2024

@fewknow if you are using Bitbucket Cloud, the resource you linked wont work for you as its a fork of a resource that is only working with Bitbucket Server. (This repo here is the only one that works with Bitbucket Cloud afaik. At least I contributed that support myself last year as I found no resource that did work with Cloud but I needed that)

from concourse-git-bitbucket-pr-resource.

fewknow avatar fewknow commented on July 29, 2024

@philicious Thank you for the update. I was not aware of that and we are using cloud not server. I will look into debugging the issue above ASAP.

from concourse-git-bitbucket-pr-resource.

artamonovkirill avatar artamonovkirill commented on July 29, 2024

There's a mismatch in out params documentation and actual ones:

  • key is not mentioned in documentation example
  • name is derived from key, so the value from params is ignored

from concourse-git-bitbucket-pr-resource.

Related Issues (20)

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.