playwrightjava1/archive.sh

6 lines
254 B
Bash
Executable File

#!/usr/bin/env bash
export REPORTPATH="target/test-reports/*.*"
curl -H "Authorization: Bearer ${BEARER_TOKEN}" -X POST "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${REPORTPATH}"