services/jenkins-scripts.git
7 years agoMerge "NEW FEATURE: packages build-triggered transitively" into devel
Junghyun Kim [Thu, 13 Apr 2017 12:02:48 +0000 (05:02 -0700)]
Merge "NEW FEATURE: packages build-triggered transitively" into devel

7 years agoFix missing the 'mobile-wayland-armv7l-tm1' image information 50/124950/1
SungHun Hwang [Thu, 13 Apr 2017 06:34:14 +0000 (15:34 +0900)]
Fix missing the 'mobile-wayland-armv7l-tm1' image information

change the saveinfo to checkinfo

Change-Id: I0b1cf0f5ad62ee7d0ded573042c9413f3553712d
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Add test trigger job for prerelease" into devel
hyokeun [Mon, 10 Apr 2017 09:29:58 +0000 (02:29 -0700)]
Merge "Add test trigger job for prerelease" into devel

7 years agoAdd test trigger job for prerelease 55/123955/4
hyokeun [Sat, 8 Apr 2017 23:32:35 +0000 (08:32 +0900)]
Add test trigger job for prerelease

Use case scenario:
1) This job is triggered when all images are created successfully.
   (post-image-creation)
2) This job updates a file 'prerelease.description' using the description of the corresponding OBS project.
3) The above update triggers 'gerrit-trigger' in TRBS jenkins.
4) TRBS jenkins job triggers test-trigger.

Change-Id: I1ae0cdfc22a7a6b5e442cc4bf9982091be111f66

7 years agoRequires python-mysql 13/123813/4
hyokeun [Fri, 7 Apr 2017 06:17:45 +0000 (15:17 +0900)]
Requires python-mysql

Change-Id: I4fd79727475d3acc674e870cbb6decdc8abce870

7 years agoMerge "Feature Request: Update NuGet Private package configuration : NUGET_SOURCE_PRI...
Yonghee Han [Wed, 5 Apr 2017 05:05:58 +0000 (22:05 -0700)]
Merge "Feature Request: Update NuGet Private package configuration : NUGET_SOURCE_PRIVATE" into devel

7 years agoMerge "MySQLdb format error: (git_tag) -> (git_tag,)" into devel
hyokeun [Tue, 4 Apr 2017 23:52:21 +0000 (16:52 -0700)]
Merge "MySQLdb format error: (git_tag) -> (git_tag,)" into devel

7 years agoMerge "[BuildMonitor] add the defensive code to update the img info on OBS desc prope...
SungHun Hwang [Tue, 4 Apr 2017 22:58:22 +0000 (15:58 -0700)]
Merge "[BuildMonitor] add the defensive code to update the img info on OBS desc properly" into devel

7 years agoFeature Request: Update NuGet Private package 84/122984/1
Yonghee Han [Tue, 4 Apr 2017 06:36:51 +0000 (15:36 +0900)]
Feature Request: Update NuGet Private package
configuration : NUGET_SOURCE_PRIVATE

Change-Id: I8862875786e0e60ef06a05c68cd95beb2e99480a

7 years agoMySQLdb format error: (git_tag) -> (git_tag,) 53/122953/1
hyokeun [Tue, 4 Apr 2017 05:22:29 +0000 (14:22 +0900)]
MySQLdb format error: (git_tag) -> (git_tag,)

Change-Id: I6f215e9e9275b99c442f8482a814ea430a5edcd9

7 years agoNEW FEATURE: packages build-triggered transitively 34/122234/3
Junghyun Kim [Thu, 30 Mar 2017 23:47:27 +0000 (08:47 +0900)]
NEW FEATURE: packages build-triggered transitively

This feature finds all packages build triggered by a package
transitively.

This means this feature finds all packages that can be built
if a package is changed.

Change-Id: I302285d693b56ff98a80e8d8527081c7bd06c452
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoRelease 1.4.3 01/122001/1 release-20170331
hyokeun [Thu, 30 Mar 2017 02:02:56 +0000 (11:02 +0900)]
Release 1.4.3

Change-Id: I867a1a5d9dcf87272a7436d4375299b7958cd4cb

7 years agoUpdate debian packaging files 35/121535/1
hyokeun [Mon, 27 Mar 2017 06:06:48 +0000 (15:06 +0900)]
Update debian packaging files

