pipeline refactor

This commit is contained in:
Greg Gauthier 2023-01-27 16:32:42 +00:00
parent 3f60a59928
commit 9e31a9d557
2 changed files with 6 additions and 2 deletions

5
archive.sh Normal file
View File

@ -0,0 +1,5 @@
#!/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}"

View File

@ -12,5 +12,4 @@ pipelines:
- mvn compiler:compile - mvn compiler:compile
- mvn compiler:testCompile - mvn compiler:testCompile
- mvn surefire:test - mvn surefire:test
- export REPORTPATH="target/test-reports/*.*" - ./archive.sh
- #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}"