Comments (11)
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.
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.
Hey, were you able to confirm this?
from gocd-yaml-config-plugin.
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.
Thanks
from gocd-yaml-config-plugin.
@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.
@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.
Any chance of a release to address this? 0.6.1 ?
from gocd-yaml-config-plugin.
@shomodj the bug is fixed in the core. You'll need to upgrade server to version 18.1
from gocd-yaml-config-plugin.
Cool, thanks
from gocd-yaml-config-plugin.
Fixed in server 18.1+
from gocd-yaml-config-plugin.
Related Issues (20)
- RuntimeException when exporting certain pipelines HOT 3
- doesn't support branchblacklist/branchwhitelist attribute for git-feature-branch plugin HOT 1
- Move current GoCD templates into Yaml. Or find a way to reference global Yaml templates HOT 5
- Use pipeline parameters in the "approval" property HOT 3
- target_version 9 not supported in gocd 19.9.0 HOT 1
- Declaring a secret as an environement variable HOT 5
- Broken after update to 20.2 HOT 2
- is this plugin still maintained or not? HOT 1
- Pipeline Export always returns `format_version` = 3 HOT 1
- Private Github Repository material failing - Not recognizing username nor encrypted password attributes HOT 1
- Issue with export of pipeline with two materials without a name HOT 1
- Role access support for pipeline group via yaml config plugin HOT 4
- Support scm ref for config repo configuration
- Non editable parameters HOT 2
- Error exporting pipeline created using the UI. HOT 5
- Multibranch pipeline example request HOT 1
- Creating pipelines with request headers in yaml file config through API call seems wrong as it defaulted to null HOT 1
- Cannot refer elastic_profile_id to an environment variable. HOT 2
- nant_path label does not work HOT 2
- Duplicate Key error when using override feature from YAML HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocd-yaml-config-plugin.