Change-Id: I9ac6a82aafdececde6ca162d2c9240e5860285d8

7 years ago[BuildMonitor] add the defensive code to update the img info on OBS desc properly 12/120812/1
SungHun Hwang [Thu, 23 Mar 2017 06:41:17 +0000 (15:41 +0900)]
[BuildMonitor] add the defensive code to update the img info on OBS desc properly

PROBLEM:
  Occasionally, at the step of 'post-image-creation'
    1. [Tizen:Wearable]
       If the exist image name on the OBS desc and the new image name are same
       then the old one is removed. In this case, BUILD-MONITOR(Post-image) is
       not triggered bcz the total image count is insufficient.

    2. [Tizen:Common]
       When using the OBS API to update the created image information simultaneously
       it does not work properly something like that among 19 images,
       only one image is missing on OBS desc.
       Same as above, the total iamge count is insufficient.

  These problems caused that the status stays 'Imaging' not to turn 'Succeeded'

SOLUTION:
1. add the 'repo' data to check not only the device name but also the image repo
2. add the polling count to retry the routine if failed to update_info

Change-Id: I8478af2a74b67fb3b7bb534bff70a4f6fe025fcb
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "FIX: manifest generation errors when no rpms exists" into devel
hyokeun [Wed, 22 Mar 2017 05:19:16 +0000 (22:19 -0700)]
Merge "FIX: manifest generation errors when no rpms exists" into devel

7 years ago[BuildMonitor] Add to set the stage_status as 'S' at the 'Base' snapshot stage 82/119482/5
SungHun Hwang [Fri, 17 Mar 2017 05:39:34 +0000 (14:39 +0900)]
[BuildMonitor] Add to set the stage_status as 'S' at the 'Base' snapshot stage

1. [job_buildmonitor.py]
  Set the stage_status(PRE_SNAP & PRE_IMAGE / POST_SNAP & POST_IMAGE)
  as 'S(uccedded)' at the snapshot stage of 'Base' project

  << Modified functions >>
  1-1. Pre release part
    update_fail_status_for_sr_stage(...)
    end_pre_create_snapshot_for_sr_stage(...)

  1-2. Post release part (need 'multi_sr_status_id')
    update_fail_create_snapshot_for_sr_stage(...)
    end_create_snapshot_create_images_for_sr_stage(...)

2. [job_create_snapshot.py]
  2-1. Add to Skip [BUILD-MONITOR_Post_Image] if Base project
  2-2. Remove the legacy code ('buildmonibor_skip')

Change-Id: I2776abcc10436f778483181e839e888df44e15a3
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoBUGFIX: href link changed (full.php -> index.php) 41/119441/1
Junghyun Kim [Fri, 17 Mar 2017 04:16:21 +0000 (13:16 +0900)]
BUGFIX: href link changed (full.php -> index.php)

Change-Id: I14fb6a26984ea7ac01f7441d54a75c95f98cb347
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "BUGFIX: snapshot -> snapshot_name" into devel
Junghyun Kim [Thu, 16 Mar 2017 22:38:21 +0000 (15:38 -0700)]
Merge "BUGFIX: snapshot -> snapshot_name" into devel

7 years ago[BuildMonitor] fixed the incorrect status of Base project on dashboard 61/119261/1
SungHun Hwang [Thu, 16 Mar 2017 06:31:14 +0000 (15:31 +0900)]
[BuildMonitor] fixed the incorrect status of Base project on dashboard

PROBLEM:
  On dashboard, the column of Base profile stays in 'Imaging' status

REASON:
  Originally, 'Base' project doesn't need to create the snapshot

SOLUTION:
  1. skip updating the fail status    at [Pre_Snap_Fail] stage
  2. skip inserting the snapshot info at [Pre_Sanp_End] stage

Change-Id: I1c7aca6e5476ab5c366a3347903d26d9f63ff75b
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Delete duplicate items for the abs and prerelease Delete prerelease items...
Yonghee Han [Thu, 16 Mar 2017 05:51:51 +0000 (22:51 -0700)]
Merge "Delete duplicate items for the abs and prerelease Delete prerelease items. Choice the abs item. Remove the duplicate function" into devel

