job_generation::jobs_common Namespace Reference

Functions

def call
def ensure_dir
def generate_email
def get_depends_all
def get_depends_one
def get_email_triggers
def get_environment
def get_job_name
def get_options
def get_rosdistro_file
def get_sys_info
def schedule_jobs
def stack_to_deb
def stack_to_rosinstall
def stacks_to_debs
def stacks_to_rosinstall
def write_file

Variables

list ARCHES = ['amd64', 'i386']
string BOOTSTRAP_SCRIPT
string BOOTSTRAP_SCRIPT_OSX
string CONFIG_PATH = 'http://wgs24.willowgarage.com/hudson-html/hds.xml'
string EMAIL_TRIGGER
dictionary hudson_scm_managers
string SERVER = 'http://build.willowgarage.com'
string SHUTDOWN_SCRIPT
string SHUTDOWN_SCRIPT_OSX
dictionary UBUNTU_DISTRO_MAP

Function Documentation

def job_generation::jobs_common::call (   command,
  env = None,
  message = '',
  ignore_fail = False 
)

Definition at line 439 of file jobs_common.py.

def job_generation::jobs_common::ensure_dir (   f  ) 

Definition at line 420 of file jobs_common.py.

def job_generation::jobs_common::generate_email (   message,
  env 
)

Definition at line 431 of file jobs_common.py.

def job_generation::jobs_common::get_depends_all (   distro_obj,
  stack_name,
  depends_all 
)

Definition at line 226 of file jobs_common.py.

def job_generation::jobs_common::get_depends_one (   stack  ) 

Definition at line 212 of file jobs_common.py.

def job_generation::jobs_common::get_email_triggers (   when,
  send_devel = True 
)

Definition at line 401 of file jobs_common.py.

def job_generation::jobs_common::get_environment (  ) 

Definition at line 240 of file jobs_common.py.

def job_generation::jobs_common::get_job_name (   jobtype,
  rosdistro,
  stack_name,
  ubuntu,
  arch 
)

Definition at line 414 of file jobs_common.py.

def job_generation::jobs_common::get_options (   required,
  optional 
)

Definition at line 253 of file jobs_common.py.

def job_generation::jobs_common::get_rosdistro_file (   rosdistro  ) 

Definition at line 396 of file jobs_common.py.

def job_generation::jobs_common::get_sys_info (  ) 

Definition at line 469 of file jobs_common.py.

def job_generation::jobs_common::schedule_jobs (   jobs,
  wait = False,
  delete = False,
  start = False,
  hudson_obj = None 
)

Definition at line 349 of file jobs_common.py.

def job_generation::jobs_common::stack_to_deb (   stack,
  rosdistro 
)

Definition at line 184 of file jobs_common.py.

def job_generation::jobs_common::stack_to_rosinstall (   stack_obj,
  branch 
)

Definition at line 193 of file jobs_common.py.

def job_generation::jobs_common::stacks_to_debs (   stack_list,
  rosdistro 
)

Definition at line 187 of file jobs_common.py.

def job_generation::jobs_common::stacks_to_rosinstall (   stack_list,
  stack_map,
  branch 
)

Definition at line 201 of file jobs_common.py.

def job_generation::jobs_common::write_file (   filename,
  msg 
)

Definition at line 425 of file jobs_common.py.


Variable Documentation

list job_generation::jobs_common::ARCHES = ['amd64', 'i386']

Definition at line 70 of file jobs_common.py.

Initial value:
"""
cat > $WORKSPACE/script.sh <<DELIM
#!/usr/bin/env bash
set -o errexit
echo "_________________________________BEGIN SCRIPT______________________________________"
sudo apt-get install bzr --yes
sudo apt-get install ros-ROSDISTRO-ros --yes
source /opt/ros/ROSDISTRO/setup.sh

export INSTALL_DIR=/tmp/install_dir
export WORKSPACE=/tmp/ros
export ROS_TEST_RESULTS_DIR=/tmp/ros/test_results
export JOB_NAME=$JOB_NAME
export BUILD_NUMBER=$BUILD_NUMBER
export HUDSON_URL=$HUDSON_URL
export ROS_PACKAGE_PATH=\$INSTALL_DIR/ros_release:\$ROS_PACKAGE_PATH

mkdir -p \$INSTALL_DIR
cd \$INSTALL_DIR

wget  --no-check-certificate http://code.ros.org/svn/ros/installers/trunk/hudson/hudson_helper 
chmod +x  hudson_helper
svn co https://code.ros.org/svn/ros/stacks/ros_release/trunk ros_release
"""

Definition at line 15 of file jobs_common.py.

Initial value:
"""
echo "_________________________________BEGIN SCRIPT______________________________________"
source /Users/rosbuild/ros_bootstrap/setup.bash
export ROS_PACKAGE_PATH=$WORKSPACE/ros_release:$ROS_PACKAGE_PATH

wget  --no-check-certificate http://code.ros.org/svn/ros/installers/trunk/hudson/hudson_helper -O $WORKSPACE/hudson_helper
chmod +x  $WORKSPACE/hudson_helper
svn co https://code.ros.org/svn/ros/stacks/ros_release/trunk $WORKSPACE/ros_release
"""

