[GHA] Disable tcp dump for macosx runner

This commit is contained in:
aboyko
2024-02-12 10:31:21 -05:00
parent d5aaaa87d9
commit 1b2cc045f8

View File

@@ -46,14 +46,14 @@ jobs:
distribution: 'temurin'
- name: Enforce https instead of http
run: ./nohttp.sh
- name: Start TCP Dump
if: ${{ inputs.build_type == 'snapshot' }}
run: |
cd eclipse-distribution
sudo apt-get install -y tcpdump
echo "Installed tcpdump"
sudo tcpdump -s 0 -i eth0 -w mycap.pcap &
echo "Launched tcpdump"
# - name: Start TCP Dump
# if: ${{ inputs.build_type == 'snapshot' }}
# run: |
# cd eclipse-distribution
# sudo apt-get install -y tcpdump
# echo "Installed tcpdump"
# sudo tcpdump -s 0 -i eth0 -w mycap.pcap &
# echo "Launched tcpdump"
- name: Install GPG key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg.asc
@@ -120,15 +120,15 @@ jobs:
echo "P2 path: ${p2_path}"
aws s3 rm s3://tools-spring-io/$p2_path/ --recursive
aws s3 cp ./repository/ s3://tools-spring-io/$p2_path/ --recursive --no-progress
- name: Store TCP Dump
if: inputs.build_type == 'snapshot' && failure()
id: tcp-dump-upload
run: |
tcpdump_path=${{ github.workspace }}/eclipse-distribution/mycap.pcap
p2_path=${{ steps.s3-paths.outputs.p2_path }}
echo "P2 path: ${p2_path}"
echo "TCP Dump path: ${tcpdump_path}"
aws s3 mv $tcpdump_path s3://tools-spring-io/tcpdump/cap-${{ inputs.eclipse_profile }}-${{ inputs.build_type }}-${{ github.run_id }}.pcap --no-progress
# - name: Store TCP Dump
# if: inputs.build_type == 'snapshot' && failure()
# id: tcp-dump-upload
# run: |
# tcpdump_path=${{ github.workspace }}/eclipse-distribution/mycap.pcap
# p2_path=${{ steps.s3-paths.outputs.p2_path }}
# echo "P2 path: ${p2_path}"
# echo "TCP Dump path: ${tcpdump_path}"
# aws s3 mv $tcpdump_path s3://tools-spring-io/tcpdump/cap-${{ inputs.eclipse_profile }}-${{ inputs.build_type }}-${{ github.run_id }}.pcap --no-progress
- name: Upload Linux Distro Build Artifacts
run: |
cd eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/products