Comments (6)
I would have expected it to be scmGit
cc @MarkEWaite
from configuration-as-code-plugin.
Yes it took a while to figure out as I had the same expectation based on the casc page that lists the properties for my Jenkins instance. I believe in the end the way I determined to trial the seemingly correct one above was by examining the XML file produced by doing manual configuration in the GUI. I'm unsure the nuance but using the versions above this is what I needed to get it working.
from configuration-as-code-plugin.
Thanks for the report.
I would not use GitSCM
as the symbol for that item in configuration as code. I'm impressed that it works for you.
The symbol displayed by "View Configuration" is scmGit
. It is much better to use the symbol displayed by "View Configuration" than to rely on something that will map GitSCM
to the expected symbol.
I've submitted a documentation update as:
from configuration-as-code-plugin.
OK thanks for the tip. Just to clarify, scmGit was not recognized as a property of unclassified despite being listed in the view configuration page. Changing to GitSCM was somehow recognized and correctly interpreted the settings I had enabled.
Can't imagine it was a just a typo as I tried scmGit several different times, but I'll poke at it one more time later today. In any case as long as it's working I'm in good shape for now and thank you for the quick look into the docs update!
from configuration-as-code-plugin.
OK thanks for the tip. Just to clarify, scmGit was not recognized as a property of unclassified despite being listed in the view configuration page. Changing to GitSCM was somehow recognized and correctly interpreted the settings I had enabled.
Please double check. I think you said earlier that the "View Configuration" page showed scmGit
. If the "View Configuration" page shows an item and that is not accepted by the configuration as code plugin, that is a very surprising bug, especially for an item as frequently used as scmGit
.
from configuration-as-code-plugin.
I confirmed that scmGit
from the "View Configuration" page does work as expected. I was also able to reproduce my issue from before and determined that it was related to the sequence of scripted commands I was using to (re)install jenkins and all plugins. Thus it seems like the documentation update in #2414 that you linked above is best. Thanks!
from configuration-as-code-plugin.
Related Issues (20)
- Snake YAML Missing function HOT 5
- `$StaplerConverterImpl` is invoked with unexpected arguments
- Nicer error page on configuration error
- CasC support DateParameter plugin?
- Reload existing configuration failure HOT 10
- Not able to configure pipeline jobs using the JCasC plugin
- No configurator for the following root elements services HOT 8
- Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : queueItemAuthenticator HOT 4
- JCasC - configure a hudson.security.SecurityRealm HOT 3
- warning popup about master migration HOT 2
- SSH private key credential is corrupted by export + import HOT 2
- Add JUnit5 Annotation support for Test Cases
- 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
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.