Skip to content
Snippets Groups Projects
  • Matthias Schiffer's avatar
    6b3b5e70
    jenkins-community-slave: use requests library to download slave.jar · 6b3b5e70
    Matthias Schiffer authored
    Do not mix two different HTTP libraries in one script. This fixes a
    warning:
    
    /var/lib/jenkins/slave.py:82: DeprecationWarning: URLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
    
    This simple implementation has the disadvantage that it stores the whole
    file in RAM, but this isn't an issue for the 1.5MB slave.jar.
    6b3b5e70
    History
    jenkins-community-slave: use requests library to download slave.jar
    Matthias Schiffer authored
    Do not mix two different HTTP libraries in one script. This fixes a
    warning:
    
    /var/lib/jenkins/slave.py:82: DeprecationWarning: URLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
    
    This simple implementation has the disadvantage that it stores the whole
    file in RAM, but this isn't an issue for the 1.5MB slave.jar.