Skip to content

Jenkins job fails for downloads from a GitHub URL

Summary

Downloading the eCAL Windows installer with curl from a GitHub URL fails.

Steps to reproduce

eCAL has a simple test job.

What is the current bug behavior?

Downloads from GitHub URLs fail due to DNS failure in some redirection.

What is the expected correct behavior?

Download completes and then the Windows installer is signed.

Relevant logs and/or screenshots

Build #42 is started with URL 'https://github.com/eclipse-ecal/ecal/releases/download/v5.9.11/ecal_5.9.11-win64.exe', and it is a failure:

Building remotely on basic-49tff (basic) in workspace /home/jenkins/agent/workspace/test
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[test] $ /bin/bash /tmp/jenkins13113799566756611739.sh

-- started

curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1n zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL 

-- download from 'https://github.com/eclipse-ecal/ecal/releases/download/v5.9.11/ecal_5.9.11-win64.exe', the binary's name is 'ecal_5.9.11-win64.exe'

curl: (6) Could not resolve host: objects.githubusercontent.com
HTTP status code: 302
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE

Build#58 is started with URL 'https://freim.ddnss.de/nextcloud/s/3XETjMxDtMsCQF4/download/ecal_5.10.3-win64.exe' and it is a success:

Building remotely on basic-p42xr (basic) in workspace /home/jenkins/agent/workspace/test
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[test] $ /bin/bash /tmp/jenkins16752553308527677961.sh

-- started

curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1n zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL 

-- download from 'https://freim.ddnss.de/nextcloud/s/3XETjMxDtMsCQF4/download/ecal_5.10.3-win64.exe', the binary's name is 'ecal_5.10.3-win64.exe'

HTTP status code: 200
total 55220
-rw-r--r--. 1 jenkins 1001500000 56543200 Nov  3 12:32 ecal_5.10.3-win64.exe

-- download completed

HTTP status code: 200
total 110444
-rw-r--r--. 1 jenkins 1001500000 56543200 Nov  3 12:32 ecal_5.10.3-win64.exe
-rw-r--r--. 1 jenkins 1001500000 56548768 Nov  3 12:32 ecal_5.10.3-win64_signed.exe

-- signing completed

total 55224
-rw-r--r--. 1 jenkins 1001500000 56548768 Nov  3 12:32 ecal_5.10.3-win64.exe

-- replaced binary

-- terminated

Archiving artifacts
Finished: SUCCESS

Priority

  • Urgent
  • High
  • Medium
  • Low

Severity

  • Blocker
  • Major
  • Normal
  • Low

Impact

Download succeeds from a non-GitHub URL, but this manual operation is both time-consuming and error-prone. Therefore downloading directly from GitHub would provide a satisfactory experience.