7 years agoBUGFIX: snapshot -> snapshot_name 33/119233/1
Junghyun Kim [Thu, 16 Mar 2017 05:32:39 +0000 (14:32 +0900)]
BUGFIX: snapshot -> snapshot_name

Change-Id: I6a944a9d2a8557687fee5d90ff5dd800f5070f14
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoDelete duplicate items for the abs and prerelease 11/118911/2
Yonghee Han [Tue, 14 Mar 2017 11:59:00 +0000 (20:59 +0900)]
Delete duplicate items for the abs and prerelease
Delete prerelease items. Choice the abs item.
Remove the duplicate function

Change-Id: I8f878eb33768e97397a7906542b94e45cd3f51ba

7 years ago[BuildMonitor] apply bulk insert for [build_snapshot_package] table 57/119157/1
SungHun Hwang [Thu, 16 Mar 2017 00:35:04 +0000 (09:35 +0900)]
[BuildMonitor] apply bulk insert for [build_snapshot_package] table

[job_buildmonitor.py]
  1. put the information of build pkgs into query_list
  2. call do_many_query func

[buildmonitor_db.py]
  1. add 'do_many_query' func

Change-Id: I9966eec4870288060a6945a545bb5104e087182a
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "BUGFIX: %s -> {release_type}" into devel
Junghyun Kim [Thu, 16 Mar 2017 00:26:37 +0000 (17:26 -0700)]
Merge "BUGFIX: %s -> {release_type}" into devel

7 years agoBUGFIX: %s -> {release_type} 53/119153/1
Junghyun Kim [Thu, 16 Mar 2017 00:24:24 +0000 (09:24 +0900)]
BUGFIX: %s -> {release_type}

Change-Id: Ib91e36a3d71a8bd04d0fce4931917356f91311f1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "release-snapshot can be triggered by Tizen dashboard" into devel
Junghyun Kim [Thu, 16 Mar 2017 00:23:16 +0000 (17:23 -0700)]
Merge "release-snapshot can be triggered by Tizen dashboard" into devel

7 years agorelease-snapshot can be triggered by Tizen dashboard 71/119071/2
Junghyun Kim [Wed, 15 Mar 2017 10:35:42 +0000 (19:35 +0900)]
release-snapshot can be triggered by Tizen dashboard

PARAMETER CHANGED:
profile -> obs_project
version (NEW)

release-snapshot triggers BUILD-MONITOR with bm_stage RELEASE_SNAPSHOT

profile can be obtained from obs_project using snapshot-repo-conf
jenkins-jobs will be updated together.

Change-Id: I945be1756426c3c9b88a901d5cf1afa59b395c16
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "[BuildMonitor] change the method of getting the build_project_id" into devel
SungHun Hwang [Wed, 15 Mar 2017 23:14:27 +0000 (16:14 -0700)]
Merge "[BuildMonitor] change the method of getting the build_project_id" into devel

7 years agoFIX: manifest generation errors when no rpms exists 81/118781/1
hyokeun [Tue, 14 Mar 2017 05:03:19 +0000 (14:03 +0900)]
FIX: manifest generation errors when no rpms exists

Change-Id: I57c199b4475f85473aa14c5643f51121faade809

7 years agoMerge "Mapping log prints" into devel
hyokeun [Tue, 14 Mar 2017 02:25:00 +0000 (19:25 -0700)]
Merge "Mapping log prints" into devel

7 years agoMerge "Do not perform the job if any queued item in the same job exists" into devel
Junghyun Kim [Tue, 14 Mar 2017 02:14:30 +0000 (19:14 -0700)]
Merge "Do not perform the job if any queued item in the same job exists" into devel

7 years agoMerge "Do not hide the dependency graph at the beginning." into devel
Junghyun Kim [Tue, 14 Mar 2017 02:14:13 +0000 (19:14 -0700)]
Merge "Do not hide the dependency graph at the beginning." into devel

7 years agoMapping log prints 35/118735/1
hyokeun [Tue, 14 Mar 2017 01:14:53 +0000 (10:14 +0900)]
Mapping log prints

Change-Id: I3bad2b0b00bcf5c5211823c472f1624028b7f56d

7 years ago[BuildMonitor] change the method of getting the build_project_id 24/118624/1
SungHun Hwang [Mon, 13 Mar 2017 06:54:42 +0000 (15:54 +0900)]
[BuildMonitor] change the method of getting the build_project_id

