https://github.com/baloise/jenkins-maven-plugin
https://github.com/baloise/jenkins-maven-plugin
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/baloise/jenkins-maven-plugin
- Owner: baloise
- License: apache-2.0
- Created: 2018-04-23T12:17:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T18:38:42.000Z (over 4 years ago)
- Last Synced: 2025-08-04T03:47:29.150Z (11 months ago)
- Language: Java
- Size: 81.1 KB
- Stars: 0
- Watchers: 32
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: docs/CODEOWNERS
Awesome Lists containing this project
README
# jenkins-maven-plugin
A maven plugin to help develop and deploy JENKINS workflow libraries and pipelines.
The design goals are
- keep your POM clean: no dependencies
- keep your workspace clean : flexibilty in layout with good defaults
## Quick start
Prerequisite
- Maven is working. That's all. No pom.xml required.
- add jcenter repo to your maven settings, see the [minimal settings.xml template](https://github.com/baloise/jenkins-maven-plugin/blob/master/docs/settings.xml).
```
false
bintray
bintray
https://jcenter.bintray.com
```
lets go some where safe ...
`> mkdir /tmp/jenkins-test; cd /tmp/jenkins-test`
run jenkins ...
`> mvn com.baloise.maven:jenkins-maven-plugin:run`
go play at http://127.0.0.1:8080/
shut down via
http://localhost:8080/exit
or type *exit* in the console (also works when launched in eclipse via m2 or external task)
## Make your life easier with plugin groups
Add the following to your *~/.m2/settings.xml*
```
com.baloise.maven
```
now you can use
`> mvn jenkins:run`
[(tell me more)](http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html#Configuring_Maven_to_Search_for_Plugins)
## Configuration options
Of course you have all the options as where to set the properties
[(tell me more)](http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide)
@Parameter(defaultValue = "${project.build.directory}/JENKINS-HOME", property = "jenkins.home")
private File home;
@Parameter(defaultValue = "8080", property = "jenkins.port")
int port;
@Parameter(defaultValue = "", property = "jenkins.context")
String context;
@Parameter(property = "jenkins.war", required=false)
String war = null;
@Parameter(property = "jenkins.debug.port", required=false)
int debugPort;
@Parameter(defaultValue = "2.320", property = "jenkins.version", required = false)
String version;
@Parameter(property = "jenkins.home.template", required = false)
File jenkinsHomeTemplate
This documentation might be out of sync. [The truth is in the code](https://github.com/baloise/jenkins-maven-plugin/blob/master/src/main/java/com/baloise/maven/jenkins/RunMojo.java).
[](https://travis-ci.org/baloise/jenkins-maven-plugin)