mirror of https://github.com/BOINC/boinc.git
Merge pull request #2852 from BOINC/cb_bintray_attributes
Travis Bintray: add attributes to versions for better cleanup
This commit is contained in:
commit
4637252ece
|
@ -111,6 +111,15 @@ data="{
|
|||
set +x
|
||||
${CURL} -H Content-Type:application/json -X POST -d "${data}" "${API}/packages/${BINTRAY_REPO_OWNER}/${BINTRAY_REPO}/${PKG_NAME}/versions"
|
||||
|
||||
echo "Adding attributes to version ${VERSION}"
|
||||
# this can be used to cleanup old versions
|
||||
pr="${TRAVIS_PULL_REQUEST:-0}"
|
||||
created=$(date -Is)
|
||||
data="[{\"name\": \"PR\", \"values\": [\"${pr}\"], \"type\": \"string\"},
|
||||
{\"name\": \"create_time\", \"values\": [\"${created}\"], \"type\": \"date\"}]"
|
||||
echo $data
|
||||
${CURL} -H Content-Type:application/json -X POST -d "${data}" "${API}/packages/${BINTRAY_REPO_OWNER}/${BINTRAY_REPO}/${PKG_NAME}/versions/${VERSION}/attributes"
|
||||
|
||||
echo "Uploading and publishing ${SOURCE_DIR}/${BOINC_TYPE}.7z..."
|
||||
if [ -f "${SOURCE_DIR}/${BOINC_TYPE}.7z" ]; then
|
||||
set +x
|
||||
|
|
Loading…
Reference in New Issue