Joseph Petersen
739cc3025d
Close those file handles 😅 ( #1398 )
2020-05-24 23:16:48 +02:00
Joseph Petersen
28622da826
Allow configuring max aliases for a collection ( #1375 )
2020-05-24 22:29:23 +02:00
Joseph Petersen
1dba3f819d
Ignore unknown root elements starting with `x-` ( #1379 )
...
This allows you to write YAML anchors at the root leveling if the key starts with `x-`
2020-05-24 16:24:49 +02:00
Warren Scott
af2bdf4c7d
Add support for symbolic linked directories ( #1372 )
2020-05-06 11:49:38 +01:00
Joseph Petersen
f8dedcb8e5
set category name to Configuration for Jenkins v2.226+ ( #1358 )
2020-04-15 09:14:31 +02:00
Francisco Javier Fernandez
04ef319f72
[JENKINS-51856] Apply configuration before the jobs are loaded ( #1262 )
2020-03-28 10:54:45 +00:00
Emilio Escobar
62aff29072
Extract snakeyaml to an API plugin ( #1332 )
2020-03-24 09:41:20 +01:00
Tim Jacomb
ddee146d17
Allow users with Overall/SystemRead permission to view configur… ( #1296 )
2020-03-02 17:02:04 +00:00
Tim Jacomb
dcd748d651
Bump baseline jenkins core to 2.222 for milestones / system rea… ( #1293 )
2020-02-29 15:08:11 +00:00
James Nord
8807f0af5f
Add a configurable delay to avoid race condition in initializer ( #1204 )
...
* add a configurable delay to avoid race condition in initializer
the initializer needs to wait until Jenkins has loaded.
Until Jenkins has more milestones add a configurable delay before configuring from code
* Add some documentation
* Update README.md
Co-Authored-By: Tim Jacomb <t.jacomb@kainos.com>
* Apply suggestions from code review
Address typos and doc fixes from review
Co-Authored-By: Evaristo Gutiérrez <egutierrez@cloudbees.com>
2019-11-26 11:32:54 +00:00
Emilio Escobar
cf4c8eb978
Make the `io.jenkins.plugins.casc.ConfigurationAsCode` API avai… ( #1203 )
...
* [issue-1202] Removed ConfigurationAsCode restriction
* Added restriction to doXX and public methods
* All public methods should be restricted.
2019-11-25 18:11:46 +00:00
Zhao Xiaojie
e10b6ef79e
Fix config file list always contain one item
2019-11-05 08:50:15 +01:00
Joseph Petersen
96a3470a0f
close yaml reader after use 😰 ( #1183 )
2019-10-30 09:56:11 +01:00
Loris Securo
93c9e8ec4e
Change log level to WARN when configuration sources could not b… ( #1131 )
2019-10-05 18:19:48 +01:00
Sladyn
b167630cdc
Remove old jelly schema and usages ( #1069 )
2019-09-20 07:29:32 +01:00
Sladyn
73f59591c2
JCasC JSONSchema Generation and Testing ( #980 )
2019-09-12 07:25:20 +01:00
Smasherr
94a2a73095
Fix too late initialization of secret sources ( #1006 )
2019-08-25 20:45:03 +02:00
Joseph Petersen
21150313cd
Move vault code to hashicorp vault plugin, move tests to integrations ( #970 )
2019-08-24 02:29:28 +02:00
Joseph Petersen
f72058445c
Fix codacy issues ( #977 )
...
* use `-` list marker
* uncomment assert
* avoid unused variables
* Fields should be declared at the top of the class
* Remove duplicate ssh-credentials in pom.xml
* Optimize imports
* These nested if statements could be combined
* Document empty method body
* Misspelled JUnit setUp method
* Unnecessary use of fully qualified name
* Avoid reassigning parameters
* Too many consecutive blank lines
* Suppress unused
* Avoid unused private field
* Avoid unused imports
* Add missing switch break and default
* Avoid throwing raw exception types
* JUnit tests should include assert()
* Remove unused private methods
* Remove unused imports
* Remove unused context.lookup
* fix integrations upper-bound dependencies
* scope provided for instance identity
2019-08-07 16:48:26 +02:00
Evaristo Gutiérrez
1c531c1a46
[SECURITY-1290]
2019-07-29 11:03:57 +02:00
Joseph Petersen
0620dea984
support multi-line string export using literal style ( #941 )
2019-07-09 22:30:48 +02:00
rudolfwalter
5a35d8d802
Properly export floating-point values ( #940 )
2019-07-09 22:19:35 +02:00
rudolfwalter
7e48f15cfd
Do not fail Windows-style path validation. ( #915 )
...
Co-Authored-By: Tim Jacomb <t.jacomb@kainos.com>
2019-06-06 18:34:08 +02:00
Joseph Petersen
e2b5d31f8c
prefer environment variable over global config for config file path ( #896 )
2019-05-27 22:46:28 +02:00
rjbwtr
b15e99f95d
Sort the configuration files for ordered loading of config ( #880 )
2019-05-09 10:58:31 +01:00
Tim Jacomb
727c976d13
Add view configuration feature ( #836 )
2019-04-19 15:38:36 +02:00
Daniel Beck
be00f83ba4
Submit form validation via POST ( #842 )
2019-04-19 15:05:54 +02:00
Daniel Beck
34d6618abd
Fix NPE with some exceptions in form validation ( #840 )
2019-04-19 15:05:28 +02:00
Mike Glazer
14e05f4d8a
Allow loading of a single file in a hidden folder ( #834 )
2019-04-19 15:02:49 +02:00
Joseph Petersen
bdb01f77d9
add checkstyle ( #815 )
2019-04-01 19:39:21 +02:00
Joseph Petersen
006f76c011
code cleanup ( #812 )
...
* code cleanup
* Not a redundant cast on JDK 8
2019-03-31 23:55:48 +02:00
Joseph Petersen
824139f9cc
support building against recent Jenkins LTS and JDK 11 ( #808 )
...
Here is our checklist for contributors. No hard requirement here, just a reminder
- [x] Please describe what you did
Limit build to Linux! Build with 2.164.1 and JDK11
- [ ] Link to issue you're working on if there's a relevant one
- [ ] Did you provide a test-case to demonstrate feature actually works / issue is fixed ?
- [ ] Please also consider adding a line to [CHANGELOG.md](https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/CHANGELOG.md )
2019-03-30 13:21:30 +01:00
Joseph Petersen
46dd452244
Use NonNull and CheckForNull from SpotBugs ( #791 )
2019-03-29 00:59:00 +01:00
Joseph Petersen
214089b44a
YAML Sources code cleanup ( #792 )
...
* fix appending sources duplication
* Implicit YamlSource Type
2019-03-28 05:54:33 +01:00
Joseph Petersen
10c6b7c47a
VaultSecretSource ( #775 )
...
* implement Secret Source init
* Update test to work with Secret Source init
* use orElseGet to only warn when CASC_VAULT_PATH is used
* Remove unnecessary rule
* Delete temp file after class run
* Rerun CI
2019-03-13 08:44:33 +01:00
readerx
e86574c839
recursive CASC_JENKINS_CONFIG file search, exclude hidden folders ( #753 )
...
fixes #629
fixes #751
2019-03-08 06:31:12 +01:00
René Scheibe
d470685bf3
Trim file/URL input in HTML form on "configuration-as-code" page ( #768 )
...
This improves the user experience.
Without trimming, the POST request on /jenkins/configuration-as-code/replace
resulted in an HTTP 500
2019-03-07 22:24:01 +01:00
René Scheibe
4ae305f2c9
Consistent logger usage
...
Always using `private static final Logger LOGGER`.
2019-03-05 22:00:28 +01:00
René Scheibe
8a9ac35575
Fix typos
2019-03-05 22:00:28 +01:00
René Scheibe
6d6e8ade47
Remove unused imports
2019-03-05 22:00:28 +01:00
Nicolas De loof
480e526683
Do'nt recurse in subdirectories searching for yaml files ( #629 )
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2018-11-01 09:44:48 +00:00
Jeff Knurek
a8f3377c56
catch illegal arg exception when using ui form
2018-10-25 16:01:34 +02:00
Nicolas De Loof
a70b2c809c
Merge remote-tracking branch 'origin/595-regression-in-search-for-yml'
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2018-10-19 15:31:00 +02:00
Bue Petersen
1426f77a2e
Better implementation and some testing for #595
2018-10-19 15:14:22 +02:00
Bue Petersen
6e3e47c9fa
#595 Better impl and testing in progress
2018-10-19 15:06:44 +02:00
Bue Petersen
9639adb352
Quick fix for #595 searching for YML files
2018-10-19 13:34:19 +02:00
Nicolas De Loof
3fee9fa882
also support symlinks
...
fix #425
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2018-10-12 17:04:42 +02:00
Nicolas De Loof
f8e00b15fe
1.0 released, API is not Beta anymore
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2018-09-26 08:57:46 +02:00
Nicolas De Loof
f6b7ac3b58
impersonate as SYSTEM to apply configuration
...
close #535
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2018-09-25 11:53:34 +02:00
Jesse Glick
bd4959a88a
ConfigurationAsCode.getBundledCasCURIs was broken. ( #509 )
2018-09-12 09:27:57 +02:00