From 7828c91251a8e14fd5697dbcc6484ade6c3cd347 Mon Sep 17 00:00:00 2001 From: Lin Yang Date: Mon, 10 Sep 2012 16:01:32 +0800 Subject: [PATCH] Init project with current jobs setting --- jobs/BuildCheck/config.xml | 87 ++++++++++++++++++++++++++++++++++++++++ jobs/DeleteTag/config.xml | 57 ++++++++++++++++++++++++++ jobs/PolicyCheck/config.xml | 65 ++++++++++++++++++++++++++++++ jobs/SubmitToOBS/config.xml | 80 ++++++++++++++++++++++++++++++++++++ jobs/SubmitToOBS_Orig/config.xml | 80 ++++++++++++++++++++++++++++++++++++ jobs/configuration | 15 +++++++ jobs/mail_sender/config.xml | 30 ++++++++++++++ jobs/requests/config.xml | 67 +++++++++++++++++++++++++++++++ jobs/ruote_workitems/config.xml | 58 +++++++++++++++++++++++++++ 9 files changed, 539 insertions(+) create mode 100644 jobs/BuildCheck/config.xml create mode 100644 jobs/DeleteTag/config.xml create mode 100644 jobs/PolicyCheck/config.xml create mode 100644 jobs/SubmitToOBS/config.xml create mode 100644 jobs/SubmitToOBS_Orig/config.xml create mode 100644 jobs/configuration create mode 100644 jobs/mail_sender/config.xml create mode 100644 jobs/requests/config.xml create mode 100644 jobs/ruote_workitems/config.xml diff --git a/jobs/BuildCheck/config.xml b/jobs/BuildCheck/config.xml new file mode 100644 index 0000000..268fe87 --- /dev/null +++ b/jobs/BuildCheck/config.xml @@ -0,0 +1,87 @@ + + + + Do Build check when a change is created in gerrit + + -1 + 20 + -1 + -1 + + false + + + true + false + false + false + + + + + + REG_EXP + .* + + + REG_EXP + .* + + + + + true + true + true + false + false + false + false + false + false + + + + + {} + {} + {} + 0 + + + true + + + #!/bin/bash +set -x + +python ${JENKINS_HOME}/jenkins-scripts/job_buildcheck.py + + + + + + + + + + ${BUILD_TAG}.env + + + mail_sender, + FAILED + false + + + + + + + + ${JENKINS_HOME}/jobs/configuration + GIT_CACHE_DIR=${JENKINS_HOME}/git + false + + + + \ No newline at end of file diff --git a/jobs/DeleteTag/config.xml b/jobs/DeleteTag/config.xml new file mode 100644 index 0000000..65c04be --- /dev/null +++ b/jobs/DeleteTag/config.xml @@ -0,0 +1,57 @@ + + + + delete all tags on gerrit abandoned commit + false + + + true + false + false + false + + + + + + REG_EXP + .* + + + REG_EXP + .* + + + + + true + true + false + false + false + true + false + false + false + + + + + {} + {} + {} + 0 + + + true + + + #!/bin/bash +set -x + +${JENKINS_HOME}/jenkins-scripts/job_deletetag.sh + + + + + \ No newline at end of file diff --git a/jobs/PolicyCheck/config.xml b/jobs/PolicyCheck/config.xml new file mode 100644 index 0000000..25376e0 --- /dev/null +++ b/jobs/PolicyCheck/config.xml @@ -0,0 +1,65 @@ + + + + Do policy check when a change is created in gerrit + false + + + true + false + false + false + + + + + + REG_EXP + .* + + + REG_EXP + .* + + + + + true + true + true + false + false + false + false + false + false + + + + + {} + {} + {} + 0 + + + true + + + #!/bin/bash +set -x + +python ${JENKINS_HOME}/jenkins-scripts/job_policycheck.py + + + + + + + ${JENKINS_HOME}/jobs/configuration + GIT_CACHE_DIR=${JENKINS_HOME}/git + false + + + + \ No newline at end of file diff --git a/jobs/SubmitToOBS/config.xml b/jobs/SubmitToOBS/config.xml new file mode 100644 index 0000000..34baaea --- /dev/null +++ b/jobs/SubmitToOBS/config.xml @@ -0,0 +1,80 @@ + + + + This script will submit a merged change to corresponding OBS staging project. If necessary, create SR to request merge to target OBS project. + false + + + true + false + false + false + + + + + + REG_EXP + .* + + + REG_EXP + .* + + + + + true + true + false + true + true + false + false + false + false + + + + + {} + {} + {} + 0 + + + false + + + #!/bin/bash +set -x + +python ${JENKINS_HOME}/jenkins-scripts/job_submitobs.py + + + + + + + + + ${BUILD_TAG}.env + + + mail_sender, + SUCCESS + false + + + + + + + + ${JENKINS_HOME}/jobs/configuration + GIT_CACHE_DIR=${JENKINS_HOME}/git + false + + + + \ No newline at end of file diff --git a/jobs/SubmitToOBS_Orig/config.xml b/jobs/SubmitToOBS_Orig/config.xml new file mode 100644 index 0000000..84408c6 --- /dev/null +++ b/jobs/SubmitToOBS_Orig/config.xml @@ -0,0 +1,80 @@ + + + + This script will submit a merged change to corresponding OBS staging project. If necessary, create SR to request merge to target OBS project. + false + + + true + false + false + false + + + + + + REG_EXP + .* + + + REG_EXP + .* + + + + + true + true + false + true + true + false + false + false + false + + + + + {} + {} + {} + 0 + + + false + + + #!/bin/bash +set -x + +python ${JENKINS_HOME}/jenkins-scripts/job_submitobs_v1.py + + + + + + + + + ${BUILD_TAG}.env + + + mail_sender, + SUCCESS + false + + + + + + + + ${JENKINS_HOME}/jobs/configuration + GIT_CACHE_DIR=${JENKINS_HOME}/git + false + + + + \ No newline at end of file diff --git a/jobs/configuration b/jobs/configuration new file mode 100644 index 0000000..68de9f9 --- /dev/null +++ b/jobs/configuration @@ -0,0 +1,15 @@ +OBS_URL= +OBS_API_URL= +OBS_OSCRC_PATH= +OBS_USERNAME= + +GERRIT_USERNAME= +GERRIT_HOSTNAME= +GERRIT_SSHPORT= + +SMTP_SERVER= +NOREPLY_EMAIL_SENDER= +MAILINGLIST= + +MAPPING_PRJ=scm/git-obs-mapping +RPMLINT_PRJ=scm/rpmlint-config diff --git a/jobs/mail_sender/config.xml b/jobs/mail_sender/config.xml new file mode 100644 index 0000000..0d7c703 --- /dev/null +++ b/jobs/mail_sender/config.xml @@ -0,0 +1,30 @@ + + + + + false + + + true + false + false + false + + true + + + #!/bin/bash + +python ${JENKINS_HOME}/jenkins-scripts/job_mail_sender.py + + + + + + + ${JENKINS_HOME}/jobs/configuration + false + + + + \ No newline at end of file diff --git a/jobs/requests/config.xml b/jobs/requests/config.xml new file mode 100644 index 0000000..392dd6d --- /dev/null +++ b/jobs/requests/config.xml @@ -0,0 +1,67 @@ + + + + + false + + + true + false + false + false + + + + + + PLAIN + { "fields": { "obsEvent": { "type": "OBS_SRCSRV_REQUEST_ACCEPTED" } } }; + + + PLAIN + { "fields": { "obsEvent": { "type": "OBS_SRCSRV_REQUEST_STATECHANGE" } } }; + + + PLAIN + { "fields": { "obsEvent": { "type": "OBS_SRCSRV_REQUEST_CREATE" } } }; + + + LOGGING_NONE + + + true + + + #!/bin/bash + +python ${JENKINS_HOME}/jenkins-scripts/job_request.py + + + + + + + + + ${BUILD_TAG}.env + + + mail_sender, + SUCCESS + false + + + + + + + + ${JENKINS_HOME}/jobs/configuration + GIT_CACHE_DIR=${JENKINS_HOME}/git + +EMAIL_TEMPLATES_DIR=${JENKINS_HOME}/jenkins-scripts/requests/email_templates/ + false + + + + diff --git a/jobs/ruote_workitems/config.xml b/jobs/ruote_workitems/config.xml new file mode 100644 index 0000000..b12eb4a --- /dev/null +++ b/jobs/ruote_workitems/config.xml @@ -0,0 +1,58 @@ + + + + + false + + + true + false + false + false + + + + + + REG_EXP + { "fields": { "obsEvent": { "type": "OBS_SRCSRV_REQUEST_.*" } } }; + + + PLAIN + { "fields": { "obsEvent": { "type": "OBS_REPO_PUBLISHED" } } }; + + + PLAIN + { "fields": { "obsEvent": { "type": "OBS_BUILD_SUCCESS" } } }; + + + LOGGING_NONE + + + false + + + #!/bin/bash +set -x + +python ${JENKINS_HOME}/jenkins-scripts/job_obsevent_dispatcher.py + + + + + + + # which queue to dispatch to if received a request event +REQUESTS_QUEUE_NAME = requests + +# which queue to dispatch to if received a repo published event +REPOMAKER_QUEUE_NAME = repomaker + +# which queue to dispatch to if received a build success event +BUILD_STATUS_QUEUE_NAME = build_status + + false + + + + -- 2.7.4