[Documentation] [TitleIndex] [WordIndex

Overview

Jenkins Tools contains a set of command line tools to schedule, run and debug scripts on a Jenkins cluster.

Installation

After you've set up the ros apt sources, you can simply install jenkins-tools using apt:

sudo apt-get install python-jenkins-tools

Chroot Tools

This package allows you to run scripts in a chroot environment, either locally on your machine, or remotely on a Jenkins node. Both approaches will run the script in exactly the same Ubuntu environment.

run_chroot_local

This command line tool allows you to run a script in a chroot environment, on your local machine. This can be useful when you want to try out a new version of the script before you schedule it on Jenkins, or when you want to find out why a script is failing on Jenkins.

Usage:

run_chroot_local ubuntu_distro arch workspace script [script_args]

Arguments:

Example:

run_chroot_local precise amd64 /home/user/workspace prerelease groovy common_msgs

Script Development: When you're developing a script in the jenkins_scripts repository, you obviously don't want to commit every little change to try it out. Therefore there is a special option to run on a local copy of the jenkins_scripts repository. When you run the run_chroot_local script, it will check out a copy of jenkins_scripts in the workspace. You could start developing new code in this local checkout, but your changes would be wiped out every time you run the run_chroot_local script. To avoid the wipe, you can put a file called 'run_debug_mode' in the root of your workspace. When this file exists, the jenkins_scripts repository will not get wiped. Make sure you commit your changes before you remove the 'run_debug_mode' file!

run_chroot_jenkins_now

This command line tool allows you to run a script in a chroot environment, remotely, on a Jenkins node. The script will be scheduled immediately.

Usage:

run_chroot_jenkins_now ubuntu_distro arch job_name email script [script_args]

Arguments:

Example:

run_chroot_jenkins_now precise amd64 groovy-common_msgs you@hidof.com prerelease groovy common_msgs

run_chroot_jenkins_periodic

This command line tool allows you to run a script in a chroot environment, remotely, on a Jenkins node. The script will be scheduled periodically.

Usage:

run_chroot_jenkins_periodic ubuntu_distro arch job_name email period script [script_args]

Arguments:

Example:

run_chroot_jenkins_periodic precise amd64 groovy-common_msgs you@hidof.com nightly prerelease groovy common_msgs

run_chroot_jenkins_vcs

This command line tool allows you to run a script in a chroot environment, remotely, on a Jenkins node. The script will be scheduled when a commit happens to a vcs repository.

Usage:

chroot_jenkins_vcs ubuntu_distro arch job_name email vcs uri branch script [script_args]

Arguments:

Example:

run_chroot_jenkins_vcs precise amd64 groovy-common_msgs you@hidof.com git https://github.com/ros-infrastructure/jenkins_scripts.git default prerelease groovy common_msgs

Job Generation Tools

Devel Jobs

This tool generates all the development regression tests for a given ros distribution.

Usage:

generate_jenkins_devel ros_distro [--delete] [--run]

Arguments:

Example:

generate_jenkins_devel groovy --delete 

Documentation Jobs

This tool generates documentation jobs for a given ros distribution. For more information about how to add a documentation job to the index of jobs used by this tool, please see this page.

Usage:

generate_jenkins_doc ros_distro [--delete] [--run]

Options:

Arguments:

Example:

generate_jenkins_doc groovy --delete 

Prerelease Jobs

This tool generates all the development regression tests for a given release repository.

Usage:

generate_jenkins_prerelease ros_distro distro_name 

Arguments:

Example:

generate_jenkins_prerelease groovy common_msgs 


2024-11-23 14:43