DWN-37110: attempting to fix upload

pull/1601/head
Sergey Ivaschuck 2021-04-01 15:08:38 +01:00
parent f443981518
commit 674a822512
1 changed files with 2 additions and 10 deletions

View File

@ -35,18 +35,10 @@ jobs:
- run: - run:
name: "Running Maven build and deploy" name: "Running Maven build and deploy"
command: | command: |
MASTER_BRANCH=1.3.x
REPOSITORY=altSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/
# if on 1.3.x but not snapshot (i.e building a release)
if [[ "${CIRCLE_BRANCH}" == "${MASTER_BRANCH}" && "${VERSION}" != *-SNAPSHOT ]]; then
REPOSITORY=altReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/
fi
# deploy to appropriate repo
mvn -s gresham-nexus-settings/ctc.plugins.settings.xml clean deploy \ mvn -s gresham-nexus-settings/ctc.plugins.settings.xml clean deploy \
-B -V -U -DskipTests -DskipITs \ -B -V -U -DskipTests -DskipITs \
-D$REPOSITORY \ -DaltSnapshotDeploymentRepository=snapshots::default::https://nexus.greshamtech.com/repository/thirdparty-maven-snapshots/ \
-DaltReleaseDeploymentRepository=releases::default::https://nexus.greshamtech.com/repository/thirdparty-maven-releases/ \
|& tee -a /home/circleci/project/mavenOutput.log |& tee -a /home/circleci/project/mavenOutput.log
- generate-download-urls: - generate-download-urls:
extension: jar extension: jar