Commit Graph

416 Commits

Author SHA1 Message Date
Tim Jacomb 699a96e05c
[maven-release-plugin] prepare release configuration-as-code-1.37 2020-03-29 14:47:40 +01: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 c04d963bbf
Support for additional user attributes (#1309)
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2020-03-10 11:00:40 +00:00
Tim Jacomb 02ca472857
Allow multiple symbols when importing, exporting first one (#1308)
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2020-03-10 08:18:25 +00: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
Tim Jacomb 5c78a6f5af
[maven-release-plugin] prepare for next development iteration 2020-02-28 14:37:17 +00:00
Tim Jacomb 3bc0851087
[maven-release-plugin] prepare release configuration-as-code-1.36 2020-02-28 14:37:02 +00:00
Tim Jacomb 31595ec63e
Prevent null pointer when exporting file credentials (#1282)
* Prevent nullpointer when exporting file credentials

* Use incremental version

* Reformat

* Fix enforcer

* Fix encoding

* bump credentials

Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2020-02-27 22:07:35 +00:00
Tim Jacomb 5e75962e1f
Stop exporting users and throwing nullpointer (#1280) 2020-02-21 07:36:48 +00:00
Mark Waite 8c0f417022 Correct spelling of hpi.pluginChangelogUrl tag (#1248) 2020-01-15 22:03:59 +01:00
Tim Jacomb 63d79e0d95
[maven-release-plugin] prepare for next development iteration 2020-01-11 11:08:41 +00:00
Tim Jacomb 0ce6c63dd3
[maven-release-plugin] prepare release configuration-as-code-1.35 2020-01-11 11:08:26 +00:00
Sladyn b53ea06ed7 Schema Generation for nested yml configurations (#1027) 2020-01-10 16:49:39 +00:00
Janario Oliveira 0723f982b0 Added support to export array config (#1234) 2019-12-22 22:41:44 +01:00
Tim Jacomb 6cc682ce4d
Add test-harness module + change json schema test API to return… (#1215) 2019-12-10 09:14:56 +00:00
Tim Jacomb 80e556e277
Use system authorization for reloading jcasc (#1214) 2019-12-03 10:13:07 +00:00
Sladyn 6269c593c9 Added test Framework Utility Functions For the json Schema (#1078) 2019-11-30 08:46:34 +00:00
Tim Jacomb 85b49a7d76
[maven-release-plugin] prepare for next development iteration 2019-11-26 12:40:42 +00:00
Tim Jacomb c0528a7b41
[maven-release-plugin] prepare release configuration-as-code-1.34 2019-11-26 12:40:29 +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
Tim Jacomb b4353031b7
Restore url and description in plugin pom (#1207) 2019-11-22 14:18:23 +00:00
Tim Jacomb 9fe967878e
[maven-release-plugin] prepare for next development iteration 2019-11-15 14:12:51 +00:00
Tim Jacomb 299d900d92
[maven-release-plugin] prepare release configuration-as-code-1.33 2019-11-15 14:12:38 +00:00
Zhao Xiaojie c7864838af Add unit test 2019-11-05 08:50:15 +01: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
dependabot-preview[bot] dd03ec63aa Bump flexmark-all from 0.50.40 to 0.50.42
Bumps [flexmark-all](https://github.com/vsch/flexmark-java) from 0.50.40 to 0.50.42.
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-30 08:50:01 +00:00
Smasherr c6d4c4325f Introduce a SecretSource implementation for .properties file (#1160) 2019-10-18 08:45:59 +01:00
Sladyn 551e831f37 Add Documentation for Fields in the JSON Schema (#1060) 2019-10-18 08:45:29 +01:00
bojanfilipovic b875f2b809 Deprecate misspelled Mapping.putIfNotEmpry in favor of Mapping.putIfNotEmpty (#1163)
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2019-10-14 21:26:56 +02:00
Smasherr 003d074875 Update error message in RoundTripAbstractTest (#1144) 2019-10-11 09:39:50 +01:00
Cristian R. Silva daefe4e933 Updated pom file to set Project description and URL (#1130) 2019-10-09 22:14:52 +02:00
Tim Jacomb cf3b02e2b0
[maven-release-plugin] prepare for next development iteration 2019-10-07 14:27:38 +01:00
Tim Jacomb 2f251fcd34
[maven-release-plugin] prepare release configuration-as-code-1.32 2019-10-07 14:27:25 +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
StefanSpieker 221d3908af Minor improvements to array creation and one unit test (#1122) 2019-10-03 20:48:19 +01:00
Tim Jacomb e6cd05bdff
Use schema library in test scope only (#1116)
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2019-10-03 20:39:52 +01:00
Tim Jacomb dc954bd612
[maven-release-plugin] prepare for next development iteration 2019-09-27 17:13:00 +01:00
Tim Jacomb 0067c5dbd4
[maven-release-plugin] prepare release configuration-as-code-1.31 2019-09-27 17:12:47 +01:00
Victor Martinez fba6ff39ba Move YAML examples from integration tests to the demos (#1055)
Co-Authored-By: Tim Jacomb <t.jacomb@kainos.com>
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2019-09-25 08:52:51 +02:00
dependabot-preview[bot] fd433295ba Bump gson from 2.5 to 2.8.5 (#1063)
Bumps [gson](https://github.com/google/gson) from 2.5 to 2.8.5.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.5...gson-parent-2.8.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-20 10:11:04 +02:00
Sladyn b167630cdc Remove old jelly schema and usages (#1069) 2019-09-20 07:29:32 +01:00
dependabot-preview[bot] 867bb4c1e8 Bump org.everit.json.schema from 1.3.0 to 1.5.1 (#1065)
Bumps [org.everit.json.schema](https://github.com/everit-org/json-schema) from 1.3.0 to 1.5.1.
- [Release notes](https://github.com/everit-org/json-schema/releases)
- [Commits](https://github.com/everit-org/json-schema/compare/1.3.0...1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 06:33:01 +02:00
Sladyn 73f59591c2 JCasC JSONSchema Generation and Testing (#980) 2019-09-12 07:25:20 +01:00
Tim Jacomb fc5ee937d6
Allow `@CheckForNull` annotations to override `@ParametersAreNo… (#1053)
Previously if someone had put ParametersAreNonnullByDefault on a class /
method / package-info there was no way to override and say this field
should be nullable.
2019-09-10 13:04:11 +01:00
Joseph Petersen 7043972321
[maven-release-plugin] prepare for next development iteration 2019-09-09 00:01:16 +02:00
Joseph Petersen 0578c54cf8
[maven-release-plugin] prepare release configuration-as-code-1.30 2019-09-09 00:00:58 +02:00
Tim Jacomb fa5e40be17 Fix space in logs (#1049) 2019-09-08 23:49:05 +02:00
dependabot-preview[bot] 383236e5b3 Bump vavr from 0.9.2 to 0.10.2
Bumps [vavr](https://github.com/vavr-io/vavr) from 0.9.2 to 0.10.2.
- [Release notes](https://github.com/vavr-io/vavr/releases)
- [Commits](https://github.com/vavr-io/vavr/compare/v0.9.2...v0.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-08 18:16:45 +00:00
dependabot-preview[bot] f494d06389 Bump vault from 1.10.6 to 1.12.0 (#1019)
* Bump vault from 1.10.6 to 1.12.0

* clean up enforcer rule inside plugin pom

* fix upper bound dep via dep management

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
2019-08-27 02:19:02 +02:00
Joseph Petersen b3484d8d83
[maven-release-plugin] prepare for next development iteration 2019-08-26 02:32:44 +02:00
Joseph Petersen d2c4131a4e
[maven-release-plugin] prepare release configuration-as-code-1.29 2019-08-26 02:29:59 +02:00
Joseph Petersen ed087958f5
remove vault-java-driver dependency inside plugin (#1008) 2019-08-26 00:15:27 +02:00
Joseph Petersen 2fca5ed6a9
switch url to point at GitHub (#1004)
* switch url to point at GitHub

* Begone wiki reference

* Begone CHANGELOG.md
2019-08-25 21:32:41 +02:00
Smasherr 94a2a73095 Fix too late initialization of secret sources (#1006) 2019-08-25 20:45:03 +02:00
Joseph Petersen df3fb059a2
[maven-release-plugin] prepare for next development iteration 2019-08-24 02:40:39 +02:00
Joseph Petersen 08b59ce588
[maven-release-plugin] prepare release configuration-as-code-1.28 2019-08-24 02:40:19 +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
Oleg Nenashev 5ca0ba43e8
[JENKINS-45740] - Inject plugin changelog and logo URLs into the plugin manifest (#989)
* [JENKINS-45740] - Inject plugin changelog and logo URLs into the plugin manifest

* 🤦

* Use the final metadata for Maven HPI Plugin

* Update pom.xml to the recent version
2019-08-24 00:38:14 +02:00
Oleg Nenashev 75b030b2a1 Add @timja and @oleg-nenashev to the list of maintainers in the plugin metadata (#990) 2019-08-20 14:58:42 +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
Oleg Nenashev 4d090a7ba6 [maven-release-plugin] prepare for next development iteration 2019-08-06 18:04:20 +02:00
Oleg Nenashev c66a532b6f [maven-release-plugin] prepare release configuration-as-code-1.27 2019-08-06 18:04:06 +02:00
Oleg Nenashev 322ef83f32 [SECURITY-1497] 2019-08-06 17:47:12 +02:00
Oleg Nenashev c2060e99ac [maven-release-plugin] prepare for next development iteration 2019-08-06 16:34:52 +02:00
Oleg Nenashev b2d809e193 [maven-release-plugin] prepare release configuration-as-code-1.26 2019-08-06 16:34:26 +02:00
Oleg Nenashev 7d55fdb074
Remove dependency on the interpolatd library (#972) 2019-08-06 08:37:48 +02:00
Oleg Nenashev 1009f950ba
Reduce logging level for JCasC YAML loading messages (#975)
* Reduce logging level for JCasC YAML loading messages

* Change logging levels in tests
2019-08-06 08:37:31 +02:00
Oleg Nenashev b2796033b1
Update `@since` in Javadoc for newly introduced APIs (#974) 2019-08-05 18:07:27 +02:00
Daniel Beck bf798f282e [maven-release-plugin] prepare for next development iteration 2019-07-29 12:18:14 +02:00
Daniel Beck ccf03fb0cd [maven-release-plugin] prepare release configuration-as-code-1.25 2019-07-29 12:18:02 +02:00
Oleg Nenashev 7506d50b84 [SECURITY-1458] 2019-07-29 11:15:02 +02:00
Oleg Nenashev b48a292112 [SECURITY-1446]
Co-Authored-By: Francisco Javier Fernandez Gonzalez <fjfernandez@cloudbees.com>
2019-07-29 11:13:16 +02:00
Evaristo Gutiérrez 1c531c1a46 [SECURITY-1290] 2019-07-29 11:03:57 +02:00
Oleg Nenashev 73afe3cb10 [SECURITY-1303][SECURITY-1279] 2019-07-29 10:57:59 +02:00
Oleg Nenashev 434e795cf0 [maven-release-plugin] prepare for next development iteration 2019-07-23 09:35:13 +02:00
Oleg Nenashev 7825210981 [maven-release-plugin] prepare release configuration-as-code-1.24 2019-07-23 09:32:05 +02:00
Abhyudaya Sharma a39d58b14e DataBoundConfigurator: do not throw NullPointerException with em… (#950) 2019-07-23 07:24:46 +01:00
Oleg Nenashev 90abb1eed6
Print warning when a secret variable cannot be resolved during import (#957) 2019-07-22 16:47:31 +02:00
Abhyudaya Sharma d4ee6e5606 Allow DataBoundConfigurator to convert and export `Set`s (#943)
* Allow DataBoundConfigurator to convert and export `Set`s

* Reduce nesting
2019-07-11 16:06:10 +02:00
Evaristo Gutiérrez 471aa16a97 Avoid warning to be displayed when evaluating jelly file. (#945) 2019-07-11 16:05:51 +02:00
Joseph Petersen 50e61da79a
[maven-release-plugin] prepare for next development iteration 2019-07-09 22:49:20 +02:00
Joseph Petersen e7017f2d5e
[maven-release-plugin] prepare release configuration-as-code-1.23 2019-07-09 22:49:10 +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 0ce51e6111 Allow partial selection in export viewer. (#936) 2019-07-03 15:23:41 +02:00
Joseph Petersen eb9f9a1141
[maven-release-plugin] prepare for next development iteration 2019-06-29 13:44:26 +02:00
Joseph Petersen d4221503c0
[maven-release-plugin] prepare release configuration-as-code-1.22 2019-06-29 12:49:38 +02:00
Sladyn 0153afc1b7 Added Expected params (#930)
Co-authored-by: Joseph Petersen <josephp90@gmail.com>
Co-authored-by: Tim Jacomb <timjacomb1+github@gmail.com>
2019-06-29 12:23:37 +02:00
Sladyn 1547698cc3 Prevent failure of `ConfigurationAsCodeTest.java#init_test_from_accepted_sources()` when building on Windows (#929)
* Added Exception and assumed False

* Changed Exception to IOException

* Added Explanation for AssumeFalse method on windows

Co-Authored-By: Tim Jacomb <t.jacomb@kainos.com>

* Added throw exception to syslink test

Added a throw statement to syslink test so that the error can be propogated on both linux and windows system.
2019-06-26 19:20:26 +02:00
Oleg Nenashev 6ab460cb5a [JENKINS-57604] - HeteroDescribableConfigurator now properly matches descriptors for subclass fields, e.g. for Git plugin's SCM Browsers (#932) 2019-06-26 15:10:57 +02:00
Tim Jacomb 15dd652063
[JENKINS-57122] - Add blacklist for defaultProperties on tools (#925) 2019-06-25 08:22:43 +01:00
Oleg Nenashev c0dfdfbca0 [maven-release-plugin] prepare for next development iteration 2019-06-21 00:38:46 +02:00
Oleg Nenashev b643087233 [maven-release-plugin] prepare release configuration-as-code-1.21 2019-06-21 00:36:52 +02:00
Abhyudaya Sharma 6311ebf886 [JENKINS-57928] Allow configuring JMH benchmarks using CASC (#921) 2019-06-18 10:00:47 +02:00
Tim Jacomb 0e1ec121dd
[maven-release-plugin] prepare for next development iteration 2019-06-07 13:54:40 +01:00
Tim Jacomb c2ff05038a
[maven-release-plugin] prepare release configuration-as-code-1.20 2019-06-07 13:50:20 +01:00