services/jenkins-scripts.git
7 years agoMove enable link project status for prerelease after enable the build flag 31/117131/2
Yonghee Han [Fri, 3 Mar 2017 02:26:57 +0000 (11:26 +0900)]
Move enable link project status for prerelease after enable the build flag
Sometimes prelease project status is present the build disable

Change-Id: I092c298b81d577b6cbcdc82512596ee095a54fcb

7 years agoMerge "[BuildMonitor] fix 'BUILD-MONITOR(Post_Image)' job fail issue after 'SR Accept...
SungHun Hwang [Thu, 2 Mar 2017 04:56:04 +0000 (20:56 -0800)]
Merge "[BuildMonitor] fix 'BUILD-MONITOR(Post_Image)' job fail issue after 'SR Accept'" into devel

7 years ago[BuildMonitor] fix 'BUILD-MONITOR(Post_Image)' job fail issue after 'SR Accept' 70/116770/1
SungHun Hwang [Tue, 28 Feb 2017 06:21:34 +0000 (15:21 +0900)]
[BuildMonitor] fix 'BUILD-MONITOR(Post_Image)' job fail issue after 'SR Accept'

1. After 'SR Accept', occasionally,
   'BUILD-MONITOR' job which bm_stage is 'Post_Image' failed
   this is bcz env file is overlapped and
   the order of inserting the table_id is twisted

   So I fixed the trigger_next code

2. fix typo

Change-Id: I2714c58fd54fb46f3e0a891e8f330ea5a5f37c8e
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoVerify that the SR was created on the correct branch 22/114622/4
Yonghee Han [Tue, 14 Feb 2017 08:16:46 +0000 (17:16 +0900)]
Verify that the SR was created on the correct branch
ex) Good SR
   $ git checkout tizen_3.0
   $ gbs submit -m 'Good SR'
 Bad SR
 $ git checkout tizen
 $ gbs submit --tag submit/tizen_3.0/{date}.{time} -m 'Bad SR'

Change-Id: I1560a18d7466d047fb1c4f25afd1563b2f1b8fbe

7 years ago[BuildMonitor] fix to get the right bm_img_path when there are various img file formats 16/116616/1
SungHun Hwang [Mon, 27 Feb 2017 07:59:03 +0000 (16:59 +0900)]
[BuildMonitor] fix to get the right bm_img_path when there are various img file formats

fix to get the right bm_img_path from 'manifest.json' file
when there are various img file formats

mic support various image file formats (*.tar.gz, *.bz2, etc)
some images in common profile are created by *.bz2

Change-Id: Id9506867062b418a61591e6b0556b361821fd2ac
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Update sr_stage table for testing" into devel
Junghyun Kim [Mon, 27 Feb 2017 07:05:15 +0000 (23:05 -0800)]
Merge "Update sr_stage table for testing" into devel

7 years ago[BuildMonitor] revert add 'ORDER BY id desc LIMIT 1' 13/116513/1
SungHun Hwang [Mon, 27 Feb 2017 01:01:10 +0000 (10:01 +0900)]
[BuildMonitor] revert add 'ORDER BY id desc LIMIT 1'

revet add 'ORDER BY id desc LIMIT 1' patch
this is not a root cause

===========================================================================
add 'ORDER BY id desc(ending) LIMIT 1' when selecting the build_snapshot_id
to prevent getting the wrong build_snapshot_id
===========================================================================

Change-Id: I131c06b8e9a6c3eea92711ae7de5573110b49ec4
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoUpdate sr_stage table for testing 11/116511/1
Junghyun Kim [Mon, 27 Feb 2017 00:31:29 +0000 (09:31 +0900)]
Update sr_stage table for testing

Change-Id: Ia1aebaa766dc0aab52f4d62eac5964225277627d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "[BuildMonitor] clear the code after changing the build fail check method"...
SungHun Hwang [Mon, 27 Feb 2017 00:18:54 +0000 (16:18 -0800)]
Merge "[BuildMonitor] clear the code after changing the build fail check method" into devel

7 years ago[BuildMonitor] clear the code after changing the build fail check method 10/116510/1
SungHun Hwang [Mon, 27 Feb 2017 00:07:23 +0000 (09:07 +0900)]
[BuildMonitor] clear the code after changing the build fail check method

Change-Id: I8885c51ef937e0d069ce0ec4f2f74f3a9f68ae97
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoADDED: inserting data to table trbs_smoke_suite_test 13/116113/2
Junghyun Kim [Thu, 23 Feb 2017 03:46:18 +0000 (12:46 +0900)]
ADDED: inserting data to table trbs_smoke_suite_test

Fixed by Jaekyu Park

Change-Id: Ie5ee33f226779a1abdc6f88615bf737e5e7a8256
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[BuildMonitor] change the build fail check method
SungHun Hwang [Sun, 26 Feb 2017 22:59:46 +0000 (07:59 +0900)]
[BuildMonitor] change the build fail check method

change the build fail check method from the status of [build_project] table
to bBuildFail which is passed over from snapshot job

Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoRelease 1.4.1 release-20170224
SoonKyu Park [Fri, 24 Feb 2017 04:35:01 +0000 (13:35 +0900)]
Release 1.4.1

