GithubHelp home page GithubHelp logo

release's Introduction

Releasing an artefact

This repo provides a script that allows to tag a git repository:

  • It looks if the specified build completed successfully
  • Gets the commit id from the build
  • Suggests you the new version
  • Tags the repository

##Prepare the environment

  • To enable scripts to interact with jenkins, define a 'jenkins_key' and 'jenkins_user' environment variable in your bashrc file.
export jenkins_user=<username>
export jenkins_key=<api-token>

Replace with your jenkins username (no quotes) Replace with the value obtained from Jenkins

  • In addition to that you need some python libraries: requests, pymongo and bottle.
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ sudo easy_install pip
$ sudo pip install requests
$ sudo pip install pymongo
$ sudo pip install bottle
  • Configure github and jenkins urls in src/universal/conf/hosts.json

Release

  • Tag the artefact: python release.py -v jenkins_job_name build_number The script in src/universal/bin will look at your jenkins instance for the specified green build and tag the repository with the same name as the job.

License

This code is open source software licensed under the Apache 2.0 License.

release's People

Contributors

jakobgrunig avatar duncancrawford avatar

Watchers

James Cloos 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.