Skip to content

Commit

Permalink
Merge pull request #626 from IBM/issue-625
Browse files Browse the repository at this point in the history
poms are missing from bintray #625
  • Loading branch information
prb112 authored Jan 22, 2020
2 parents 13ce13e + 6d57abe commit 9e31af5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function deploy_via_curl {

for ZIP_FILE in `find ${PROJ}/target -name '*.zip' -and -not -name '*-index.zip' -maxdepth 1 -exec basename {} \;`
do
echo " - Uploading jar: ${ZIP_FILE}"
echo " - Uploading zip: ${ZIP_FILE}"
FILE_TARGET_PATH="/com/ibm/fhir/${PROJ}/${BUILD_VERSION}/${ZIP_FILE}"
STATUS=$(curl -T "${PROJ}/target/${ZIP_FILE}" -u${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} -H "X-Bintray-Package:${PROJ}" -H "X-Bintray-Version:${BUILD_VERSION}" https://api.bintray.com/content/ibm-watson-health/ibm-fhir-server-${TYPE}${FILE_TARGET_PATH} -o /dev/null -w '%{http_code}')
echo "${STATUS} - Done uploading zip file to ${FILE_TARGET_PATH}"
Expand All @@ -99,6 +99,15 @@ function deploy_via_curl {
exit -413
fi
done

# Upload the POM file
for POM_FILE in `find ${PROJ}/ -name 'pom.xml' -maxdepth 1 -exec basename {} \;`
do
echo " - Uploading pom: ${POM_FILE}"
FILE_TARGET_PATH="/com/ibm/fhir/${PROJ}/${BUILD_VERSION}/${PROJ}-${BUILD_VERSION}.pom"
STATUS=$(curl -T "${PROJ}/${POM_FILE}" -u${BINTRAY_USERNAME}:${BINTRAY_PASSWORD} -H "X-Bintray-Package:${PROJ}" -H "X-Bintray-Version:${BUILD_VERSION}" https://api.bintray.com/content/ibm-watson-health/ibm-fhir-server-${TYPE}${FILE_TARGET_PATH} -o /dev/null -w '%{http_code}')
echo "${STATUS} - Done uploading pom file to ${FILE_TARGET_PATH}"
done
fi
done
}
Expand Down

0 comments on commit 9e31af5

Please sign in to comment.