GHA: Prepare tcpdump to run for snapshot build and upload on the build failure
This commit is contained in:
@@ -99,16 +99,16 @@ jobs:
|
||||
aws s3 cp ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/repository/ s3://tools-spring-io/${p2_path}/ --recursive --no-progress
|
||||
aws s3 rm s3://dist.springsource.com/${p2_path}/ --recursive
|
||||
aws s3 cp ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/repository/ s3://dist.springsource.com/${p2_path}/ --recursive --acl public-read --no-progress
|
||||
- name: Verify Uploaded P2 Repo
|
||||
id: verify-p2-on-akamai
|
||||
run: |
|
||||
p2_path=`cat ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/s3-p2-repo-dist-path.txt`
|
||||
echo "Verifying uploaded to Akamai files..."
|
||||
cd ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/repository/plugins
|
||||
for f in `ls -p | grep -v '/$'`
|
||||
do
|
||||
wget --no-verbose -O /dev/null https://cdn.spring.io/spring-tools/$p2_path/plugins/$f
|
||||
done
|
||||
# - name: Verify Uploaded P2 Repo
|
||||
# id: verify-p2-on-akamai
|
||||
# run: |
|
||||
# p2_path=`cat ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/s3-p2-repo-dist-path.txt`
|
||||
# echo "Verifying uploaded to Akamai files..."
|
||||
# cd ${{ github.workspace }}/eclipse-language-servers/org.springframework.tooling.ls.integration.repository/target/repository/plugins
|
||||
# for f in `ls -p | grep -v '/$'`
|
||||
# do
|
||||
# wget --no-verbose -O /dev/null https://cdn.spring.io/spring-tools/$p2_path/plugins/$f
|
||||
# done
|
||||
- name: Compute invalid URLs
|
||||
if: ${{ inputs.build_type != 'snapshot' }}
|
||||
id: compute-invalid-urls
|
||||
|
||||
@@ -123,14 +123,14 @@ jobs:
|
||||
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' && always()
|
||||
id: 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/$p2_path/mycap.pcap
|
||||
aws s3 mv $tcpdump_path s3://tools-spring-io/$p2_path/mycap.pcap --no-progress
|
||||
- name: Upload Linux Distro Build Artifacts
|
||||
run: |
|
||||
cd eclipse-distribution/org.springframework.boot.ide.product.${{ inputs.eclipse_profile }}/target/products
|
||||
|
||||
Reference in New Issue
Block a user