Definition at line 54 of file jobs_common.py.

string job_generation::jobs_common::CONFIG_PATH = 'http://wgs24.willowgarage.com/hudson-html/hds.xml'

Definition at line 86 of file jobs_common.py.

Initial value:
"""
        <hudson.plugins.emailext.plugins.trigger.WHENTrigger> 
          <email> 
            <recipientList></recipientList> 
            <subject>$PROJECT_DEFAULT_SUBJECT</subject> 
            <body>$PROJECT_DEFAULT_CONTENT</body> 
            <sendToDevelopers>SEND_DEVEL</sendToDevelopers> 
            <sendToRecipientList>true</sendToRecipientList> 
            <contentTypeHTML>false</contentTypeHTML> 
            <script>true</script> 
          </email> 
        </hudson.plugins.emailext.plugins.trigger.WHENTrigger> 
"""

Definition at line 89 of file jobs_common.py.

Initial value:
{'svn':"""  <scm class="hudson.scm.SubversionSCM">     <locations>       <hudson.scm.SubversionSCM_-ModuleLocation>         <remote>STACKURI</remote>         <local>STACKNAME</local>       </hudson.scm.SubversionSCM_-ModuleLocation>     </locations>     <useUpdate>false</useUpdate>     <doRevert>false</doRevert>     <excludedRegions></excludedRegions>     <includedRegions></includedRegions>     <excludedUsers></excludedUsers>     <excludedRevprop></excludedRevprop>     <excludedCommitMessages></excludedCommitMessages>   </scm> """,
                       'hg':"""  <scm class="hudson.plugins.mercurial.MercurialSCM">    <source>STACKURI</source>    <modules></modules>    <subdir>STACKNAME</subdir>    <clean>false</clean>    <forest>false</forest>    <branch>STACKBRANCH</branch>  </scm>""",
                       'bzr':"""  <scm class="hudson.plugins.bazaar.BazaarSCM">     <source>STACKURI STACKNAME</source>     <clean>false</clean>   </scm> """,
                       'git':"""  <scm class="hudson.plugins.git.GitSCM">    <configVersion>1</configVersion>    <remoteRepositories>      <org.spearce.jgit.transport.RemoteConfig>        <string>origin</string>        <int>5</int>        <string>fetch</string>        <string>+refs/heads/*:refs/remotes/origin/*</string>        <string>receivepack</string>        <string>git-upload-pack</string>        <string>uploadpack</string>        <string>git-upload-pack</string>        <string>url</string>        <string>STACKURI</string>        <string>tagopt</string>        <string></string>      </org.spearce.jgit.transport.RemoteConfig>    </remoteRepositories>    <branches>      <hudson.plugins.git.BranchSpec>        <name>STACKBRANCH</name>      </hudson.plugins.git.BranchSpec>    </branches>    <localBranch></localBranch>    <mergeOptions/>    <recursiveSubmodules>false</recursiveSubmodules>    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>    <authorOrCommitter>Hudson</authorOrCommitter>    <clean>false</clean>    <wipeOutWorkspace>false</wipeOutWorkspace>    <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>    <gitTool>Default</gitTool>    <submoduleCfg class="list"/>    <relativeTargetDir>STACKNAME</relativeTargetDir>    <excludedRegions></excludedRegions>    <excludedUsers></excludedUsers>  </scm>"""
}

Definition at line 104 of file jobs_common.py.

string job_generation::jobs_common::SERVER = 'http://build.willowgarage.com'

Definition at line 82 of file jobs_common.py.

Initial value:
"""
echo "_________________________________END SCRIPT_______________________________________"
DELIM

set -o errexit

rm -rf $WORKSPACE/test_results
rm -rf $WORKSPACE/test_output

wget  --no-check-certificate https://code.ros.org/svn/ros/stacks/ros_release/trunk/hudson/scripts/run_chroot.py -O $WORKSPACE/run_chroot.py
chmod +x $WORKSPACE/run_chroot.py
cd $WORKSPACE &amp;&amp; $WORKSPACE/run_chroot.py --distro=UBUNTUDISTRO --arch=ARCH  --ramdisk --hdd-scratch=/home/rosbuild/install_dir --script=$WORKSPACE/script.sh --ssh-key-file=/home/rosbuild/rosbuild-ssh.tar
"""

Definition at line 40 of file jobs_common.py.

Initial value:
"""
echo "_________________________________END SCRIPT_______________________________________"
"""

Definition at line 64 of file jobs_common.py.

Initial value:
os_test_platform{
    'testing': ['lucid', 'maverick'],
    'unstable': ['lucid', 'oneiric'],
    'electric': ['lucid', 'maverick', 'natty', 'oneiric'],
    'diamondback': ['lucid', 'maverick', 'natty'],
    'cturtle': ['lucid', 'maverick', 'karmic'],
}

Definition at line 73 of file jobs_common.py.

 All Classes Namespaces Files Functions Variables


job_generation
Author(s): Wim Meeussen
autogenerated on Fri Jan 11 10:09:21 2013