7 years agoDo not remove xml files in directory 'depends'
Junghyun Kim [Tue, 21 Feb 2017 05:08:12 +0000 (14:08 +0900)]
Do not remove xml files in directory 'depends'

Change-Id: I374ce7fe4137c603f36412e62fa9ae2c6d20f6e7
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoChange the Raise error code when did not found image-configurations in prerelease
Yonghee Han [Fri, 17 Feb 2017 06:24:44 +0000 (15:24 +0900)]
Change the Raise error code when did not found image-configurations in prerelease
must continue to create images.

Change-Id: Idd1a6acc054906aa6ae3464aaa8cc0019873a139

7 years ago[BuildMonitor] add 'ORDER BY id desc LIMIT 1'
SungHun Hwang [Tue, 14 Feb 2017 11:03:42 +0000 (20:03 +0900)]
[BuildMonitor] add 'ORDER BY id desc LIMIT 1'

add 'ORDER BY id desc(ending) LIMIT 1' when selecting the build_snapshot_id
to prevent getting the wrong build_snapshot_id

Change-Id: I6dcba6fbbcd2a4ef6c0dc2b3b1cfc596619efcad
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoUse the OBS_package name on Staging OBS project
Yonghee Han [Tue, 14 Feb 2017 08:47:54 +0000 (17:47 +0900)]
Use the OBS_package name on Staging OBS project
If a obs package has one spec file then there is use of OBS_package name in git-obs-mapping.xml
ex)
  To use : <project OBS_package="pkgmgr-server" name="platform/core/appfw/pkgmgr-server"/>

If packaging directory contains multiply specfiles, use attribution OBS_package to specify the specfile name

Change-Id: I95ec8c134d8e6c02f125f9edfdb157d2837977fe

7 years ago[BuildMonitor] Add the filter func to remove the dropped project
SungHun Hwang [Fri, 10 Feb 2017 09:16:59 +0000 (18:16 +0900)]
[BuildMonitor] Add the filter func to remove the dropped project

will be replaced 'prerelease' to 'trbs'
so the build status of the dropped prerelease projects
should not be shown at Tizen dashboard

add the filter func to remove the dropped project

Change-Id: Ide6cbc675135254047433afe05567f129b622fc6
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoADDED: Script for the new job trbs_test_result_receiver
Junghyun Kim [Fri, 10 Feb 2017 04:05:47 +0000 (13:05 +0900)]
ADDED: Script for the new job trbs_test_result_receiver

Change-Id: I3022c0f9209f87b6be172f56813808f67122acdd
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[BuildMonitor] rollback to add "broken" status in common/buildservice.py
SungHun Hwang [Thu, 9 Feb 2017 11:02:43 +0000 (20:02 +0900)]
[BuildMonitor] rollback to add "broken" status in common/buildservice.py

[PROBLEM]
The 'pre-release-create' job do not trigger image-creator job

error log : **FATAL: Build not successful. Skip creating images.

[REASON]
There is a *_aggregate pkg broken issue at prerelease project (already known issue)
After applying this patch, 'broken' status is uploaded to the description of OBS
and the jenkins job checks the 'broken' and do not trigger image-creator job

The agg broken issue is already fixed at TRBS, so this patch also is applied
But at PUBLIC, it's not fixed yet. So rollback this patch

Change-Id: Ifba6fbeebff702bfedc0608acdc02ca9e42e2b39
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years ago[BuildMonitor] Add the check condition of the pkg build_status
SungHun Hwang [Thu, 9 Feb 2017 07:02:51 +0000 (16:02 +0900)]
[BuildMonitor] Add the check condition of the pkg build_status

[job_buildmonitor.py]    - Add the check condition('broken' & 'unresolvable')
[common/buildservice.py] - Add the 'broken' when updating the obs description

Change-Id: Ic3844f13f548e826f9ae10b7b910ee3e0353491b
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years ago[BuildMonitor] BUGFIX : fix the status value
SungHun Hwang [Tue, 7 Feb 2017 09:00:22 +0000 (18:00 +0900)]
[BuildMonitor] BUGFIX : fix the status value

1. fix the status value of [build_image] & [sr_status_detail] tables

[build_image] table

 Before   | After
-------------------
'failed'  | 'F'
'success' | 'S'

[sr_status_detail] table

 Before   | After
-------------------
'ACCEPTED'| 'A'
'REVOKED' | 'R'

2. remove useless comment

Change-Id: I8464e31df57450f76fd1052f92037de3178bc267
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years ago[BuildMonitor] Add the image-creation check routine
SungHun Hwang [Mon, 6 Feb 2017 05:23:11 +0000 (14:23 +0900)]
[BuildMonitor] Add the image-creation check routine

1. Add the image-creation check routine
   to check the completion of image-creation stage at Post-release

2. modifications
  [job_create_snapshot.py] triggering to 'BUILD-MONITOR-POST' job
  [job_buildmonitor.py] get the event & fill the status in the db

