Skip to content

Commit 16fe2cd

Browse files
IONOS(build): add source build URL for traceability in GitLab pipeline trigger
1 parent 713ba5f commit 16fe2cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-artifact.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ jobs:
307307
continue-on-error: true
308308
uses: ./.github/actions/get-job-data
309309
with:
310-
job-name: 'build-external-apps (${{ matrix.app_info.name }})'
310+
job-name: 'build-external-apps (${{ matrix.app_info.name }}, ${{ matrix.app_info.sha }})'
311311
github-token: ${{ github.token }}
312312
repository: ${{ github.repository }}
313313
run-id: ${{ github.run_id }}
@@ -903,6 +903,10 @@ jobs:
903903
BUILD_TYPE="stable"
904904
fi
905905
906+
# Construct source build URL for traceability
907+
SOURCE_BUILD_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
908+
echo "Source Build URL: $SOURCE_BUILD_URL"
909+
906910
# Trigger GitLab pipeline via webhook with retry logic (3 attempts with 30s delay)
907911
MAX_ATTEMPTS=3
908912
ATTEMPT=1
@@ -925,6 +929,7 @@ jobs:
925929
--form "variables[NC_VERSION]=${{ needs.build-artifact.outputs.NC_VERSION }}" \
926930
--form "variables[BUILD_ID]=${{ github.run_id }}" \
927931
--form "variables[BUILD_TYPE]=${BUILD_TYPE}" \
932+
--form "variables[SOURCE_BUILD_URL]=${SOURCE_BUILD_URL}" \
928933
"${{ secrets.GITLAB_TRIGGER_URL }}"; then
929934
TRIGGER_SUCCESS=true
930935
echo "✅ Trigger successful on attempt $ATTEMPT"

0 commit comments

Comments
 (0)