Skip to content

Commit

Permalink
Remove deployment to Nexus of Maven artifacts (eclipse-che#19587)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
  • Loading branch information
mkuznyetsov authored Apr 14, 2021
1 parent 14fba9c commit 1de79d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ on:
description: 'If true, tags will be overriden and regenerated. Use with caution.'
required: false
default: 'false'
autoReleaseOnNexus:
description: 'If true, artifacts will be automatically released when deployed to Nexus, but only if *deployOnNexus* is also true.'
required: false
default: 'true'
deployOnNexus:
description: 'If true, artifacts will be deployed to Nexus.'
required: false
default: 'true'
rebuildFromExistingTags:
description: 'If true, and *forceRecreateTags* is false, a checkout to existing tags will be performed.'
required: false
Expand Down
47 changes: 0 additions & 47 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ evaluateCheVariables() {
echo "Basebranch: ${BASEBRANCH}"
echo "Release che-parent: ${RELEASE_CHE_PARENT}"
echo "Version che-parent: ${VERSION_CHE_PARENT}"
echo "Deploy to nexus: ${DEPLOY_TO_NEXUS}"
echo "Autorelease on nexus: ${AUTORELEASE_ON_NEXUS}"
}

checkoutProjects() {
Expand Down Expand Up @@ -258,29 +256,6 @@ releaseCheServer() {
if [ $EXIT_CODE -eq 0 ]; then
checkLogForErrors $tmpmvnlog
echo 'Build of che-parent: Success!'
if [[ ${DEPLOY_TO_NEXUS} == "true" ]]; then
echo 'Deploy che-parent artifacts to nexus'
rm -f $tmpmvnlog || true
set +e
mvn clean deploy -ntp -Pcodenvy-release -DcreateChecksum=true -DautoReleaseAfterClose=$AUTORELEASE_ON_NEXUS -Dgpg.passphrase=$CHE_OSS_SONATYPE_PASSPHRASE | tee $tmpmvnlog
EXIT_CODE=$?
set -e
# try maven build again if Nexus dies
if grep -q -E "502 - Bad Gateway|Nexus connection problem" $tmpmvnlog; then
rm -f $tmpmvnlog || true
mvn clean deploy -ntp -Pcodenvy-release -DcreateChecksum=true -DautoReleaseAfterClose=$AUTORELEASE_ON_NEXUS -Dgpg.passphrase=$CHE_OSS_SONATYPE_PASSPHRASE | tee $tmpmvnlog
EXIT_CODE=$?
fi
# check log for errors if build successful; if failed, no need to check (already failed)
if [[ $EXIT_CODE -eq 0 ]]; then
checkLogForErrors $tmpmvnlog
else
echo '[ERROR] 1. Build of che-parent: Failed!'
exit $EXIT_CODE
fi
else
echo "[WARN] No deployment to Nexus as DEPLOY_TO_NEXUS = ${DEPLOY_TO_NEXUS}"
fi
else
echo '[ERROR] 2. Build of che-parent: Failed!'
exit $EXIT_CODE
Expand All @@ -305,28 +280,6 @@ releaseCheServer() {
if [ $EXIT_CODE -eq 0 ]; then
checkLogForErrors $tmpmvnlog
echo 'Build of che-server: Success!'
if [[ ${DEPLOY_TO_NEXUS} == "true" ]]; then
echo 'Deploy che-server artifacts to nexus'
rm -f $tmpmvnlog || true
set +e
mvn clean deploy -Pcodenvy-release -DcreateChecksum=true -DautoReleaseAfterClose=$AUTORELEASE_ON_NEXUS -Dgpg.passphrase=$CHE_OSS_SONATYPE_PASSPHRASE | tee $tmpmvnlog
EXIT_CODE=$?
set -e
# try maven build again if Nexus dies
if grep -q -E "502 - Bad Gateway|Nexus connection problem" $tmpmvnlog; then
rm -f $tmpmvnlog || true
mvn clean deploy -Pcodenvy-release -DcreateChecksum=true -DautoReleaseAfterClose=$AUTORELEASE_ON_NEXUS -Dgpg.passphrase=$CHE_OSS_SONATYPE_PASSPHRASE | tee $tmpmvnlog
EXIT_CODE=$?
fi
if [[ $EXIT_CODE -eq 0 ]]; then
checkLogForErrors $tmpmvnlog
else
echo '[ERROR] 1. Build of che-server: Failed!'
exit $EXIT_CODE
fi
else
echo "[WARN] No deployment to Nexus as DEPLOY_TO_NEXUS = ${DEPLOY_TO_NEXUS}"
fi
else
echo '[ERROR] 2. Build of che-server: Failed!'
exit $EXIT_CODE
Expand Down

0 comments on commit 1de79d4

Please sign in to comment.