Change-Id: If4fa718f7d697b578d54b5e3222703c6e104d3a8
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years ago[BuildMonitor] truncate the msg when the data is too long
SungHun Hwang [Mon, 6 Feb 2017 05:05:42 +0000 (14:05 +0900)]
[BuildMonitor] truncate the msg when the data is too long

1. column size up (100 -> 300) at mysql_db

[sr_commit] table
- git_commit_message
- sr_submit_message

[sr_status_detail] table
- obs_request_comment

2. truncate the msg when the data is too long at jenkins-script
3. moved the config value to 'jobs/configuration'

Change-Id: I7feaf3da80f7c95aa4297793c5ba736c4e2b75be
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoRelease 1.4 release-20170206
SoonKyu Park [Sat, 4 Feb 2017 07:26:30 +0000 (16:26 +0900)]
Release 1.4

Change-Id: I09af85dd820693d036a1dbacd192ae1d3f5f10c9

7 years agoDo not check spec name if only one spec file is there
hyokeun [Wed, 1 Feb 2017 03:34:29 +0000 (12:34 +0900)]
Do not check spec name if only one spec file is there

Change-Id: I5a47a407b04b12bc6430d258b36648b950113127

7 years agoBUGFIX: transform data string from gerrit
Junghyun Kim [Thu, 26 Jan 2017 03:32:45 +0000 (12:32 +0900)]
BUGFIX: transform data string from gerrit

MySQL cannot recognize datetime pattern "2017-01-26 11:29:53 +0900\n",
so we just take first two part "2017-01-26 11:29:53" by split(' ')

Change-Id: I7fcf2d1bc6272fbb7ea67e5000f4233dda26561b
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[make_dep_graph] enhance the highlight feature
Junghyun Kim [Thu, 26 Jan 2017 02:24:25 +0000 (11:24 +0900)]
[make_dep_graph] enhance the highlight feature

highlight only edges connected directly to the selected Node.

Change-Id: If9668a009c9ef4c3b31c1947877719086f56bb30
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[BuildMonitor] changed the content of obs_req_comment
SungHun Hwang [Thu, 26 Jan 2017 00:26:49 +0000 (09:26 +0900)]
[BuildMonitor] changed the content of obs_req_comment

changed the obs_req_comment from 'comment' to 'description'
bcz the content of 'description' is better in quality

Change-Id: I95a9b9032ada835adfd49a00bcbca2a199c68473
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agodep_graph_simple.js is added for template_simple
Junghyun Kim [Wed, 25 Jan 2017 23:54:20 +0000 (08:54 +0900)]
dep_graph_simple.js is added for template_simple

This commit prohibits double click events for template_simple.

Change-Id: I0eeec421b28831f50c4b5d897c8097a044fb2046
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[BuildMonitor] BUGFIX: wrong snapshot_url
SungHun Hwang [Wed, 25 Jan 2017 23:04:56 +0000 (08:04 +0900)]
[BuildMonitor] BUGFIX: wrong snapshot_url

fixed the wrong snapshot_url in [build_snapshot] table

before:  http://download.tizen.org/snapshots/...
after :  http://download.tizen.org/prerelease/...

Change-Id: I3990834b882af7b553758917792856fa51571af1
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoProfile info is sent additionaly to BUILD_MONITOR
Junghyun Kim [Wed, 25 Jan 2017 07:55:10 +0000 (16:55 +0900)]
Profile info is sent additionaly to BUILD_MONITOR

Change-Id: Icafcf23ab492a5eaaa4c0f1af768c075877ebd3d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoA search box is added for simple dependency graph.
Junghyun Kim [Wed, 25 Jan 2017 00:52:26 +0000 (09:52 +0900)]
A search box is added for simple dependency graph.

Change-Id: I09f0d31ccbf426f8849b7edc271e54d67f4a5082
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoBUGFIX: previous repo/arch should not be removed.
Junghyun Kim [Tue, 24 Jan 2017 10:52:57 +0000 (19:52 +0900)]
BUGFIX: previous repo/arch should not be removed.

PROBLEM:
- Due to rmtree(sync_dest), previous depepenency graphs are removed.

SOLUTION:
- sync_dest is set to only that repo/arch.
- only target repo/arch directory is removed now.

Change-Id: I67050a53c7e4cb4d8c46889e1d784b7fd0b72417
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoUse PATH_REPO_BASE instead of IMG_SYNC_DEST_BASE
Junghyun Kim [Tue, 24 Jan 2017 02:13:55 +0000 (11:13 +0900)]
Use PATH_REPO_BASE instead of IMG_SYNC_DEST_BASE

Since make_dep_graph is execued on jenkins slave 'download',
it does not need to use 'rsync::'.

Change-Id: I7a1db6837d6131ebad1f1e98f75776032c2425f1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agofix post-image-creation error
Yonghee Han [Sat, 21 Jan 2017 06:15:24 +0000 (15:15 +0900)]
fix post-image-creation error
trigger_next("BUILD-MONITOR", bm_data)
NameError: global name trigger_next is not defined

