Giter Club home page Giter Club logo

Comments (4)

matelakat avatar matelakat commented on July 18, 2024
diff --git a/scripts/jenkins/jenkins-job-trigger b/scripts/jenkins/jenkins-job-trigger
index 3b7c7fe..7497ec3 100755
--- a/scripts/jenkins/jenkins-job-trigger
+++ b/scripts/jenkins/jenkins-job-trigger
@@ -57,7 +57,7 @@ def jenkins_build_job(job_name, job_args=[]):
         p_key, _, p_val = param.partition('=')
         job_parameters[p_key.strip(' ')] = p_val.strip(' ')

-    server = jenkins.Jenkins(config['jenkins_url'],
+    server = jenkins.Jenkins(str(config['jenkins_url']),
                              username=config['jenkins_user'],
                              password=config['jenkins_api_token'])
     server.build_job(job_name, job_parameters)

from automation.

matelakat avatar matelakat commented on July 18, 2024

That should be the fix.

Here is how to repro the error - it seems unicode hostnames are not liked there:

python -c 'import socket; socket.create_connection((u"<some-ip-here>", 8080));'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/socket.py", line 554, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
LookupError: unknown encoding: idna

whereas

python -c 'import socket; socket.create_connection(("<some-ip-here>", 8080));'

is happyness

from automation.

matelakat avatar matelakat commented on July 18, 2024

#2121

from automation.

jdsn avatar jdsn commented on July 18, 2024

fixed by #2137

from automation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.