Giter Club home page Giter Club logo

Comments (11)

tomzo avatar tomzo commented on June 14, 2024

You can see how to use whitelist under here. You either specify whitelist or blacklist.

What do you mean by ?

invert_filter is not set to true when using whitelist

How did you configure pipeline material? What do you expect from whitelist.

from gocd-yaml-config-plugin.

shomodj avatar shomodj commented on June 14, 2024

gocd version: 17.12.0
material type: hg

image_nexus:
    group: images
    materials:
      xxx:
        hg: ssh://[email protected]/xxx
        whitelist:
          - images/nexus/**/*

curl to get pipeline settings

  "materials": [
    {
      "type": "hg",
      "attributes": {
        "url": "ssh://[email protected]/xxx",
        "destination": null,
        "filter": {
          "ignore": [
            "images/nexus/**/*"
          ]
        },
        "invert_filter": false,
        "name": "xxx",
        "auto_update": true
      }
    }
  ],

now lets try blacklist

  image_nexus:
    group: images
    materials:
      xxx:
        hg: ssh://[email protected]/xxx
        blacklist:
          - images/nexus/**/*

curl

  "materials": [
    {
      "type": "hg",
      "attributes": {
        "url": "ssh://[email protected]/xxx",
        "destination": null,
        "filter": {
          "ignore": [
            "images/nexus/**/*"
          ]
        },
        "invert_filter": false,
        "name": "xxx",
        "auto_update": true
      }
    }
  ],

on whitelist, invert_filter should be true, I have tried the same setup manually using UI and it works as expected, I have a bunch of docker images and they all rebuild even if I change only one, whitelist should prevent this

from gocd-yaml-config-plugin.

shomodj avatar shomodj commented on June 14, 2024

Hey, were you able to confirm this?

from gocd-yaml-config-plugin.

tomzo avatar tomzo commented on June 14, 2024

I started looking at this, but then ran into problems into getting intellij working on gocd gradle project due to some silly errors.
I need to debug both server and plugin to get why this is not working. I am sure whitelist works fine on git, because it's part of tests. No clue why it would not work on hg. But that API response is certainly unexpected.

from gocd-yaml-config-plugin.

shomodj avatar shomodj commented on June 14, 2024

Thanks

from gocd-yaml-config-plugin.

arvindsv avatar arvindsv commented on June 14, 2024

@tomzo You know this code best, but this line seems to be missed here. As you can see in the next line, invertFilter is always set to false.

from gocd-yaml-config-plugin.

tomzo avatar tomzo commented on June 14, 2024

@arvindsv thanks, that was it.
The fix was easy, but I've spent about 2 hours trying to figure out why I cannot import project to intellij. Apparently older version 2017.1 does not work with gradle 4.x, at least for GoCD.
The PR is testing gocd/gocd#4191 , I'll merge once it passes.

from gocd-yaml-config-plugin.

shomodj avatar shomodj commented on June 14, 2024

Any chance of a release to address this? 0.6.1 ?

from gocd-yaml-config-plugin.

tomzo avatar tomzo commented on June 14, 2024

@shomodj the bug is fixed in the core. You'll need to upgrade server to version 18.1

from gocd-yaml-config-plugin.

shomodj avatar shomodj commented on June 14, 2024

Cool, thanks

from gocd-yaml-config-plugin.

tomzo avatar tomzo commented on June 14, 2024

Fixed in server 18.1+

from gocd-yaml-config-plugin.

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.