Change-Id: I2cfd18e18df73308b38c67b70a7bbd63a1c764c3

7 years agoREPA: check permission only if "REPA_CHECK_PERMISSION" is set
Junghyun Kim [Sat, 21 Jan 2017 00:22:27 +0000 (09:22 +0900)]
REPA: check permission only if "REPA_CHECK_PERMISSION" is set

- buildmonitor
  Do not check build failure for _aggregate packages

Change-Id: Id8c848d80f292bb6754a5bd6e682090271a9fe24
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoInstalls to /var/lib/jenkins/jenkins-scripts/
hyokeun [Fri, 20 Jan 2017 02:53:06 +0000 (11:53 +0900)]
Installs to /var/lib/jenkins/jenkins-scripts/

Change-Id: Ib7dbc28b6038582e2ae08458f9dbfb2703f52884

7 years ago[BuildMonitor] added the trbs build logging part for the public dashboard
SungHun Hwang [Mon, 16 Jan 2017 03:11:20 +0000 (12:11 +0900)]
[BuildMonitor] added the trbs build logging part for the public dashboard

1. added the TRBS_XXX function
2. fixed base64 decoding error when passing over from TRBS jobs to PRE jobs
3. changed from the pre_build_project_id to trbs_build_project_id
4. added the info_stage_id of trbs and changed the info_stage_id of pre/post

ex) info_stage_id
    SR_SUBMIT  = 1
+   TRBS_BUILD = 2
+   TRBS_SNAP  = 3
+   TRBS_IMAGE = 4
    PRE_BUILD  = 5
    PRE_SNAP   = 6
    PRE_IMAGE  = 7
    SR_ACCEPT  = 8
    POST_BUILD = 9
    POST_SNAP  = 10
    POST_IMAGE = 11

5. clear the useless comments and stage
6. changed the submitter name format

Change-Id: Ib897bc12841de33b2b2f682477d448278171a5b2
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoAdd DB logging for buildlogs
Junghyun Kim [Mon, 16 Jan 2017 02:29:14 +0000 (11:29 +0900)]
Add DB logging for buildlogs

Change-Id: I7a9b5a02233c148bfb3cc154d4057eaae4752e69
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago Add jenkins-scripts debian
shuai.fu [Tue, 6 Sep 2016 06:17:20 +0000 (14:17 +0800)]
 Add jenkins-scripts debian

Change-Id: I7cd2bffc999de4266732eab446bf139f15e833b5
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Conflicts:
packaging/.extra-repos

7 years agoChange directory order from "bp_id/proj_name" to "proj_name/bp_id"
Junghyun Kim [Wed, 11 Jan 2017 06:01:05 +0000 (15:01 +0900)]
Change directory order from "bp_id/proj_name" to "proj_name/bp_id"

This is more readable and it is better way to support the distributed
infrastructure environment.

Change-Id: I3420631af2bc3943fe0051aa8df25ed254472b82
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoJOB ADDED: repa accept/reject
Junghyun Kim [Tue, 10 Jan 2017 01:45:15 +0000 (10:45 +0900)]
JOB ADDED: repa accept/reject

To log repa accept/reject, buildmonitor.py is also modified.

Change-Id: Ib79aa65bc91986ca70205ddee50af92078eecd80
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoupdate script ( push the nuget server on jenkins master )
Yonghee Han [Mon, 9 Jan 2017 11:07:47 +0000 (20:07 +0900)]
update script ( push the nuget server on jenkins master )

Change-Id: Iaa1fa1c150f15fbf8bd39755241c413e81a1a862

7 years agojob_add_git_tag is added.
Junghyun Kim [Mon, 9 Jan 2017 07:02:26 +0000 (16:02 +0900)]
job_add_git_tag is added.

Changes:
- job_add_git_tag.py is added
- job_submit.py is modified.
  - This is because pushing a tag is done by admin
  - Using Forge Committer Identity in gerrit,
    tagger information will be forged.
  - Original job_submit.py uses 'gerrit_account_name'
    that is generated by gerrit, and it is not forged.
  - To get forged identity, we have to use
    git for-each-ref --format=%(tagger).

Change-Id: I6ff87154a3aa31493c4d329e2726ba32f7ba3303
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoNew feature : C# Create update-nuget job , Function : update Nuget package to Nuget...
Yonghee Han [Fri, 6 Jan 2017 08:12:10 +0000 (17:12 +0900)]
New feature : C# Create update-nuget job , Function : update Nuget package to Nuget server

Change-Id: Ie7c3d9b2b55041fb91114ddf6f6c6bd4f1c16c7c

7 years agoRelease 1.3 58/108658/1 release-20161231
SoonKyu Park [Thu, 5 Jan 2017 09:57:06 +0000 (18:57 +0900)]
Release 1.3

Change-Id: I54016b29680de404b797203a9f2e84c63daaf423

7 years agoMerge remote-tracking branch 'origin/devel' into release-20161231
SoonKyu Park [Thu, 5 Jan 2017 08:34:16 +0000 (17:34 +0900)]
Merge remote-tracking branch 'origin/devel' into release-20161231

