/xml-jenkins

Generate jenkins config.xml for jenkins job

Primary LanguageJavaApache License 2.0Apache-2.0

xml-jenkins

Generate config.xml for jenkins job

What is the "xml-jenkins"?

Generate config.xml for jenkins job

Getting Started

If you like to use this library you need to add the library as a dependency to your project. This can be done by using a Maven dependency like the following:

<dependency>
   <groupId>com.github.csxiaoshang</groupId>
   <artifactId>xml-jenkins</artifactId>
   <version>1.0-SNAPSHOT</version>
</dependency>

Usage

The com.github.csxiaoshang.xml-jenkins class provides the main entry point into the API. You can get xml String like this:

String xml= XmlUtils.getConfigXml();

or:

Project project= XmlUtils.getProject();
XmlUtils.setGitUrl(project,"https://github.com//demo/demo.git")
...
String xml = XmlUtils.getConfigXml(project);