Giter VIP home page Giter VIP logo

autojenkins's People

Contributors

a8 avatar bravegnu avatar chaosblog avatar dgholz avatar hin avatar jaraco avatar jone avatar josephmc5 avatar nkoester avatar rdodev avatar romank0 avatar skycarles avatar txels avatar whilp avatar wilfamir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autojenkins's Issues

build with parameters

Thank you for the cool tool. One feature I'd love is the ability to pass parameters to a job with the "build" method. I end up using other tools because this feature is missing.

Thanks

Scripts aren't executable on Windows

The scripts provided in the distribution get installed with no extension on Windows. I see two possible solutions.

  1. Since the project already assumes the presence of setuptools, use console_scripts entry points to invoke the functionality from the project, and let distribute create the appropriate scripts.
  2. In the setup script on Windows, rename the scripts with .py extensions.

I prefer the first solution as it is elegant and well-tested. I'll put together a patch.

Use requests.Session for persistent sessions (HTTP keep-alive)

This can result in a 10x speedup when querying an HTTPS Jenkins server for large numbers of job statuses, by reusing the existing SSL session to avoid renegotiating the key for each request. The code is simple:

class Jenkins(object):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.session = requests.Session()

    def _http_get(self, url, **kwargs):
        ''' Perform an HTTP GET request.

            This will add required authentication and SSL verification arguments.
        '''
        response = self.session.get(url, auth=self.auth, verify=self.verify_ssl_cert, proxies=self.proxies, **kwargs)
        return _validate(response)

    def _http_post(self, url, **kwargs):
        ''' Perform an HTTP POST request.

            This will add required authentication and SSL verification arguments.
        '''
        response = self.session.post(url, auth=self.auth, verify=self.verify_ssl_cert, proxies=self.proxies, **kwargs)
        return _validate(response)

Installation Instructions

I realize this might be a bit silly/trivial for some people, but projects such as this one would probably get more notice if you had installation and setup instructions, as well as contribution guidelines.

License

Hi txels, tried to find an address to message you but failed so figured this is the best way to ask. I'd like to use this fine project at work, but IT requires us to know what license all the code we use is distributed under. Is this code released to the public doman, BSD, GPL or something altogether more exotic?

Cheers,

Phil

Add function to wait until a build is completed

Sometimes it is useful to synchronously run a build from a script, and perform some action upon completion, depending on success or failure.

This can be implemented by adding a method wait_for_build(poll=10), and adding a switch to the build script, e.g. ajk-build -w

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.