1. change the method of getting the build_project_id
   to prevent getting the wrong build_project_id
   when there are too many jenkins jobs including the 'BUILD-MONITOR' job simultaneously

  [CHAGNED]
  1-1. # get last_bpid_of_build_snapshot
  1-2. # get post_build_project_id
  1-3. # use the prev last_bpid if there is no post_build_project_id (for manual trigger)

2. the query_data in some functions should be changed from 'project' to 'bm_snapshot_name'
   bcz of the above solution

3. clean up some codes
  3-1. replace the query_data from build_id to bm_snapshot_name
       to clarify the meaning of the snapshot name
  3-2. remove unused code

Change-Id: Ia659e8461b6ed0a0c2ad87e178bc96e12c3c1707
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoDo not perform the job if any queued item in the same job exists 37/118537/1
Junghyun Kim [Mon, 13 Mar 2017 05:37:00 +0000 (14:37 +0900)]
Do not perform the job if any queued item in the same job exists

This job performs branch-project mappings for all git repos.
Therefore, it is okay to perform only the last job.
To do this, I added code to check 'queueItem' in this job.

Change-Id: I3ebfb1c1ba17d93412d58db658d93d513d7ddc64
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoDo not hide the dependency graph at the beginning. 06/118406/2
Junghyun Kim [Fri, 10 Mar 2017 08:03:50 +0000 (17:03 +0900)]
Do not hide the dependency graph at the beginning.

Change-Id: I2e83c2b9fb5ebc73f8195b2abe94992890c723fc
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoUse the hardlink function to copy from snapshots to release 93/118393/1
Yonghee Han [Fri, 10 Mar 2017 06:53:17 +0000 (15:53 +0900)]
Use the hardlink function to copy from snapshots to release
Release-snapshot job is very slow.

Change-Id: I75323893001a7e0d729d45f96961e6b832384d88

7 years agoADD LICENSE and use MAPPING_PRJ caching dir 25/118325/2
Junghyun Kim [Fri, 10 Mar 2017 04:37:07 +0000 (13:37 +0900)]
ADD LICENSE and use MAPPING_PRJ caching dir

MAPPING_PRJ caching directory is used directly instead of cloning.

Change-Id: I2890abc8bf2e2451ff98fb3adcff31cffcc38635
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "NEW JOB: update_git_obs_mapping_for_dashboard" into devel
Junghyun Kim [Fri, 10 Mar 2017 01:12:12 +0000 (17:12 -0800)]
Merge "NEW JOB: update_git_obs_mapping_for_dashboard" into devel

7 years agoNEW JOB: update_git_obs_mapping_for_dashboard 83/118283/5
Junghyun Kim [Thu, 9 Mar 2017 03:45:27 +0000 (12:45 +0900)]
NEW JOB: update_git_obs_mapping_for_dashboard

This job stores git-obs-mapping information by parsing
scm/git-obs-mapping for dashboard.

Change-Id: I5d1c63219d0b4cea59377b9bde27214f551f572a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoCreate ABS prerelease project on the public 22/118222/1
hyokeun [Thu, 9 Mar 2017 08:15:12 +0000 (17:15 +0900)]
Create ABS prerelease project on the public

AS-IS: ABS prerelease was created SPIN infra.
TO-BE: It will go through the same flow as other prereleases.

Change-Id: I27ff57cc07d6b8ccbed43cf96e98c0ad7f37f3b9

7 years agoRules for find a specfile 87/118187/1
Yonghee Han [Thu, 9 Mar 2017 06:04:06 +0000 (15:04 +0900)]
Rules for find a specfile
First : must have a single specfile.
If we have a multi specfile
  1) first: search a basename specfile of git project
  2) second: search a first specfile of sorted the multi specfiles.

Change-Id: I2591f74f176ae60a9bbbfb359f65d3ff07942c82

7 years agoMerge "BUGFIX: insert build_target_id if not present." into devel
Junghyun Kim [Thu, 9 Mar 2017 01:18:06 +0000 (17:18 -0800)]
Merge "BUGFIX: insert build_target_id if not present." into devel

