services/jenkins-scripts.git
11 years agocut off reqinfo if it exceed 100 lines
Lin Yang [Tue, 18 Dec 2012 02:45:18 +0000 (10:45 +0800)]
cut off reqinfo if it exceed 100 lines

Change-Id: I0e81bf1646ced6c984b667bf08b96a97a797e527

11 years agomore strict check for spec file
Lin Yang [Mon, 17 Dec 2012 11:06:13 +0000 (19:06 +0800)]
more strict check for spec file

Change-Id: If14d682a287b2bdb3b3cb2106b81c9b8f4f45454
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoupgrade gbs related command to fit gbs 0.12
Lin Yang [Mon, 17 Dec 2012 09:13:24 +0000 (17:13 +0800)]
upgrade gbs related command to fit gbs 0.12

Change-Id: I3837555be41981674ba44e8a7e818a781ac0aba2
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agodrop msger module
Lin Yang [Mon, 17 Dec 2012 08:19:40 +0000 (16:19 +0800)]
drop msger module

Change-Id: Ibce76832ccd31f5d189ef753c76a1be4071fec72
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agofetch tags when update local git repo
Lin Yang [Mon, 17 Dec 2012 06:08:32 +0000 (14:08 +0800)]
fetch tags when update local git repo

Change-Id: I62e9b6f135d1e63511d92f5e1b6c20caba8da356
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoHandle the issue of missing git repo under cache dir
Lin Yang [Thu, 13 Dec 2012 06:57:47 +0000 (14:57 +0800)]
Handle the issue of missing git repo under cache dir

Change-Id: I768d179120d953c22142e4bc8e274f3556f95e96
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoUse another script to update local git tree
Lin Yang [Mon, 10 Dec 2012 06:18:03 +0000 (14:18 +0800)]
Use another script to update local git tree

Change-Id: Icc682744e0c4c26e17f52c32d94fc6b14fe8bc25
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoGive warning about multiply spec files
Lin Yang [Fri, 7 Dec 2012 10:08:42 +0000 (18:08 +0800)]
Give warning about multiply spec files

Change-Id: Idab6624c1e9e7ba7a926774229f585076526c1b6
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agogive warning for multiply specfile under packaging
Lin Yang [Fri, 7 Dec 2012 04:01:19 +0000 (12:01 +0800)]
give warning for multiply specfile under packaging

Change-Id: I5689a1fbd0744837d30cdfdd81b869960069af93
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agocatch no specfile exception when buildcheck
Lin Yang [Fri, 7 Dec 2012 03:26:19 +0000 (11:26 +0800)]
catch no specfile exception when buildcheck

Change-Id: I346c47a964c1c0b589c19fbda607204fac0b256c
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agomore clear feedback when change still under review
Lin Yang [Fri, 23 Nov 2012 09:55:54 +0000 (17:55 +0800)]
more clear feedback when change still under review

Change-Id: I7d5e20bef47e17e34e87f77c70e53e33094aad6d
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoonly update git cache when refupdate
Lin Yang [Fri, 23 Nov 2012 09:53:41 +0000 (17:53 +0800)]
only update git cache when refupdate

Change-Id: Ib1b99ca2d2e20ddf5805924fd5ffd7f08da3cddb
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agogive warning if no new changelog entry
Lin Yang [Fri, 23 Nov 2012 08:25:30 +0000 (16:25 +0800)]
give warning if no new changelog entry

Change-Id: Ia6ec8b9eb08c474db6209e3277fc33e2805e9e6a
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agoSupport pristine-tar when generate tarball tz
Lin Yang [Mon, 19 Nov 2012 06:30:00 +0000 (14:30 +0800)]
Support pristine-tar when generate tarball

Because gbs based on local upstream and pristine-tar branch, not
remote, to support pristine-tar. So checkout these two branches before
gbs export.

Change-Id: I1340497f6cc702be650fbea465f6a291342f5255
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
11 years agocombine build result of all repo into one message
Lin Yang [Mon, 5 Nov 2012 09:47:40 +0000 (17:47 +0800)]
combine build result of all repo into one message

