Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git-Maven demo: Switch to the jenkinsfile-runner:maven image pack #388

Merged
merged 2 commits into from
Oct 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions demo/git-maven/README.md
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