7 years agoFix decoding error for git-obs-mapping list 62/108562/1
hyokeun [Thu, 5 Jan 2017 05:34:35 +0000 (14:34 +0900)]
Fix decoding error for git-obs-mapping list

Cause: contents are differ between Mapping V1 and V2
Fix: hard code item counts

Change-Id: Id3b37911b3bf3a3147b9435aedf62f0d3a59567c

7 years agoRevert " solve create ks file error"
SoonKyu Park [Thu, 5 Jan 2017 02:25:51 +0000 (11:25 +0900)]
Revert " solve create ks file error"

This reverts commit 76c09eae02c8088cfa96dd5b73d0afd6053a5c1f.

7 years agoMerge "Drop prerelease if build flag is no in the mapping" into devel
Yonghee Han [Thu, 5 Jan 2017 00:43:38 +0000 (16:43 -0800)]
Merge "Drop prerelease if build flag is no in the mapping" into devel

7 years agoMerge "[BuildMonitor] (multi-env, etc) sync up with job_trbs_obs.py of [TRBS]" into...
Yonghee Han [Thu, 5 Jan 2017 00:43:14 +0000 (16:43 -0800)]
Merge "[BuildMonitor] (multi-env, etc) sync up with job_trbs_obs.py of [TRBS]" into devel

7 years agoMerge "Use xml parser instead of string operation for git-ref-mapping" into devel
Yonghee Han [Thu, 5 Jan 2017 00:41:14 +0000 (16:41 -0800)]
Merge "Use xml parser instead of string operation for git-ref-mapping" into devel

7 years ago solve create ks file error
shuai.fu [Mon, 26 Dec 2016 03:01:05 +0000 (11:01 +0800)]
 solve create ks file error

Change-Id: I90c975e67ace3eef52854d44dbd5129dc367d179
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
7 years agoUse xml parser instead of string operation for git-ref-mapping 45/107145/2
Hyokeun Jeon [Tue, 27 Dec 2016 02:07:43 +0000 (11:07 +0900)]
Use xml parser instead of string operation for git-ref-mapping

Change-Id: Ie83b4139aa7613e9aaa39174a5a6c0805dc883b9

7 years ago[BuildMonitor] (multi-env, etc) sync up with job_trbs_obs.py of [TRBS] 47/105847/6
SungHun Hwang [Mon, 19 Dec 2016 07:41:46 +0000 (16:41 +0900)]
[BuildMonitor] (multi-env, etc) sync up with job_trbs_obs.py of [TRBS]

1. divide the huge packages and triggering the multi jobs
   to avoid "argument too big" error in [Pre_Snap_Packages] and [Post_Snap_Packages] stage
2. sync up with the rest part of [Pre_Snap_Packages] stage
3. fixed the build_image fail check bug in build_image table at [Image] stage
4. if at least one fails among bulid images
   then skip updating the sr_stage as 'C' at [Post_Image] stage
   (it needed to fix the code of job_buildmonitor)

* describe the each stage per jenkins-scripts
<buildmonitor stage>     < job_xxx.py >              < job name >
[Pre_Snap_Packages]   => job_pre_releae_obs.py    => pre-release-create
[Post_Snap_Packages]  => job_create_snapshot.py   => create-snapshot
[Image]               => job_imager.py            => image-creator
[Post_Image]          => job_post_imager.py       => post-image-creation

Change-Id: I72cedb0980fbf7440dcc4175dc29ebdb6f02a80b
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoDrop prerelease if build flag is no in the mapping 34/104934/4
Hyokeun Jeon [Wed, 14 Dec 2016 04:11:08 +0000 (13:11 +0900)]
Drop prerelease if build flag is no in the mapping

mapping.xml would be; <configure enable="true" build="no" />

Change-Id: I9f9ac38a6f40f43a49939c383355543c175f7de2

7 years agoMerge "Revert "Verify that the SR was created on the correct branch"" into devel
Junghyun Kim [Wed, 14 Dec 2016 04:36:54 +0000 (20:36 -0800)]
Merge "Revert "Verify that the SR was created on the correct branch"" into devel

7 years agoRevert "Verify that the SR was created on the correct branch" 23/104623/1
Yonghee Han [Wed, 14 Dec 2016 01:59:46 +0000 (17:59 -0800)]
Revert "Verify that the SR was created on the correct branch"

This reverts commit 13fe3c9941a07d74ed6980e055950f45e879107f.

Change-Id: Ia816a153b1b9d4a537992dec6aade65e5ae5e674

7 years agoMerge "dependency graph is changed to read both OBS and DB status." into devel
Yonghee Han [Mon, 12 Dec 2016 04:13:36 +0000 (20:13 -0800)]
Merge "dependency graph is changed to read both OBS and DB status." into devel

7 years agoMerge "[BuildMonitor] sync up with job_buildmonitor.py of TRBS" into devel
Yonghee Han [Mon, 12 Dec 2016 04:08:43 +0000 (20:08 -0800)]
Merge "[BuildMonitor] sync up with job_buildmonitor.py of TRBS" into devel

