Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 174bc98

Browse files
initial commit
1 parent d105552 commit 174bc98

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

run-maven-itests/task.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/ash
2+
#
3+
# All UPERCASE variables are provided externally from this script
4+
5+
set -eu
6+
set -o pipefail
7+
8+
cd project
9+
10+
args=""
11+
[ -n "$MAVEN_PROJECTS" ] && args="$args --projects $MAVEN_PROJECTS"
12+
[ -n "$MAVEN_REPO_MIRROR" ] && args="$args -Drepository.url=$MAVEN_REPO_MIRROR";
13+
[ -n "$MAVEN_REPO_USERNAME" ] && args="$args -Drepository.username=$MAVEN_REPO_USERNAME";
14+
[ -n "$MAVEN_REPO_PASSWORD" ] && args="$args -Drepository.password=$MAVEN_REPO_PASSWORD";
15+
16+
./mvnw verify $args
17+
18+
cd ..

run-maven-itests/task.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Builds a maven project and copies the artifact to the task-output folder
2+
---
3+
platform: linux
4+
5+
image_resource:
6+
type: docker-image
7+
source:
8+
repository: openjdk
9+
tag: '8-jdk-alpine'
10+
11+
params:
12+
MAVEN_OPTS:
13+
MAVEN_CONFIG:
14+
MAVEN_PROJECTS:
15+
MAVEN_REPO_MIRROR:
16+
MAVEN_REPO_USERNAME:
17+
MAVEN_REPO_PASSWORD:
18+
19+
inputs:
20+
- name: pipeline-tasks
21+
- name: project
22+
23+
run:
24+
path: pipeline-tasks/run-maven-itests/task.sh

0 commit comments

Comments
 (0)