11 years agorename triggerbuild to buildtrigger, fix bugs
Hasan Wan [Fri, 2 Nov 2012 08:25:52 +0000 (16:25 +0800)]
rename triggerbuild to buildtrigger, fix bugs

Change-Id: I8cb140ddb42ab7a85f663a151d3ce1c64865c6a8
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
11 years agolisten obs event to get buildcheck result
Lin Yang [Fri, 2 Nov 2012 08:19:28 +0000 (16:19 +0800)]
listen obs event to get buildcheck result

11 years agouse parameter file to trigger downstream job
Lin Yang [Fri, 2 Nov 2012 05:57:03 +0000 (13:57 +0800)]
use parameter file to trigger downstream job

11 years agosend out warning if no mapping for this project
Lin Yang [Mon, 29 Oct 2012 07:24:33 +0000 (15:24 +0800)]
send out warning if no mapping for this project

12 years agoClean unused function in utils module 0.9
Lin Yang [Wed, 26 Sep 2012 04:37:39 +0000 (12:37 +0800)]
Clean unused function in utils module

12 years agoMove rpmlint to isolate module
Lin Yang [Wed, 26 Sep 2012 04:29:24 +0000 (12:29 +0800)]
Move rpmlint to isolate module

12 years agoImprove gerrit comment when submit to OBS directly
Lin Yang [Thu, 20 Sep 2012 08:37:42 +0000 (16:37 +0800)]
Improve gerrit comment when submit to OBS directly

12 years agoSupport more gerrit client function
Lin Yang [Thu, 20 Sep 2012 03:46:05 +0000 (11:46 +0800)]
Support more gerrit client function

12 years agoMerge branch 'devel' of otctools:jenkins-scripts into devel
Lin Yang [Wed, 19 Sep 2012 05:40:49 +0000 (13:40 +0800)]
Merge branch 'devel' of otctools:jenkins-scripts into devel

12 years agoMerge "Optimize code" into devel
Hasan Wan [Wed, 19 Sep 2012 02:21:03 +0000 (19:21 -0700)]
Merge "Optimize code" into devel

12 years agouse new method to parse git-obs-mapping xml file
Lin Yang [Tue, 18 Sep 2012 09:21:23 +0000 (17:21 +0800)]
use new method to parse git-obs-mapping xml file

12 years agoQuit execution when tag is deleted
Lin Yang [Mon, 17 Sep 2012 06:54:45 +0000 (14:54 +0800)]
Quit execution when tag is deleted

12 years agoDisable check tag format when it don't map to OBS
Lin Yang [Fri, 14 Sep 2012 06:59:30 +0000 (14:59 +0800)]
Disable check tag format when it don't map to OBS

12 years agoFix typo when use 'GIT_CACHE_DIR' variable
Lin Yang [Fri, 14 Sep 2012 06:25:12 +0000 (14:25 +0800)]
Fix typo when use 'GIT_CACHE_DIR' variable

12 years agoCreate a mapping file handle lib
Hasan Wan [Wed, 12 Sep 2012 02:12:35 +0000 (10:12 +0800)]
Create a mapping file handle lib

Change-Id: I46aa301e245be5c5334be3cf00c37e632821255a
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoOptimize code
LingchaoX Xin [Wed, 12 Sep 2012 10:41:42 +0000 (18:41 +0800)]
Optimize code

Change-Id: I759c4fae0470d5d0b44842b026d7e358ac5a84b6

12 years agosupport send email to CC list
Lin Yang [Wed, 12 Sep 2012 06:17:33 +0000 (14:17 +0800)]
support send email to CC list

12 years agoSupport abstract message from GPG signed tag
Lin Yang [Fri, 7 Sep 2012 07:26:04 +0000 (15:26 +0800)]
Support abstract message from GPG signed tag

12 years agoFix compat issue with older OBS, fix email send bug in request
Hasan Wan [Fri, 7 Sep 2012 05:16:19 +0000 (13:16 +0800)]
Fix compat issue with older OBS, fix email send bug in request

