summaryrefslogtreecommitdiffstats
path: root/tests/general
Commit message (Collapse)AuthorAgeFilesLines
* Auto-generated output from python-blackThanh Ha2019-09-091-1/+1
| | | | | | | | | Please review the following patch containing the code changes in the repo. This patch is a transition patch and is the auto-generated output of the python-black tool. Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Add support for two new plugins, and a new version of onekendallpcdoctor2019-07-252-0/+18
| | | | | | | | | | | Added new support for the following plugins: Perforce plugin: https://wiki.jenkins.io/display/JENKINS/Perforce+Plugin InfluxDB plugin: https://wiki.jenkins.io/display/JENKINS/InfluxDB+Plugin Added support for v3.0 of the following plugin https://wiki.jenkins.io/display/JENKINS/Priority+Sorter+Plugin Change-Id: If109863a91710c08b34dee622496e551a7b3b520
* Do not ignore global-settings-type in Maven moduleMykola Nikishov2019-01-042-0/+40
| | | | | | | | | | | | | | | settings-type parameter hides global-settings-type and makes it impossible to use settings from the file and ConfigFileProvider at the same time like: maven: settings-type: file settings: mvn/settings.xml global-settings-type: cfp global-settings: test Change-Id: Ieda05912ae8b28942d98150a51c92b2521f2b6bf Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
* Normalize newlines at end of fileSorin Sbarnea2018-06-293-3/+3
| | | | | | | | Preparatory move for adopting pre-commit hooks. Shoudl only remove newlines and spaces at end of files. Change-Id: Ia33679467c533722b9308f7e7b74be395c926428 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* bug/2002053 allow None for auth-tokenDaniel Richardson2018-05-166-0/+35
| | | | | | | auth-tokean as None type should exclude from the build job valuable for reuseing jobs that sometime need auth and othertimes don't Change-Id: I691e7dd4ff1af53efd9fac3363bce9d41038cf25
* Maven project: allow to disable trigger downstream projectsAndrea Scarpino2018-02-275-0/+5
| | | | Change-Id: Ie4af949ad686f007d3091d947ef65c670262f8d4
* Basic folder supportDarragh Bailey2017-10-234-0/+24
| | | | | | | | | | | | | | | | | Allows specifying a folder attribute for each job generated, which in turn is used when creating or uploading to place the job under the requested folder. The job name is expanded after defaults are applied, to support the attribute being defined within a set of defaults applied to a number of jobs. This in turn allows for multiple jobs with the same basename to exist, provided they are targeted at different folders. Does not support creating the folders if they do not exist. Change-Id: I8c2157c4c81087cc972a048d1b88d5f08ac65361
* Complete support of Yaml Axis PluginAntoine Musso2017-06-224-0/+96
| | | | | | | | | | | | | | | | | | | | The plugin uses a different matrix execution strategy. I have refactored the part of code assuming there is only one strategy. The previous one is known as 'default' and this change is back compatible. Drop an error whenever more than one strategy is used. Support exclude rules from either a file or inlined YAML (note in the later case the YAML will need to be a literal string). Tweak axis type documentation to reference both built-in axes and ones provided by additional plugins. Include three different examples for Yaml Axis which would help end users understand how to add support for exclusion and or specificy the exclusion as inlined Yaml. Change-Id: I18e0fc7cb525fba3b772bae10e81d8dfce7298cb
* Refactor base test classes inheritance for reuseDarragh Bailey2016-09-141-7/+3
| | | | | | | | | | | Refactor base test class inheritance to allow for BaseTest class to be reused without needing to also import the TestCase class everywhere in order to avoid having the common test function executed on base classes. This makes it easier to build base testing classes and then simplifies the subclassing of these for actual tests. Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
* Added a doc entry and a test for jdk general parameterThomas Desvenain2016-07-222-0/+13
| | | | Change-Id: I8e42e0a10f1fba2fd0e2931481f5e720be278b9d
* Compatibility support for older maven project pluginsDarragh Bailey2016-05-032-0/+4
| | | | | | | | Enable testing of project modules to receive plugin info and ensure that versions of the Maven project plugin older than 2.0.1 continue to receive the required XML setting. Change-Id: I2669052d0ef31c0b766e9cde24c842136c172b6c
* Removing perModuleEmail paramater managementNicolas Glayre2016-04-234-4/+0
| | | | | | | | | | | In the maven-plugin, its usage is deprecated since version 2.0.1 and later (back in october 2013), causing errors on /administrativeMonitor/OldData/manage webpage. Before deprecation, default value was already true. To support the plugin before it was deprecated the best would be to have it parametrizable Change-Id: Ic049e961983e9d5b25c5a2b0d32be5b3f717e923
* Merge "Partial support Yaml Axis Plugin"Jenkins2016-04-232-0/+38
|\
| * Partial support Yaml Axis PluginAntoine Musso2016-03-012-0/+38
| | | | | | | | | | | | | | | | | | | | | | Very basic support for Yaml axis provided by the Yaml Axis Jenkins Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Yaml+Axis+Plugin This patch does not support exclusion which is done in a following change. Change-Id: I7e39382425e53f5e1eb811d21810a72389acea2d
* | Fix CFP configuration for >=2.10.0Thanh Ha2016-04-222-0/+42
|/ | | | | | | | | | | | | | | In CFP plugin version >=2.10.0 the JJB code completely breaks for Maven settings due to the new support for freeform cfp id names. We can detect a old style name simply by reading the starting of the name and setting it to set settings_type=cfp to maintain support for the old versions of this plugin. Otherwise the default settings_type will fall back to 'file'. Users using cfp will now need to set 'settings-type: cfp' in their YAML files if they need to pull in CFP settings. All other settings file configuration will work as it did in the past. Change-Id: I650d485de6ecc1d2ef8fad6580c0c315fadde168 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* Reorder imports to match hacking guidelinesDarragh Bailey2015-12-231-2/+5
| | | | | | | Ensure that the imports follow the standard OpenStack hacking guidelines. Change-Id: Iaa4326aef118ddfd807dd006934f1d9ca80a1cfa
* Allow raw XML at project top-levelJonathan Perret2015-10-092-0/+16
| | | | | | This allows a `raw` section at the top-level of a job definition. Change-Id: Id76bbfbde8df49b221fcd1198354ba8b5ce9fb02
* Capture logs with FakeLogging FixtureDarragh Bailey2015-09-301-1/+1
| | | | | | | Capture logs to attach them on exceptions to simplify the debugging of errors in tests when they occur. Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
* Add support for GroovyAxisDaniel Danner2015-08-172-0/+42
| | | | Change-Id: I8661910761ed2a3faab0dcf021fd23ceb71e150b
* Merge "Support for externaljob project-type for monitoring external jobs"Jenkins2015-08-072-0/+11
|\
| * Support for externaljob project-type for monitoring external jobsSomay Jain2015-08-012-0/+11
| | | | | | | | Change-Id: I8904725f75d27180d44c55768605db7d67e79586
* | general: add support for childCustomWorkspaceFathi Boudra2015-07-134-0/+32
|/ | | | | | | | | | On freestyle project, we can set custom workspace. On matrix project, we can set custom workspace and child custom workspace. It allows to specify the directory for sub-builds. Change-Id: Icef3831174ff805e86f1ece84fef9a438f465691 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
* Support for post-step-run-condition in Maven projectsSomay Jain2015-06-274-5/+6
| | | | Change-Id: I87e1b58ad69330f3bb44070513ac90ec03b65cb4
* Improvements in the Maven Plugin.Somay Jain2015-05-264-6/+21
| | | | | | | | | | | | | | Adding the ability to configure the following checkboxes - * Incremental build - only build changed modules * Disable automatic site documentation artifact archiving * Disable automatic fingerprinting of consumed and produced artifacts * Build modules in parallel * Resolve Dependencies during Pom parsing * Run Headless * Process plugins during pom parsing * Use custom workspace Change-Id: Ie379e8812175a5b2dcb68546520994e9ce04d66a
* Support additional features in Build Flow projectJan Hruban2015-03-031-0/+1
| | | | | | | | * Allow requiring a workspace. * Allow running a DSL script from file. * Adding job parameters documentation. Change-Id: Ida71e40df3dd440d956b91005d932915bdb3d4f7
* Fix wrong casing in JDKAxis <name> tagTeemu Suvanto2015-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | If value is written in uppercase letters, Jenkins converts it to lowercase the next time the job configuration is saved. <hudson.matrix.JDKAxis> <name>JDK</name> is changed to: <hudson.matrix.JDKAxis> <name>jdk</name> As a result build URLs will change: http://host/job/matrix_build/JDK=Java-7/1/ to: http://host/job/matrix_build/jdk=Java-7/2/ Change-Id: Ia3018327c6dbffb2bb828dcc494559e57a1b6ad8
* Add support for JDK axisTeemu Suvanto2015-01-292-0/+30
| | | | | | | | | | | | | Axis that selects available JDKs. JDK axis has the same XML structure as other axes; only the element name changes. The matrix project support was split out of core Jenkins into the 'Matrix Project Plugin', so update the docstring to mention that this plugin is required. Tested on Jenkins ver. 1.565.2 with Matrix Project Plugin 1.4. Change-Id: I6b9d243810833bd3d31535439cc48768db5a6598
* Merge "add support for python and tox matrix project axis"Jenkins2015-01-122-0/+46
|\
| * add support for python and tox matrix project axisKyle Rockman2015-01-082-0/+46
| | | | | | | | | | Change-Id: I89ffc04faed02fd72c934b44b6832bd1f11d8f2e Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>
* | Add support for Config File Provider to Maven Project moduleThanh Ha2014-11-222-0/+37
|/ | | | | | | | | | | | | | | | | This patch adds some detection logic to the code to detect if the settings file starts with: org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig or in the case of global-settings starts with: org.jenkinsci.plugins.configfiles.maven.GlobalMavenSettingsConfig If true, the module will configure for Config File Provider as the settings files. See: https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin Change-Id: Iecadfd6265100720d1d0b08d3cf57a510999f89d Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* matrix project: add support for dynamic axisFathi Boudra2014-06-064-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This axis requires the dynamic axis plugin: https://wiki.jenkins-ci.org/display/JENKINS/DynamicAxis+Plugin All the dynamic axis plugin settings are in the core project: <matrix-project> <axes> <ca.silvermaplesolutions.jenkins.plugins.daxis.DynamicAxis> <name>config</name> <values> <string>config_list</string> </values> <varName>config_list</varName> <axisValues> <string>default</string> </axisValues> </ca.silvermaplesolutions.jenkins.plugins.daxis.DynamicAxis> </axes> The plugin sets 2 values: axis name and variable name. The axisValue element is hardcoded to 'default' in the plugin, so we do the same in Jenkins job builder. The matrix project supports multiple axes configuration, including dynamic axis. Tests added for: * dynamic axis (by itself) * multiple axes (dynamic and user-defined axes) Tested on Jenkins LTS (1.554.2) with both the plugin installed and not installed. The plugin is properly ignored in the latter case. Change-Id: I36310bc512fd873fec4bd5f42937689fd178536e Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
* Merge "Allow custom settings configs for maven projects"Jenkins2014-05-023-4/+10
|\
| * Allow custom settings configs for maven projectsAndrew Grimberg2014-04-023-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Allow custom settings & global-settings config files to be configured for maven projects. In addition, the previously defined empty nodes for these configurations were misnamed and this corrects that as well. This change also switches to using an included test as an example. Change-Id: I9f832f498e358268b3896ead3a78462e408bdd9d Signed-off-by: Andrew Grimberg <grimbeaj@gmail.com>
* | add retry-count in general.pyVitaliy Lotorev2014-03-282-0/+13
|/ | | | | | | implement retry-coutn in general.py; update doc and add test fixtures Change-Id: Ifeb4fb645ad0e4bc12d41ef4481aca1888a4041a
* project_maven: allow to set private repositoryGuido Günther2014-01-272-0/+2
| | | | | | | | | | | | | The values map to these GUI choices * default -> Default * local-to-executor -> Local to the executor * local-to-workspace -> Local to the workspace This is on the project level what the similar option is on the builder level. Change-Id: I90ee3385ee12a46b5ab1eb26e3af1bdbfc36946a
* project_maven: Don't require artifact-id and group-idGuido Günther2014-01-232-0/+31
| | | | | | | Jenkins will determine the values from the pom automatically so there's no need to require them. Change-Id: Ic1c9c26a05e335fd78a92fe4316ecc88b3f209b9
* tests: Allow to test project parametersGuido Günther2014-01-234-0/+44
| | | | | | | | | So far it wasn't possible to test the prameters of the project itself. While If7b749dae7631e8714a9416dfbd82d2443c0302c already made the job creation consistent this goes one step further and creates the root_xml using the project's root_xml method. Change-Id: Ieba4203d3d23ad68df5a1246e90ea8c03ddd54d4
* make job creation consistentKhai Do2014-01-228-0/+44
| | | | | | | | | | Defining a project (in yaml) without setting any other parameters should generate a basic jenkins job (in xml). While this works for freestyle jobs, jjb will throw an error for maven and flow projects. The behavior should be consistent across all types of projects. This patch just makes it so that the behavior is consistent. Change-Id: If7b749dae7631e8714a9416dfbd82d2443c0302c
* Fix multibyte character problemKei YAMAZAKI2014-01-212-2/+2
| | | | | | Fixed problem that causes a UnicodeEncodeError when use multi-byte characters in the job.yml. Change-Id: Ie715c827a794e73fae11cdca079ea80cfb8c280d
* update doc and add new JJB unit testsKhai Do2013-11-221-0/+17
| | | | | | | | | | Add documentation on how to generate documentation and run JJB unit tests. Also added a unit tests for each category of plugins as examples for others to follow when adding new JJB plugins. I'm hoping this will help contributors add tests for new plugins going forward. Change-Id: I2ab90cdb37d0f3b1e947345d4291d2927b04a0c6
* New base class to declare test cases and tests to the node optionFelipe Reyes2013-11-146-0/+35
This patch refactors the tests suite to use a base class to declare test cases just using a class declaration, the existing test class was modified to use it and new tests are using it as well. These tests verify the XML generated when the 'node' option is set and when it's absent. Change-Id: Iddcdd63e0ab7c459f6513b1d1ebf19e19a362c1d