-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from rsvoboda/git-maven.demo
docs: Update git-maven to use jenkinsfile-runner:maven
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
Demo: Git and Maven | ||
=================== | ||
|
||
Demonstrates simple Pipeline which checks out from the Git repository and then runs a Maven build. | ||
|
||
| WARNING: This demo is based on the unreleased Vanilla version. Git support will be added in 1.0-beta-12 | | ||
| --- | | ||
Demonstrates a simple Pipeline which checks out from the Git repository and then runs a Maven build. | ||
|
||
### Run with Docker | ||
|
||
``` | ||
docker run --rm -v $(pwd)/Jenkinsfile:/workspace/Jenkinsfile jenkins4eval/jenkinsfile-runner:latest | ||
docker run --rm -v $(pwd)/Jenkinsfile:/workspace/Jenkinsfile jenkins4eval/jenkinsfile-runner:maven | ||
``` | ||
|
||
### Run (without Docker) | ||
This example is using Jenkinsfile Runner base image for building projects with Java and Apache Maven. | ||
|
||
```shell | ||
java -jar ../../app/target/jenkinsfile-runner-standalone.jar -p ../../vanilla-package/target/plugins/ -w ../../vanilla-package/target/war/jenkins.war -f . | ||
``` | ||
Image is available on Docker Hub: https://hub.docker.com/r/jenkins4eval/jenkinsfile-runner/tags | ||
|
||
Source code for the image is on GitHub: https://github.com/jenkinsci/jenkinsfile-runner-image-packs/tree/main/maven |