summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/project_maven.py
diff options
context:
space:
mode:
authorThanh Ha <thanh.ha@linuxfoundation.org>2015-02-13 13:14:36 -0500
committerThanh Ha <thanh.ha@linuxfoundation.org>2015-03-03 16:01:23 -0500
commit26c79aa9f5a7e913b89b0668ae6b8481a9b0d9b4 (patch)
treedcdab68027112b506dd1d3655fada1021ee0e2e9 /jenkins_jobs/modules/project_maven.py
parentc1d6ba6fbb7de6f9a98b35cfc1b84dcb0260f486 (diff)
downloadpython-jenkins-job-builder-26c79aa9f5a7e913b89b0668ae6b8481a9b0d9b4.tar.gz
python-jenkins-job-builder-26c79aa9f5a7e913b89b0668ae6b8481a9b0d9b4.tar.xz
python-jenkins-job-builder-26c79aa9f5a7e913b89b0668ae6b8481a9b0d9b4.zip
Add support for Config File Provider to Maven Project module
Note: this is a port of the patch from commit 1e216835 https://review.openstack.org/gitweb?p=openstack-infra/jenkins-job-builder.git;a=commit;h=1e216835 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: Ic7f4d4d676e67f5f96afc3bd412dea5a50bee79b Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Diffstat (limited to 'jenkins_jobs/modules/project_maven.py')
-rwxr-xr-xjenkins_jobs/modules/project_maven.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/jenkins_jobs/modules/project_maven.py b/jenkins_jobs/modules/project_maven.py
index 2054c026..a3a1818a 100755
--- a/jenkins_jobs/modules/project_maven.py
+++ b/jenkins_jobs/modules/project_maven.py
@@ -37,19 +37,24 @@ in the :ref:`Job` definition.
a SNAPSHOT dependency is built or not. (default true)
* **automatic-archiving** (`bool`): Activate automatic artifact archiving
(default true).
- * **settings** (`str`): Path to custom maven settings file
+ * **settings** (`str`): Path to custom maven settings file.
It is possible to provide a ConfigFileProvider settings file as well
- org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig0123456789012
- (optional)
- * **global-settings** (`str`): Path to custom maven global settings file
+ see CFP Example below. (optional)
+ * **global-settings** (`str`): Path to custom maven global settings file.
It is possible to provide a ConfigFileProvider settings file as well
- org.jenkinsci.plugins.configfiles.maven.GlobalMavenSettingsConfig
- 0123456789012 (optional)
+ see CFP Example below. (optional)
+
+Requires the Jenkins `Config File Provider Plugin
+<https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin>`_
+for the Config File Provider "settings" and "global-settings" config.
Example:
.. literalinclude:: /../../tests/general/fixtures/project-maven001.yaml
+CFP Example:
+
+ .. literalinclude:: /../../tests/general/fixtures/project-maven003.yaml
"""
import xml.etree.ElementTree as XML