7 years agoMerge "Verify that the SR was created on the correct branch" into devel
Yonghee Han [Mon, 12 Dec 2016 03:51:26 +0000 (19:51 -0800)]
Merge "Verify that the SR was created on the correct branch" into devel

7 years ago[BuildMonitor] sync up with job_buildmonitor.py of TRBS 91/103691/1
SungHun Hwang [Fri, 9 Dec 2016 06:58:20 +0000 (15:58 +0900)]
[BuildMonitor] sync up with job_buildmonitor.py of TRBS

1. change the build fail check method from build_target status to build_project status
2. disable old check method (if stable then remove this)
3. clear the previous tables when entering the duplicated build_snapshot_id
4. when build failed in [Snap] stage, skip the next step in [BUILD-MONITOR] jobs
5. when build image failed write to 'F' status of build_image table
6. some bugfixes & remove useless log

Change-Id: Ifee89697ac0b2d408e191da06e33f2708a1dd74a
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agodependency graph is changed to read both OBS and DB status. 18/103418/1
Junghyun Kim [Thu, 8 Dec 2016 08:39:55 +0000 (17:39 +0900)]
dependency graph is changed to read both OBS and DB status.

Change-Id: I5729301c97d2db1a9f700e8facf2dbfca8c0f926
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoFix snapdiff sync error when daily repo base is not present and weekly repo base... 33/101333/1
Yonghee Han [Thu, 1 Dec 2016 01:35:51 +0000 (10:35 +0900)]
Fix snapdiff sync error when daily repo base is not present and weekly repo base is not present.

Change-Id: I4955082e1ee7b01c7854ad1e13ed79053e11a799

7 years agoFix download_num in prerelease 04/101204/1
hyokeun [Wed, 30 Nov 2016 11:39:04 +0000 (20:39 +0900)]
Fix download_num in prerelease

Change-Id: I23e995573229010943f8de34a1366c51b312ba39

7 years agoDo not set download_num in post release process 94/100494/1
hyokeun [Mon, 28 Nov 2016 09:07:11 +0000 (18:07 +0900)]
Do not set download_num in post release process

Change-Id: Ia6c9a4bed82a153fad5c1b6a5f3022e1d43a4764

7 years agoMerge "Fix download_num in prerelease, Block image creation if build failed" into...
Yonghee Han [Mon, 28 Nov 2016 05:55:37 +0000 (21:55 -0800)]
Merge "Fix download_num in prerelease, Block image creation if build failed" into devel

7 years agoFix download_num in prerelease, Block image creation if build failed 88/100388/1
hyokeun [Mon, 28 Nov 2016 04:40:25 +0000 (13:40 +0900)]
Fix download_num in prerelease, Block image creation if build failed

Change-Id: I135f79f7f7f6d6ada3028ff2b044257fa11311ee

7 years agoCleanup repo directory when have a previous directory 57/100357/2
Yonghee Han [Mon, 28 Nov 2016 02:22:24 +0000 (11:22 +0900)]
Cleanup repo directory when have a previous directory

Change-Id: Ie69a78384c970f6a62b1377ed69c80be7ea0ffb8

7 years agoadd lock/unlock function for the re.job 34/100334/1
Yonghee Han [Mon, 28 Nov 2016 00:06:23 +0000 (09:06 +0900)]
add lock/unlock function for the re.job
cmd: unlock cmd: lock

Change-Id: I9e22dae616a8ff3023dbc9399a5340c65c5a95ea

7 years ago[BuildMonitor] support the trbs project and enable the multi env 93/97093/3
SungHun Hwang [Fri, 11 Nov 2016 04:54:40 +0000 (13:54 +0900)]
[BuildMonitor] support the trbs project and enable the multi env

1. support the trbs project
2. enable the multi env and rearrange the job order
3. fixed the bm_img_size error at job_imager.py

Change-Id: I90b09d7e233f5f9a704992e2cceb536b6406889c
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Now supports the action "build_progress"." into devel
Yonghee Han [Tue, 22 Nov 2016 06:02:19 +0000 (22:02 -0800)]
Merge "Now supports the action "build_progress"." into devel

7 years agoAdd download_num in a obs description. Block build info update if download_num mismatch 23/99123/1
Yonghee Han [Tue, 22 Nov 2016 03:48:06 +0000 (12:48 +0900)]
Add download_num in a obs description. Block build info update if download_num mismatch

Change-Id: I1e18c38ee53fdbc93fb777aad16493a262e6cfc8

7 years agoNow supports the action "build_progress". 20/98820/2
Junghyun Kim [Mon, 21 Nov 2016 02:52:30 +0000 (11:52 +0900)]
Now supports the action "build_progress".

"HOME" is changed to "WORKSPACE"

Change-Id: I3963d57fa5e736b5a6d33ebca1bffab0a0dd019d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
8 years ago[BuildMonitor] bugfixes 79/96879/1
SungHun Hwang [Thu, 10 Nov 2016 11:55:35 +0000 (20:55 +0900)]
[BuildMonitor] bugfixes

1. change the get bm_img_size routine
2. add build_project_id temporarily

