Git Product home page Git Product logo

concourse-resources's Introduction

concourse-resources's People

Contributors

arekmano avatar lann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

concourse-resources's Issues

Add metadata to gerrit 'in' script

There is some metadata that would be useful.

the git-resource has:

  • commit
  • author
  • author_date
  • branch
  • message

Additionally, some gerrit specific:

  • labels
  • Owner
  • Assignee
  • Reviewers
  • Project
  • Topic
  • Patch Set
  • Change ID

DNS - Resolve fails

2018/02/27 20:45:18 error processing check request: error querying for changes: HTTP status 503 Service Unavailable;
...

Unable to determine IP address from host name gerrit

error.txt

resource-type image anavailable

It is no longer possible to reference docker image: us.gcr.io/concourse-resources/gerrit-resource
Will there be any replacer?

README example does not work

When I base myself off the configuration example found in the README. configuration uploading generates an error within Concourse.

Reproduction Steps

Configuration file used

resource_types:
- name: gerrit
  type: docker-image
  source:
    repository: us.gcr.io/concourse-resources/gerrit-resource

resources:
- name: main-gerrit
  type: gerrit
  source:
    url: https://{{GERRIT_URL}}/
    query: status:open project:{{PROJECT_NAME}}
    username: {{USERNAME}}
    password: {{PASSWORD}}

jobs:
- name: Test-CI
  plan:
  # Trigger this job for every new patch set
  - get: main-gerrit
    version: every
    trigger: true

  - task: ls-it
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: {repository: ubuntu}
      run:
        path: ls

  # After a successfuly build, mark the patch set Verified +1
  - put: main-gerrit
    message: CI passed!
    labels: {Verified: 1}

Error message

error: invalid configuration:
unknown/extra keys:
  - jobs[0].plan[2].labels
  - jobs[0].plan[2].message

Request: Using concourse metadata in the Gerrit output message

Concourse provides Metadata access to Resources in the form of environment variables. It would be neat if we could use these in the output messages for the Gerrit resource.

Having the configuration look something like this:

put: example-gerrit
params:
  repository: example-gerrit
  message: CI passed! http://URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_ID
  labels: {Verified: 1}

output the following message:

CI passed! http://URL/teams/example_team/pipelines/example_pipleine/jobs/example_job/builds/1

Similar functionality has been added to the email resource here

How to only be triggered by master, not by refs/for/master

Hi,

I have 2 Gerrit resources that follow the Master branch and the open Code-Reviews (refs/for/master).

Unfortunately, sometimes gerrit-master gets triggered by commits pushed to refs/for/master, which evidently haven't been merged into master and gerrit-code-review doesn't pick up new commits pushed to refs/for/master

I have read through Gerrit's query documentation but so far none of the related operators seem to do the trick: is: status: branch: ref:

- name: gerrit-master
  type: gerrit
  source:
    query: project:<PROJECT> branch:master
    ...
    
- name: gerrit-code-review
  type: gerrit
  source:
    query: project:<PROJECT> is:open
    ...

Any advice on how to configure the resource is appreciated,

Thanks in advance

Pass credentials to allow git pull in tasks

Hi,

currently we try to rebase a commit fetched by gerrit resource against master. The commit rebase is done in a separate task. Unfortunately credentials and git metadata aren't passed along the sources which made git pulling to end with an error.

The change is about passing git metadata and credentials along the sources.

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.