This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now we also support Gradle projects out of the box also minor fixes were applied updated docs fixed missing env passing to stub runner containing repo with jars updated scripts used to remove routes
- Loading branch information
1 parent
f4de601
commit f9091bc
Showing
38 changed files
with
891 additions
and
173 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 |
---|---|---|
|
@@ -16,3 +16,4 @@ hs_err_pid* | |
build | ||
*.iml | ||
.DS_Store | ||
*.log |
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
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,8 +1,23 @@ | ||
#!/bin/bash | ||
#!/bin/bash +x | ||
|
||
set -e | ||
|
||
source pipeline.sh || echo "No pipeline.sh found" | ||
|
||
./mvnw versions:set -DnewVersion=${PIPELINE_VERSION} ${MAVEN_ARGS} | ||
./mvnw clean verify deploy -Ddistribution.management.release.id=${M2_SETTINGS_REPO_ID} -Ddistribution.management.release.url=${REPO_WITH_JARS} ${MAVEN_ARGS} | ||
if [[ "${PROJECT_TYPE}" == "MAVEN" ]]; then | ||
./mvnw versions:set -DnewVersion=${PIPELINE_VERSION} ${MAVEN_ARGS} | ||
if [[ "${CI}" == "CONCOURSE" ]]; then | ||
./mvnw clean verify deploy -Ddistribution.management.release.id=${M2_SETTINGS_REPO_ID} -Ddistribution.management.release.url=${REPO_WITH_JARS} ${MAVEN_ARGS} || ( $( printTestResults ) && return 1) | ||
else | ||
./mvnw clean verify deploy -Ddistribution.management.release.id=${M2_SETTINGS_REPO_ID} -Ddistribution.management.release.url=${REPO_WITH_JARS} ${MAVEN_ARGS} | ||
fi | ||
elif [[ "${PROJECT_TYPE}" == "GRADLE" ]]; then | ||
if [[ "${CI}" == "CONCOURSE" ]]; then | ||
./gradlew clean build deploy -PnewVersion=${PIPELINE_VERSION} -DM2_LOCAL=${M2_LOCAL} -DREPO_WITH_JARS=${REPO_WITH_JARS} --stacktrace || ( $( printTestResults ) && return 1) | ||
else | ||
./gradlew clean build deploy -PnewVersion=${PIPELINE_VERSION} -DM2_LOCAL=${M2_LOCAL} -DREPO_WITH_JARS=${REPO_WITH_JARS} --stacktrace | ||
fi | ||
else | ||
echo "Unsupported project build tool" | ||
return 1 | ||
fi |
Oops, something went wrong.