Change-Id: I38cdf6685420dc5319c869f71fd4f721c28533d9
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
8 years ago[BuildMonitor] fix the TypeError bug at Python 2.7.8 79/96779/2
SungHun Hwang [Thu, 10 Nov 2016 06:53:08 +0000 (15:53 +0900)]
[BuildMonitor] fix the TypeError bug at Python 2.7.8

Change-Id: I8912017fd147ea9acca52a6fef99221564093b2a
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
8 years ago[BuildMonitor] delete the buildmonitor.py in common folder 38/96738/1
SungHun Hwang [Thu, 10 Nov 2016 05:18:31 +0000 (14:18 +0900)]
[BuildMonitor] delete the buildmonitor.py in common folder

Change-Id: I62a1470a889da0ba961e0e97c06242629514a53a
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
8 years ago[BuildMonitor] change the monitoring method 07/96507/3
SungHun Hwang [Wed, 9 Nov 2016 07:27:00 +0000 (16:27 +0900)]
[BuildMonitor] change the monitoring method

1. structure
Before : module import & function call directly
After  : add new jenkins job named "BUILD-MONITOR" & trigger the job

2. change the buildmonitor file
Before : buildmonitor.py     in ~/jenkins-scripts/common folder
After  : job_buildmonitor.py in ~/jenkins-scripts        folder

3. modify the related jenkins job & spec files

Change-Id: I78afb496e10730acba84ca7d70825e319d419c2f
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
8 years agoVerify that the SR was created on the correct branch 77/96477/1
Yonghee Han [Wed, 9 Nov 2016 06:38:57 +0000 (15:38 +0900)]
Verify that the SR was created on the correct branch

Change-Id: I2d5d4768084bfe92ae012ce4d3db2726a4d20ace

8 years agoMerge "A dependency graph is generated automatically using the jenkins job "make_dep_...
Yonghee Han [Wed, 9 Nov 2016 02:06:01 +0000 (18:06 -0800)]
Merge "A dependency graph is generated automatically using the jenkins job "make_dep_graph"." into devel

8 years agoA dependency graph is generated automatically using the jenkins job "make_dep_graph". 47/94047/8
Junghyun Kim [Wed, 2 Nov 2016 00:44:09 +0000 (09:44 +0900)]
A dependency graph is generated automatically using the jenkins job "make_dep_graph".

The graph is generated in the four cases below:
1. When prerelease project is created (triggered by pre_release_gerrit).
  At this time, a build_progress graph is generated.
2. When prerelease project is published (triggered by pre_release_create->buildlogs).
  At this time, a dependency graph including only packages triggered by the SR is generated.
3. When an SR is accepted (triggered by request).
  At this time, a build_progress graph is generated.
4. When main project(e.g., Tizen:Mobile) is published (triggered by create_snapshot->buildlogs).
  At this time, a dependency graph for the main project is generated.

Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Conflicts:
job_post_image.py
packaging/jenkins-scripts.spec

Change-Id: I6706ff2da55d66f49afb56b14ae2107f67c1fca0
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
8 years ago[Buildmonitor] Added the build data logging parts for BuildMonitor 16/95416/3
SungHun Hwang [Thu, 3 Nov 2016 04:45:43 +0000 (13:45 +0900)]
[Buildmonitor] Added the build data logging parts for BuildMonitor

1. Added the build data logging parts in for BuildMonitor dashboard
   which can show the status of each build steps from beginning to the end

2. The related actions and python files are as below
  (1) gbs submit --------------- [job_submit.py]
  (2) [pre] packae build ------- [on OBS]
  (3) [pre] snapshot create ---- [job_pre_release_obs.py]
  (4) [pre] image creation  ---- [job_imager.py][job_post_imager.py]
  (5) SR accept or reject ------ [job_request.py]
  (6) [post] package build ----- [on OBS]
  (7) [post] snapshot creation - [job_create_snapshot.py]
  (8) [post] image creation ---- [job_imager.py]
  (9) Completed
  * pre : pre build / post : post build

3. The buildmonitor.py is the common interface file

Change-Id: Id97e8c5e131dc11713fdf58bbb0b794907cedaa1
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
8 years agoMerge "Update scripts because scm/meta/git system is changed" into devel
Yonghee Han [Wed, 2 Nov 2016 06:09:56 +0000 (23:09 -0700)]
Merge "Update scripts because scm/meta/git system is changed" into devel

8 years agoSkip updating ref-snapshot-info if no mapping exist 65/94765/1
hyokeun [Tue, 1 Nov 2016 05:56:53 +0000 (14:56 +0900)]
Skip updating ref-snapshot-info if no mapping exist

Change-Id: If95da95182bb601076d3a0f7a2a692c7e1d4fed3

8 years agoUpdate scripts because scm/meta/git system is changed 20/94420/1
Sehong Na [Sun, 30 Oct 2016 22:40:52 +0000 (07:40 +0900)]
Update scripts because scm/meta/git system is changed