Change-Id: Iae48f86f6b3ce9fbd272c9cc03e1b215e6b141d0
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoAdd "job_" prefix to all jenkins scripts
Lin Yang [Thu, 6 Sep 2012 10:32:47 +0000 (18:32 +0800)]
Add "job_" prefix to all jenkins scripts

12 years agoEnhance the message of tag format check
Lin Yang [Thu, 6 Sep 2012 09:30:53 +0000 (17:30 +0800)]
Enhance the message of tag format check

12 years agoSupport special character in gerrit comment
Lin Yang [Thu, 6 Sep 2012 09:16:53 +0000 (17:16 +0800)]
Support special character in gerrit comment

use single quotes to strong quoting all meta-characters in SSH

12 years agoBuildcheck scripts clean up
Hasan Wan [Thu, 30 Aug 2012 09:08:31 +0000 (17:08 +0800)]
Buildcheck scripts clean up

Change-Id: I4c2cb7a47d1f69484332406170011977b9d7e937
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoFix a bug about mail_sener
Hasan Wan [Thu, 30 Aug 2012 09:07:02 +0000 (17:07 +0800)]
Fix a bug about mail_sener

Change-Id: Ib493f73b405631f5117ea47735f84051e14d9fb5
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoSupport check whether commit exist in remote branch
Lin Yang [Thu, 30 Aug 2012 08:17:56 +0000 (16:17 +0800)]
Support check whether commit exist in remote branch

12 years agoMail sender clean up
Hasan Wan [Wed, 29 Aug 2012 09:35:39 +0000 (17:35 +0800)]
Mail sender clean up
Prepare the mail body before trigger the mail sender job

Change-Id: Ia2523f219b97b19a7dc5e0d46ad76d150dbc68db
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoRevert "bug fix: use base64 encoded string to pass email env"
Hasan Wan [Wed, 29 Aug 2012 08:26:47 +0000 (16:26 +0800)]
Revert "bug fix: use base64 encoded string to pass email env"

This reverts commit f8adc8b006c6f50b994df8ef9238e4adf6230e6a.

12 years agoFix return error when call get_config
LingchaoX Xin [Wed, 29 Aug 2012 02:54:24 +0000 (10:54 +0800)]
Fix return error when call get_config

When I call get_config with `get_config('remote.origin.url')` in IPython
, it occured bellow:

Out[10]: 'ssh://xxx@xxx/jenkins-scripts.gi'

But right result should be:

Out[10]: 'ssh://xxx@xxx/jenkins-scripts.git'

Change-Id: I0d45b34cc3d6879170d8aeb819a53c1efffda462

12 years agouse gerrit module instead of using gerrit command directly
Lin Yang [Tue, 28 Aug 2012 09:42:33 +0000 (17:42 +0800)]
use gerrit module instead of using gerrit command directly

12 years agobug fix: use base64 encoded string to pass email env
Hasan Wan [Tue, 28 Aug 2012 08:11:42 +0000 (16:11 +0800)]
bug fix: use base64 encoded string to pass email env

Change-Id: I4ab023703b16844d3ffb477d9e69790f44073dac
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoUpdate _gerritinfo file when submit to OBS
Lin Yang [Mon, 27 Aug 2012 07:15:15 +0000 (15:15 +0800)]
Update _gerritinfo file when submit to OBS

_gerritinfo will follow below format:
PROJECT: ${gerrit_project}
COMMIT_ID: ${commit_id}

12 years agoAuto generate new changelog entry baseon submit tag
Hasan Wan [Fri, 24 Aug 2012 07:10:06 +0000 (15:10 +0800)]
Auto generate new changelog entry baseon submit tag

Change-Id: I05f542e75d93b1e34cd340a0306717718e7cb26b
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoSupoort create new package in OBS linked project 0.8
Lin Yang [Fri, 24 Aug 2012 07:16:24 +0000 (15:16 +0800)]
Supoort create new package in OBS linked project

