-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the deal with strider.json? #789
Comments
Are you using the latest version of Strider and all plugins updated? |
@knownasilya I think so, this is happening on the instance I was messing with yesterday. My assumptions is, that this is a mechanism that allows me to modify the strider configuration through a file placed into the repository, but I wanted to make sure and I think the process could be made more clear if my assumptions is valid. |
It's documented here: https://github.com/Strider-CD/strider-custom#using-striderjson |
@knownasilya Hah! Perfect. That is exactly what I was trying to do for our projects right now :D I'll take it for a spin right away. |
@knownasilya I would appreciate some help, because this isn't working at all. The But then, later, the runner will never pass the whole configuration to the plugins, only their specific configuration. And you can't target a plugin by name in How is this supposed to work? |
Okay, I think, I have a working version now: {
"merge_plugins": true,
"plugins": [
{
"id": "custom",
"prepare": ".scripts/prepare.sh",
"deploy": ".scripts/deploy.sh"
}
]
} You need the The latter then expects Unless I'm missing something, this doesn't seem like an intuitive approach. You should just be able to address plugins by name and the given configuration should be merged, just like the rest of the configuration items from |
Also, the |
Okay, so, now I have a fully working {
"merge_plugins": true,
"plugins": [
{
"id": "custom",
"enabled": true,
"showStatus": true,
"config": {
"prepare": ".scripts/prepare.sh",
"deploy": ".scripts/deploy.sh"
}
}
]
} I still think plugin configs should be merged, not replaced. This feature seems incredibly useful to me, but I feel like it's impossible for a non-developer to get. |
I didn't know that this was even possible! Nice! |
@knownasilya Actually, the complete configuration for the branch can be overridden. Now that I finally have a grasp on it, it's just awesome. Needs to be documented better IMHO though. |
@oliversalzburg maybe start something up in the wiki, and flesh it out as you know more. |
@knownasilya Will do! If you have an opinion regarding how the |
Since it's a power tool, I personally think it should override the web-ui configuration (at least for the options that you specify), otherwise it gets too complicated and hard to reason about. Also hard to explain how to configure it. |
yes that was exactly the point - you could override specific settings if I am unsure that the order makes sense though. perhaps it is better for the On Wednesday, June 3, 2015, Ilya Radchenko [email protected] wrote:
Niall O'Higgins |
@niallo The current implementation seems to be that the For simplicity, let's assume I have 2 plugins, but their order is reversed between the web-ui and And, to take it further, what happens if a plugin configuration only exists on one side? Is it inserted at the top or the end of the chain in the final config? |
Plugin configuration should override as a whole. |
@knownasilya So, that would mean dropping the |
Exactly |
While looking into other issues, I found a log message telling me
Strider config is invalid JSON for...
. And the loggedcontents
are{ message: '404 File Not Found' }
.I have no
strider.json
anywhere, so what is going on here?The text was updated successfully, but these errors were encountered: