You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi, community
In a bitbucket pipeline, I have defined some simple bash for getting Apache Ant resources and I frequently got a connection timeout. The following snippet is the result of Wget when it timeouts:
--2021-11-29 11:46:30-- https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz
Resolving archive.apache.org (archive.apache.org)... 138.201.131.134, 2a01:4f8:172:2ec5::2
Connecting to archive.apache.org (archive.apache.org)|138.201.131.134|:443... failed: Connection timed out.
Connecting to archive.apache.org (archive.apache.org)|2a01:4f8:172:2ec5::2|:443... failed: Network is unreachable.
I provide the single step to simulate the error (used image:amazoncorretto:11)
if [[ ! -d /opt/apache-ant-1.10.8 || ! -f /opt/apache-ant-1.10.8/bin/ant ]]; then
echo "Ant directory not exists!"
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz
tar -xzf apache-ant-1.10.8-bin.tar.gz -C /opt
fi
Thank you for reaching out to the community.
I did try to run the wget command below in my test Pipelines.
However, I'm able to download the file without issue.
My YAML file configuration looks like below:
image: amazoncorretto:11 pipelines: default: - step: name: Test script: - yum install wget -y - wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz
Would it be possible for you to confirm if you're still experiencing the same issue?
Regards,
Mark C
At this stage, this problem does not occur anymore and I ran multiple pipelines in the meanwhile. Thank you for your investigation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.