When OBS project is linked to another one, before commit code to this
OBS project, should branch corresponding package to this linked project.

12 years agoFix several bugs:
Hasan Wan [Wed, 22 Aug 2012 06:38:26 +0000 (14:38 +0800)]
Fix several bugs:
1. Unicode issues when wirting to file as envs
2. Remove update git ops, supposed that git tree are latest, because git pull
   will lead to failed if called in parallel
3. Remove Debug Env settings
4. Handle the char ':' in git subject when split the key-value by it

Change-Id: I605aca812cd88c8a2e49adf7efe52a90c432a5d2
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoFix bug when no build log found
Hasan Wan [Wed, 22 Aug 2012 06:37:26 +0000 (14:37 +0800)]
Fix bug when no build log found

Change-Id: I90f457673042650ae844079ee1ae3ea2a9574107
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agosupport light weight tag "build/*"
Lin Yang [Wed, 22 Aug 2012 06:35:23 +0000 (14:35 +0800)]
support light weight tag "build/*"

12 years agoOBS_GIT data clean up, show SR comments in Gerrit messages
Hasan Wan [Mon, 20 Aug 2012 06:32:35 +0000 (14:32 +0800)]
OBS_GIT data clean up, show SR comments in Gerrit messages

Change-Id: I5af14a4b2b0897d29f436756a642c04adfef73ed
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoPost a comments when request is rejected
Hasan Wan [Mon, 20 Aug 2012 03:09:33 +0000 (11:09 +0800)]
Post a comments when request is rejected

Change-Id: I09261ef86d4a4434e4d338b6bcd7c10a80edba3a
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years ago1. cleanup environment variable
Lin Yang [Fri, 17 Aug 2012 09:35:29 +0000 (17:35 +0800)]
1. cleanup environment variable
2. support checkout package from obs linked project

12 years agoemail template amend
Hasan Wan [Wed, 15 Aug 2012 06:35:21 +0000 (14:35 +0800)]
email template amend

Change-Id: I8592b7d677469b18b59c1e5ab4b11a7b3bbe7c6f
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoaccepted tag format accepted/${version}/${accepte_datetime}
Hasan Wan [Wed, 15 Aug 2012 03:18:27 +0000 (11:18 +0800)]
accepted tag format accepted/${version}/${accepte_datetime}

fix a bug about mailer

Change-Id: I6c9954bdadb56dc2ce5b93e92aa66f02b75c2177
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agouse gerrit class to handle comments posting, fix attachment bug
Hasan Wan [Mon, 13 Aug 2012 08:19:09 +0000 (16:19 +0800)]
use gerrit class to handle comments posting, fix attachment bug

Change-Id: Ic00b720d3dabdf60e7a8bd07ed5e00858358f5e6
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agopush accepted tag back, fix some email addr issues
Hasan Wan [Mon, 13 Aug 2012 08:16:36 +0000 (16:16 +0800)]
push accepted tag back, fix some email addr issues

Change-Id: I016acddfee8b7b2d6ef123023b289bc035454a31
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agocreate accpeted tag when SR accepted on OBS
Hasan Wan [Fri, 10 Aug 2012 06:50:05 +0000 (14:50 +0800)]
create accpeted tag when SR accepted on OBS

Change-Id: I52968766806f16f006cfc0649d7aa5db51a08344
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoInclude commit id in tag object, fix an issue about create tag
Hasan Wan [Fri, 10 Aug 2012 06:49:28 +0000 (14:49 +0800)]
Include commit id in tag object, fix an issue about create tag

Change-Id: Iab3a6df168e327abc34cf4e1ac726f62951df3d3
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoAdd the request job, reuse boss-participant-requests
Hasan Wan [Fri, 10 Aug 2012 02:36:48 +0000 (10:36 +0800)]
Add the request job, reuse boss-participant-requests

Change-Id: I0ca05a6e2a062d633b3d2b3e007a94fd28d21f62
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoadapt mail sender to mail_sender jobs
Hasan Wan [Thu, 9 Aug 2012 10:17:42 +0000 (18:17 +0800)]
adapt mail sender to mail_sender jobs

