Comments (4)
We can expose a web hook to (re)run configuration-as-code on a live instance, so the yaml configuration is applied again.
We could even offer this as a custom github web-hook implementation
from configuration-as-code-plugin.
This can be implemented by calling ConfigurationAsCode#configure()
after yaml config content has been refreshed. Remaining question is to detect such change occurred.
Simplest option I have in mind is for use to expose an UnprotectedRootAction
so some external tooling can notify jenkins on update, typically
- config.yml is managed by Chef recipies
- chef agent run and updates this content
- chef recipe do notify jenkins on update
(or comparable mechanism based on kubernetes' ConfigMap, docker Config, local git clone, etc)
configuration-as-code would then track configuration file by checksum, and will actually re-configure only if some actual changes have been detected.
We could also rely on inotify
(java.nio.file.WatchService
) to re-configure immediately on file updates.
from configuration-as-code-plugin.
Suggest we first implement a ManagementLink
to offer some UI for configuration-as-code (which files where loaded, last time loader, etc) and a human friendly "reload" button.
Then we could also have various implementations for opt-in reload mechanisms:
- watch files
- SIGHUP support
- web hook
- ...
such options being manageable by configuration-as-code for sure !
from configuration-as-code-plugin.
I'm trying to find info how to trigger reloading the config via hook on github. Is this implemented? How does it work?
Figured it out, this url shema seems to work: http://jenkins.ci/configuration-as-code/replace?_.newSource=https://github.url/raw/username/jenkins-configuration-as-code/master/jenkins.yaml
from configuration-as-code-plugin.
Related Issues (20)
- Missing information how to generate/create yaml file HOT 1
- JCASC not able export create yaml with "list view swithin nested view" HOT 1
- Configuration As Code Plugin compatible with Scriptler HOT 1
- Jenkins Configuration Reload issue - ERROR 401 Unauthorized
- java.lang.IllegalArgumentException: No hudson.tools.ToolInstaller implementation found for jdkInstaller on Jenkins 2.440.1
- decodeBase64 it not working in casc secrets HOT 1
- Nonnull dependency issue on startup
- Artifact Manager on S3 - issue with loading links to the S3 artifacts HOT 3
- Working with different environments, load files specific to environment HOT 3
- Error while serving <JENKINS_URL>/configuration-as-code/viewExport
- Plugin based credentials HOT 4
- Jobs: "file" is undocumented HOT 2
- Jenkins is not starting in installation phase - bitbucket rate limiting error
- Jenkins Build Failure HOT 1
- snakeyaml java.lang.NoSuchMethodError
- Escaping variables is not documented HOT 2
- Helpers like `readFile` in JCasC YAML Fails to Load Password from File
- reload-configuration-as-code/?casc-reload-token=<token> throws HTTP/1.1 403 Forbidden HOT 5
- Incomplete support for sectioned view
- Jenkins CASC Folder Syntax: How to organise pipelinescript-defined job files into folders?
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 configuration-as-code-plugin.