This repository was archived by the owner on Jul 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 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 ..
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments