nomeq / yocto-jenkins Goto Github PK
View Code? Open in Web Editor NEWTools for integrating the Yocto Project with Jenkins
Tools for integrating the Yocto Project with Jenkins
********************************************************************* README Version 0.0.1 ********************************************************************* Setting up Yocto-Jenkins ************************ 1. Download the yocto-jenkins files to your Jenkins home directory (On most unix systems, this will be /var/lib/jenkins), or clone it from GitHub into your Jenkins workspace from: [email protected]:nome-codes/Yocto-Jenkins.git 2. jenkinsBuild.sh will automatically download the autobuilder buildsteps from the git.yoctoproject.org site using the buildstep-tool. To use a different buildstep repository, run the script manually with: > ./buildstep-tool.sh /some/directory/here 3. In Jenkins > Project Name > configuration, click 'Add build step' and choose 'Execute shell' 4. For the Command, enter: #!/bin/bash $JENKINS_HOME/jenkinsBuild.sh [buildsteps] [kwargs] e.g. .../jenkinsBuild.sh HelloWorld firstname=Nome lastname=Dickerson Note: Steps will be executed in the order they are passed in. Also, the path will be different if Jenkins is cloning yocto-jenkins: $WORKSPACE/SOME_SUB_DIRECTORY/jenkinsBuild.sh ... 5. Build the project Creating Custom Buildsteps ************************** 1. Add your buildstep to the buildsteps folder within yocto-jenkins 2. The current implementation is based entirely on compatibility with autobuilder buildsteps, thus each step is assumed to receive the parameters factory and argdict. Factory will always be given the value None. To change this default behavior, modify the file 'buildSteps.py'. 3. To import the yocto-jenkins stub library, use: from jenkinsBuildSteps.stubs import * You can create shell commands by subclassing the ShellCommand class, which will run a string given as the self.command field within a shell process with a timeout. New buildsteps should also include a name field, which is used to provide more descriptive output in the logs. Version Notes ************* -This is the initial version of this project. It is not yet compatible with the majority of autobuilder buildsteps. File List ********* buildSteps.py: Parses buildsteps and parameters buildstep-tool.sh: Copies autobuilder buildsteps to local directory, modifies code jenkinsBuild.sh: Sets up a python virtual environment, runs buildSteps.py jenkinsBuildSteps/stubs.py: Class stubs to replace buildbot.process.shell
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.