Change-Id: Id7d7a977b66c866fa31dcf22222386d49c3487da
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoAdd gerrit module
Hasan Wan [Thu, 9 Aug 2012 09:29:22 +0000 (17:29 +0800)]
Add gerrit module

Change-Id: I474a0c51c533598c27d129085e813a57ab26c00d
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agomove all submodules to common directory
Lin Yang [Thu, 9 Aug 2012 08:18:13 +0000 (16:18 +0800)]
move all submodules to common directory

12 years agonew script for ruote_workitems job to dispatch obsevent
Li Yi [Tue, 7 Aug 2012 08:12:47 +0000 (16:12 +0800)]
new script for ruote_workitems job to dispatch obsevent

two slave job 'requests' and 'repomaker' will keep listening
to amqp queues which specified by job name for the dispatched events

12 years agoMove share module to common directory, create new job script mail_sender 0.7
Hasan Wan [Tue, 7 Aug 2012 04:53:18 +0000 (12:53 +0800)]
Move share module to common directory, create new job script mail_sender

Change-Id: Ibdf28256a4da32ed75deec89d48f9cbd84a16cb8
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoEnhance email sender
Hasan Wan [Mon, 6 Aug 2012 13:17:53 +0000 (21:17 +0800)]
Enhance email sender

Change-Id: I15248262a230be0c954cf6c423ab1c63dcc3a454
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agocontinue support previous tag format 'build/*'
Lin Yang [Fri, 3 Aug 2012 09:59:14 +0000 (17:59 +0800)]
continue support previous tag format 'build/*'

12 years agoclean up the log output, delete the testing project from OBS after check
Hasan Wan [Thu, 2 Aug 2012 09:43:56 +0000 (17:43 +0800)]
clean up the log output, delete the testing project from OBS after check

Change-Id: Ibfeeb177d05e052e98f51c968cb91b0689bb96cb
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoparse branch name from tag name, submitted by gbs submit
Lin Yang [Thu, 2 Aug 2012 08:54:18 +0000 (16:54 +0800)]
parse branch name from tag name, submitted by gbs submit

12 years agoEnable mail sending when buildcheck failed
Hasan Wan [Wed, 1 Aug 2012 03:31:32 +0000 (11:31 +0800)]
Enable mail sending when buildcheck failed

Change-Id: I1ad5c95d793c5ac0b47406aa0f0a67c851ef6d89
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agoadd simple email sender
Hasan Wan [Tue, 31 Jul 2012 13:41:24 +0000 (21:41 +0800)]
add simple email sender

Change-Id: I480e0f499f1a60ae5d106b4c19aaaa47d19a1d5c
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agouse git clone --reference to improve network performance
Lin Yang [Mon, 30 Jul 2012 04:21:11 +0000 (12:21 +0800)]
use git clone --reference to improve network performance

12 years agouse tag submit/* to trigger submission to obs
Lin Yang [Fri, 27 Jul 2012 11:47:15 +0000 (19:47 +0800)]
use tag submit/* to trigger submission to obs

12 years agoImplement build check job
Hasan Wan [Fri, 27 Jul 2012 07:48:52 +0000 (15:48 +0800)]
Implement build check job

Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agore-implement scripts to python
Lin Yang [Wed, 25 Jul 2012 02:46:52 +0000 (10:46 +0800)]
re-implement scripts to python

12 years agoadd mysql.py
Hasan Wan [Fri, 13 Jul 2012 03:09:30 +0000 (11:09 +0800)]
add mysql.py

Signed-off-by: Hasan Wan <hasan.wan@intel.com>
12 years agosupport rpmlint in policy check
Lin Yang [Wed, 25 Jul 2012 02:41:40 +0000 (10:41 +0800)]
support rpmlint in policy check

12 years agoimport existing scripts to init project
Lin Yang [Tue, 26 Jun 2012 08:48:30 +0000 (16:48 +0800)]
import existing scripts to init project