Skip to content

Commit

Permalink
fix command to get only 17 caracters from commit ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbarrasuse committed Jan 14, 2025
1 parent da77c05 commit 4d483d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ pre_release_cluster_agent_image:
resource_group: "$STS_VER-$MAJOR_VERSION-$PYTHON_RUNTIMES-$CI_COMMIT_REF_NAME-$BEEST_SCENARIO"
script:
- echo "-----"
- aws dynamodb list-tables --output json | jq -r '.TableNames[] | select(contains("beest"))' | xargs -I {} aws dynamodb scan --table-name {} --output json | jq -r --arg ci_commit_ref_name "${CI_COMMIT_REF_NAME:0:18}" '.Items[] | select(.LockID.S | contains($ci_commit_ref_name)) | .LockID.S'
- aws dynamodb list-tables --output json | jq -r '.TableNames[] | select(contains("beest"))' | xargs -I {} aws dynamodb scan --table-name {} --output json | jq -r --arg ci_commit_ref_name "${CI_COMMIT_REF_NAME:0:17}" '.Items[] | select(.LockID.S | contains($ci_commit_ref_name)) | .LockID.S'
- echo "-----"
- beest destroy $BEEST_SCENARIO -y
retry:
Expand Down

0 comments on commit 4d483d6

Please sign in to comment.