7 years agoMerge "NEWJOB: litmus_jira_issue_receiver and litmus_tct_file_receiver" into devel
Junghyun Kim [Thu, 9 Mar 2017 01:17:59 +0000 (17:17 -0800)]
Merge "NEWJOB: litmus_jira_issue_receiver and litmus_tct_file_receiver" into devel

7 years agoMerge "Rename createrepo-c to createrepo_c" into devel release-20170309
SoonKyu Park [Wed, 8 Mar 2017 11:52:40 +0000 (03:52 -0800)]
Merge "Rename createrepo-c to createrepo_c" into devel

7 years agoRename createrepo-c to createrepo_c 55/118055/1
SoonKyu Park [Wed, 8 Mar 2017 11:45:41 +0000 (20:45 +0900)]
Rename createrepo-c to createrepo_c

Change-Id: Ib7061de3aff231aabb7c9eed4750ee1b937963b4

7 years ago[BuildMonitor] disable the 'get_src_prj_lst' func & 'src_project empty check' part 27/118027/1
SungHun Hwang [Wed, 8 Mar 2017 04:43:48 +0000 (13:43 +0900)]
[BuildMonitor] disable the 'get_src_prj_lst' func & 'src_project empty check' part

PROBLEM:
  The projects which is registered at DROPPED_PRERELEASE_PROJECTS list
  are NOT inserted any tables. So when SR was accepted,
  Post_Snap_Start / Post_Snap_End job were failed
  bcz the related table doesn't exist

SOLUTION:
  disable the 'get_src_prj_lst' func & 'src_project empty check' part

Change-Id: I7767c3a5c098f043df60ab7f0823a755d66e5567
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoRelease 1.4.2
SoonKyu Park [Wed, 8 Mar 2017 09:30:08 +0000 (18:30 +0900)]
Release 1.4.2

Change-Id: Ic58cafd1ae2c2c9f8e72db1ea0918f69a8d021b6

7 years agoBUGFIX: insert build_target_id if not present. 74/117974/1
Junghyun Kim [Wed, 8 Mar 2017 07:29:35 +0000 (16:29 +0900)]
BUGFIX: insert build_target_id if not present.

Change-Id: Ib91aad86182e67cf27548e6195e677688fc600ba
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoEnable OBS_use_specname feature 01/117901/1
Yonghee Han [Wed, 8 Mar 2017 04:12:21 +0000 (13:12 +0900)]
Enable OBS_use_specname feature
        <branch name="tizen" OBS_project="Tizen:Unified" OBS_staging_project="prerelease" OBS_use_specname="yes"/>

Change-Id: I791f309991d4a5802614bcd75af1cfc58010500c

7 years agoAdd NOT_ANNOTATED_MSG string 93/117893/1
Yonghee Han [Wed, 8 Mar 2017 03:46:02 +0000 (12:46 +0900)]
Add NOT_ANNOTATED_MSG string

Change-Id: Ia1250306856ffb5adac3ed03745554aa5701fe26

7 years agoNEWJOB: litmus_jira_issue_receiver and litmus_tct_file_receiver 83/117883/3
Junghyun Kim [Wed, 8 Mar 2017 02:23:07 +0000 (11:23 +0900)]
NEWJOB: litmus_jira_issue_receiver and litmus_tct_file_receiver

These scripts are written by Jaekyu Park<jk7744.park@samsung.com>.

Change-Id: I3e77263ee617cf8ea76c28912f6ff5ae7bf63ed5
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoRevert "Use the OBS_package name on Staging OBS project If a obs package has one... 76/117876/2
Yonghee Han [Wed, 8 Mar 2017 02:06:29 +0000 (18:06 -0800)]
Revert "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"/>"

This reverts commit 3de9b73de25d8a44eebec86aa196dabf86a98e42.

Change-Id: I50c8ace327eb7afe388372ca6dfb648f6e783a2a

7 years agoMerge " Add virtual branch mapping Funtion: Prerelease Rules : check for...
Yonghee Han [Wed, 8 Mar 2017 02:09:43 +0000 (18:09 -0800)]
Merge "    Add virtual branch mapping     Funtion: Prerelease     Rules : check for contains branch in prerelease     If the branch name of SR Tag is a virtual branch name, check the real branch name for git branchs. Remove contains branch mapping" into devel

