Giter Site home page Giter Site logo

ci_jenkins's Introduction

Odoo Jenkins Plugin

Odoo Jenkins Plugin allows:

  • start a Jenkins Job based on a Scheduled Action
  • check jobs status without leaving Odoo UI

Install and Setup

Requirements

pip install python-jenkins

Setup

Add this addons folder to odoo addons path, then install the module in the respective Odoo server with matching version as this module. (10.0, 11.0)

In Settings >> Parameters >> System Parameters:

Set your Jenkins server parameters:

jenkins_ci.url (e.g. 'http://localhost:8080') jenkins_ci.user (e.g. 'admin') jenkins_ci.passwors (e.g. 'abcd')

Cron Job

Create a Scheduled Job in Settings >> Automation >> Scheduled Jobs or Using XML in your modules

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">

        <!-- Example CI Job -->
        <record id="ir_cron_test_jenkins" model="ir.cron">
            <field name="name">Test jenkins job</field>
            <field name="jenkins_job" eval="True"/>
            <field name="active" eval="False"/>
            <field name="interval_type">minutes</field>
            <field name="interval_number">2</field>
            <field name="numbercall">-1</field>
            <field name="model">ir.cron.methods</field>
            <field name="function">_jenkins_build_job</field>
            <field eval="('Test')," name="args" />
        </record>

    </data>

</odoo>

ci_jenkins's People

Contributors

dduarte-odoogap avatar diogocduarte avatar

Stargazers

Alexander Salas Bastidas avatar  avatar Mohammad Awais avatar  avatar

Watchers

James Cloos avatar  avatar  avatar Víctor Salazar avatar

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.