Jenkins-short-jobs

From Tizen Wiki
Jump to: navigation, search

Short description of the jobs

Triggered by Gerrit Event plugin

 * Triggered: Gerrit patchsetcreate event
 * Actions: use rpmlint to check spec format. Use "gbs remote build" to submit this change to OBS home:{username}:build check:* project to test build result.
 * Triggered: Gerrit changemerge and refupdate
 * Actions: submit change to OBS and create SR. Use "gbs submit" on one gerrit project, check whether it has been submitted to OBS.
 * Triggred: Gerrit Ref Updated event
 * Actions: pull the git change to local git cache
 * Triggered: Gerrit patchsetcreate and change abandon events
 * Actions: delete the tag on the abandoned change or overwritten patch set.
 * Triggered: Gerrit ref updated event from scm/meta/snapshot-repo-conf project.
 * Actions: Load the repositories configuration into backend database, convert it into repos.yaml file and save a copy on the BOSS repo-maker server.
  * Triggered: by ref updated event( only care submission tag creation) 
  * Actions: Create corresponding pre-release OBS project for the submission tag

Triggered by obs-event-plugin

  • obs-event-dispatcher | detail
 * Triggered: OBS OBS_SRCSRV_REQUEST_.* and OBS_REPO_.* events
 * Actions: trigger the corresponding downstream jobs.
 
 * Triggered: by obs-event-dispatcher job, trigger source is obs build finish event OBS_REPO_.* of Main projects in OBS
 * Actions: Create regular snapshot for the OBS project, convert the repo structure into hierarchical directory defined in scm/meta/snapshot-repo-conf. Then, trigger image creation job, snapshot diff reports job, build logs collection job to run in sequence.
 * Triggered: by obs build finish event OBS_REPO_.* of pre-release projects in OBS
 * Actions: Create regular snapshot for the OBS project, convert the repo structure into hierarchical directory defined in scm/meta/snapshot-repo-conf. Then, trigger image creation job.
  • requests
 * Triggered: OBS OBS_SRCSRV_REQUEST_.*
 * Actions: send out email notification, and create accept/ tag when SR accepted.


  • pre-release-cleanup
 * Triggered: by obs-event-dispatcher job, the trigger source are pre-release SRCSRV_REQUEST_STATECHANGE or SRCSRV_DELETE_PROJECT OBS events
 * Actions: delete the corresponding OBS project and its repositories published on download server that created by pre-release-create job


 * Triggered: by obs build finish event OBS_REPO_.* of buildcheck project in OBS
 * Actions: get build result and post it back to gerrit. Send out build log as mail attachment to patch owner if build failed.

Triggered by upstream project

 * Triggered: by jenkins job create-snapshot or pre-release-create, the trigger source is REPO_PUBLISHED event.
 * Actions: Create images for the upstream job projects in distributed jenkins slave, then sync the image to the destination specified by upstream job. If the upstream job project is pre-release project, then trigger the post-image-creation job to run.
  • post-image-creation
 * Triggered: by jenkins job image-creator, the trigger source is REPO_BPULISHED event from pre-release OBS projects
 * Actions: update the pre-release OBS project descriptionw with the image and Gerrit project information.
 * Triggered: by create-snapshot job, the trigger source is REPO_PUBLISHED event from Main OBS projects
 * Actions: collect the build logs of all package in the project, put them in failed or succeed directory and sync them to snapshot directory.
 * Triggered: by create-snapshot job, the trigger srouce is REPO_PUBISHED event from Main OBS projects
 * Actions: generate repository packages, images difference reports against previous release, eg daily and weekly, in the format that can be shown in browser. Then, sync the reports to snapshot directory.
  • mail-sender
 * Triggered: by other jobs to send email
 * Actions: send email using smtp server from JENKINS_HOME/jobs/configurations.

Using by jenkins-snapdiff project