Change-Id: I9477428527e899c967983badcdc2d767a5e375ff
Signed-off-by: Sehong Na <sehong.na@samsung.com>
8 years agoENABLED flag for git-ref-mapping update 45/94245/1
hyokeun [Fri, 28 Oct 2016 01:02:16 +0000 (10:02 +0900)]
ENABLED flag for git-ref-mapping update

Change-Id: If15e1bcfac222c7bf56ece8797b14790cf7590b0

8 years agoUpdating git-ref-mapping after release snapshot 56/94056/2
hyokeun [Thu, 27 Oct 2016 04:46:49 +0000 (13:46 +0900)]
Updating git-ref-mapping after release snapshot

Change-Id: I822f740afcbe5ed1e70a1e9ad884b75647b5160f

8 years agoAdd gitbuildstatus in Prerelease project 49/93649/1
Yonghee Han [Tue, 25 Oct 2016 06:49:35 +0000 (15:49 +0900)]
Add gitbuildstatus in Prerelease project

Change-Id: I6ed6e93182f732bbf9a5a033a27b88d5b82827d3

8 years agoREPO_PUBLISHED event is generated only once when all repos are published. Delete... 71/93571/1
Yonghee Han [Tue, 25 Oct 2016 04:13:02 +0000 (13:13 +0900)]
REPO_PUBLISHED event is generated only once when all repos are published. Delete chksnap option on prerelease project

Change-Id: Iecc5e89b4b7addebf956c3a3c2be4dded9d30392

8 years agoEnable triggerring buildlogs even for prerelease projects. 16/92416/1
Junghyun Kim [Mon, 17 Oct 2016 02:39:25 +0000 (11:39 +0900)]
Enable triggerring buildlogs even for prerelease projects.

Currently, creating a snapshot for prerelease projects (job_pre_release_obs.py)
does not trigger buildlogs unlike that for the main projects (job_create_snapshot.py).

To make a dependencey graph for prerelease projects, it is necessary to
include buildlogs job.

Change-Id: Iea5e1181a32e09efc8881aee02d8103b3587dca8
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
8 years agoRelease 1.2 release-1.2 sandbox/sai/prerelease
SoonKyu Park [Thu, 29 Sep 2016 04:21:53 +0000 (13:21 +0900)]
Release 1.2

Change-Id: Ieeece29f354009bf4379e0820d1f45e90aecb5af

8 years agoMerge "Modified to produce for the Prerelease Group SR." into devel
Yonghee Han [Wed, 28 Sep 2016 05:04:27 +0000 (22:04 -0700)]
Merge "Modified to produce for the Prerelease Group SR." into devel

8 years agoTrigger post-image-creation job with failed status if imager stucked 98/89998/1
hyokeun [Wed, 28 Sep 2016 04:13:50 +0000 (13:13 +0900)]
Trigger post-image-creation job with failed status if imager stucked
Problem: When image creation job stucked and aborted itself, post-image-creation job will not be called.
Fix: Prepare dummy failed trigger infomation. It will always trigger remaining job.

Change-Id: I8d73ff72ffdfd77f25133ac19b7d82b0db37bcfc

8 years agoModified to produce for the Prerelease 85/89485/1
Yonghee Han [Sat, 24 Sep 2016 00:16:44 +0000 (09:16 +0900)]
Modified to produce for the Prerelease
Group SR.

Normal operation
SR first build is complete, images created.
SR second build is complete, images created.

However, in the case of failure.
The problems do not stop with the first image produced does not create a second image.

Solution.
Modified to produce the first image and the second image can be generated.

Change-Id: Ibe3283040d56bed6e7ae68d682056edae012282e

8 years agoMerge patches from devel branch 51/88851/1
SoonKyu Park [Wed, 21 Sep 2016 02:30:48 +0000 (11:30 +0900)]
Merge patches from devel branch

Change-Id: I781c26760af0e4b10e79df2e96a25cee30792754

8 years agoDo not insert "CopyLinkedPackages: yes" multiple times. 91/86591/1
Junghyun Kim [Fri, 2 Sep 2016 04:22:37 +0000 (13:22 +0900)]
Do not insert "CopyLinkedPackages: yes" multiple times.

Change-Id: I8d2f817c179596c780b1b0ff69d37f3f3fd820e2
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
8 years agoMerge "Check existance of repo and image path for snapdiff" into devel
Yonghee Han [Thu, 18 Aug 2016 01:46:18 +0000 (18:46 -0700)]
Merge "Check existance of repo and image path for snapdiff" into devel

8 years agoCheck existance of repo and image path for snapdiff 87/84287/1
hyokeun [Thu, 18 Aug 2016 01:33:13 +0000 (10:33 +0900)]
Check existance of repo and image path for snapdiff

Change-Id: Ic0d685c48cdd72847670a7950f14ca32a4b70a3e

8 years agodisable check user in group 90/84190/1
Sehong Na [Wed, 17 Aug 2016 08:14:31 +0000 (17:14 +0900)]
disable check user in group

Change-Id: Ife810ce8740ec8d38b7bf2f73760ff9e1a61ef4e
Signed-off-by: Sehong Na <sehong.na@samsung.com>