7 years agoMerge "Chage type from list to dict for mapping objects" into devel
hyokeun [Wed, 8 Mar 2017 01:27:54 +0000 (17:27 -0800)]
Merge "Chage type from list to dict for mapping objects" into devel

7 years ago Add virtual branch mapping 01/117801/1
Yonghee Han [Tue, 7 Mar 2017 12:00:38 +0000 (21:00 +0900)]
Add virtual branch mapping
    Funtion: Prerelease
    Rules : check for contains branch in prerelease
    If the branch name of SR Tag is a virtual branch name, check the real branch name for git branchs.
Remove contains branch mapping

Change-Id: Id33a3542c41fd62a6385e71a836d99368f9ea41d

7 years agoInsert package info if not present. 49/117649/1
Junghyun Kim [Tue, 7 Mar 2017 05:08:16 +0000 (14:08 +0900)]
Insert package info if not present.

Change-Id: I57dedb072e751c0670104f7b0b05e2aa2a50901d
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoChage type from list to dict for mapping objects 26/117626/1
hyokeun [Tue, 7 Mar 2017 02:35:36 +0000 (11:35 +0900)]
Chage type from list to dict for mapping objects

1. Type change
2. Spec file check routine merge

Change-Id: I253846124c5717711e92c38f3d138723697226c5

7 years agoProcessing [TRBS]_UPDATE_BUILD_LOG 02/117602/1
Junghyun Kim [Tue, 7 Mar 2017 00:24:42 +0000 (09:24 +0900)]
Processing [TRBS]_UPDATE_BUILD_LOG

Change-Id: I2c8283699fb58c70e0fb1af2f25ac26287b48020
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoCHANGED: build fail check routine (bBuildFail) 37/117537/3
Junghyun Kim [Mon, 6 Mar 2017 09:40:32 +0000 (18:40 +0900)]
CHANGED: build fail check routine (bBuildFail)

Change-Id: I242a20a7e8379060368100bd36ab152913fef66a
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years ago[BuildMonitor] Update unresolvable/broken status by buildmonitor 25/117425/3
Junghyun Kim [Mon, 6 Mar 2017 05:24:40 +0000 (14:24 +0900)]
[BuildMonitor] Update unresolvable/broken status by buildmonitor

PROBLEM:
  If OBS generates unresolvable/broken events, too many
 events can be generated during building.

SOLUTION:
  To prohibit this, instead of OBS, snapshot jobs in Jenkins
 (pre-release-create and create-snapshot)
 update those build statuses.

Change-Id: I97ee4346d37c0919064b79173b7042c49dc7a4ae
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoMerge "NEW JOB: update_scm_meta_git_for_dashboard" into devel
Junghyun Kim [Mon, 6 Mar 2017 02:36:41 +0000 (18:36 -0800)]
Merge "NEW JOB: update_scm_meta_git_for_dashboard" into devel

7 years ago[BuildMonitor] fix 'BUILD-MONITOR(Pre_Snap_End)' job incorrect order issue 58/117158/1
SungHun Hwang [Fri, 3 Mar 2017 03:55:03 +0000 (12:55 +0900)]
[BuildMonitor] fix 'BUILD-MONITOR(Pre_Snap_End)' job incorrect order issue

PROBLEM:
'BUILD-MONITOR(Pre_Snap_End)' job is triggered by 'pre-release-create' job

the triggering order of Sender('pre-release-create') is always correct
but sometimes the executing order of Receiver('BUILD-MONITOR') is incorrect

SOLUTION:
add new TriggerBuilder for 'Pre_Snap_End' at the bottom
to make sure to execute in correct order

Change-Id: I5bf19acd70485bff780bea8e9628fd41e4679f26
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
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 agoNEW JOB: update_scm_meta_git_for_dashboard 30/116730/5
Junghyun Kim [Tue, 28 Feb 2017 04:17:52 +0000 (13:17 +0900)]
NEW JOB: update_scm_meta_git_for_dashboard

This job makes two mappings:
  1) mappings between git projects and gerrit domans
  2) mappings between gerrit domains and user-emails

This information is saved in JSON format.
This will be used in Tizen dashboard.

-- Previous version uses source management by Jenkins,
but it does not work properly.
Hence, it is changed to cloning git repositories manually.

Change-Id: I1198143e9f72a46807ffffb2d841f4c9c792c1dd
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
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