Ensure script failure on pipeline

Change-Id: Ib871f519c9833b54a1108aa2f2b8f2e8d2ec697a
This commit is contained in:
jmarchel 2023-10-26 10:33:11 +02:00
parent 9b805c67f5
commit ec4be9131e

View File

@ -10,6 +10,7 @@
- name: Retrieve the Staging Repository ID
shell: |
set -o pipefail
response=$(curl -s -u "{{ sonatype_username }}:{{ sonatype_password }}" \
"https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/{{ sonatype_username }}")
echo $response | jq -r '.data[].stagedRepositoryId' | tail -n 1
@ -17,6 +18,7 @@
- name: Release the staging repository
shell: |
set -o pipefail
curl -u "{{ sonatype_username }}:{{ sonatype_password }}" \
-X POST https://s01.oss.sonatype.org/service/local/staging/profiles/your-profile-id/finish \
-H "Content-Type: application/json" \