services/jenkins-scripts.git
7 years agoTemplates for groovy init scripts 27/128927/2
hyokeun [Fri, 12 May 2017 02:42:12 +0000 (11:42 +0900)]
Templates for groovy init scripts

This is used for initializing JENKINS CI server after bootup.
Rename setup.properties.example to setup.properties file
and add required parameters to this property file.

No-operation if missing setup.properties file
or null parameters in each module.

Change-Id: I86faa7677f3e572db72e23a9d33491a7dbc5e2b5

7 years agoUse python-mysql instead of python-mysqldb for opensuse 09/128409/1
hyokeun [Wed, 10 May 2017 02:08:12 +0000 (11:08 +0900)]
Use python-mysql instead of python-mysqldb for opensuse

Change-Id: I05a0c5abd5f9397993f4b81f0e6ea5e7328f2a4d

7 years agoMerge "sync to snapdiff package." into devel
Junghyun Kim [Mon, 8 May 2017 09:31:51 +0000 (09:31 +0000)]
Merge "sync to snapdiff package." into devel

7 years agoFix of not sending email noti for SR accept 06/127506/2
hyokeun [Thu, 27 Apr 2017 12:50:53 +0000 (21:50 +0900)]
Fix of not sending email noti for SR accept

Cause: OBS 2.7 did not generate OBS_SRCSRV_REQUEST_ACCEPTED.
Changes: Handle accept event in OBS_SRCSRV_REQUEST_STATECHANGE.

Change-Id: Ie2a3c05785dfacf7c0fcd63786821500e0d204d1

7 years agoMerge "Fix of mic log copy" into devel
hyokeun [Fri, 28 Apr 2017 01:00:08 +0000 (01:00 +0000)]
Merge "Fix of mic log copy" into devel

7 years agoFix of mic log copy 18/127418/3
hyokeun [Thu, 27 Apr 2017 07:42:50 +0000 (16:42 +0900)]
Fix of mic log copy

Change-Id: Id29fdc49b2f8b6af0fd2b72a742fae9bfa2d103c

7 years agoUse separate mic.conf file for each build 55/127355/2
hyokeun [Thu, 27 Apr 2017 05:07:24 +0000 (14:07 +0900)]
Use separate mic.conf file for each build

By default, /var/tmp/mic/ will be used for mic tool.
If we run multiple mic on the same machine, this shared working directory lead to problem.
Fix: Use separate working directory controlled by configuration.
$ sudo mic cr auto -c { conf file } ...

Change-Id: I4bd7f1ed44e843134e7e7c517d285534c93839bf

7 years agoFix: Do not use internal url in OBS description 53/127253/2
hyokeun [Wed, 26 Apr 2017 23:59:30 +0000 (08:59 +0900)]
Fix: Do not use internal url in OBS description

Change-Id: I8f4b2612fb19a5f226914a15b81021d1c45de5c6

7 years agoSet proper package name in requests job 39/127039/2
hyokeun [Wed, 26 Apr 2017 02:31:30 +0000 (11:31 +0900)]
Set proper package name in requests job

Change-Id: I8dfa13c96876f3f271a55f34705199e06e80171f

7 years agosync to snapdiff package. 39/126939/1
Junghyun Kim [Tue, 25 Apr 2017 10:03:38 +0000 (19:03 +0900)]
sync to snapdiff package.

Change-Id: Ie75daabc6d1c61ba3802040091adba7101df74b4
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoCopy mic log if non-kvm environment 25/126925/1
hyokeun [Tue, 25 Apr 2017 09:11:41 +0000 (18:11 +0900)]
Copy mic log if non-kvm environment

Change-Id: I17fb481499983f7c99e1a2a1822a670ee993a088

7 years agoMerge "Separate internal gerrit hostname from public" into devel
hyokeun [Tue, 25 Apr 2017 00:12:52 +0000 (00:12 +0000)]
Merge "Separate internal gerrit hostname from public" into devel

7 years agoUse internal url for python-jenkinsapi 45/126545/1
hyokeun [Mon, 24 Apr 2017 06:31:39 +0000 (15:31 +0900)]
Use internal url for python-jenkinsapi

Change-Id: Ie35abc413baa7449c5444ad09fa1fbf1fc91cf42

7 years agoSeparate internal gerrit hostname from public 11/126511/2
hyokeun [Mon, 24 Apr 2017 02:41:10 +0000 (11:41 +0900)]
Separate internal gerrit hostname from public

Change-Id: I58fb35b6208eee5fe4549cff0dc16db62075396b

7 years agoMerge "Fix install directory for scripts" into devel
hyokeun [Mon, 24 Apr 2017 02:33:07 +0000 (02:33 +0000)]
Merge "Fix install directory for scripts" into devel

7 years agoAdd nuget.exe for debian
hyokeun [Sun, 23 Apr 2017 06:27:55 +0000 (15:27 +0900)]
Add nuget.exe for debian

Change-Id: I3057955b4cec3e21d359c078f6bcce8aa43f7b41

7 years agoFix install directory for scripts 55/126455/1
hyokeun [Fri, 21 Apr 2017 11:42:52 +0000 (20:42 +0900)]
Fix install directory for scripts

Change-Id: Ide675cde45488152ccaee45229cd291a7ff4f3bf

7 years agoRelease 1.4.4 release-20170420
hyokeun [Thu, 20 Apr 2017 07:55:45 +0000 (16:55 +0900)]
Release 1.4.4

Change-Id: Ib4cd19299a30ef8c4e30680ba83d7e821e7059b0

7 years agoMerge "[BuildMonitor] remove the 'REVOKED' check code" into devel
Hyokeun Jeon [Thu, 20 Apr 2017 05:24:17 +0000 (22:24 -0700)]
Merge "[BuildMonitor] remove the 'REVOKED' check code" into devel

7 years ago[BuildMonitor] remove the 'REVOKED' check code 73/126073/1
SungHun Hwang [Thu, 20 Apr 2017 04:57:24 +0000 (13:57 +0900)]
[BuildMonitor] remove the 'REVOKED' check code

remove the 'REVOKED' check code to avoid the duplicated excution
because 'Use STATECHANGE event for processing request' is applied

Change-Id: I9944ff099e53873c4f7f899bb45af14c3d66f2e2
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoUse STATECHANGE event for processing request 50/126050/2
hyokeun [Thu, 20 Apr 2017 03:55:51 +0000 (12:55 +0900)]
Use STATECHANGE event for processing request

Change-Id: Ie1a1c61e29e716904ecb16856cfcf53d4cfeadc9

7 years ago[BuildMonitor] change curr_sr_status_id to multi_sr_status_id 67/125667/3
SungHun Hwang [Tue, 18 Apr 2017 09:18:33 +0000 (18:18 +0900)]
[BuildMonitor] change curr_sr_status_id to multi_sr_status_id

PROBLEM:
  If a build break occur after SR accepted, the dashboard showed only one SR

ex)
  submit/tizen/xxxxxx.111111    Accepted
                               (Failed(I))
  submit/tizen/xxxxxx.222222    Accepted
                                (Imaging)
  submit/tizen/xxxxxx.333333    Accepted
                                (Imaging)

REASON:
  missing the multi_sr_status_id parts

SOLUTION:
  change curr_sr_status_id to multi_sr_status_id

Change-Id: I80c46a261c8dffa046ff36422e9fabeec61bf82e
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Update test information on target branch" into devel
hyokeun [Mon, 17 Apr 2017 11:50:37 +0000 (04:50 -0700)]
Merge "Update test information on target branch" into devel

7 years agoMerge "Debian: Add missing files" into devel
hyokeun [Mon, 17 Apr 2017 11:49:12 +0000 (04:49 -0700)]
Merge "Debian: Add missing files" into devel

7 years agoAdd image status check code to avoid unnecessary testing process 55/125355/2
SungHun Hwang [Mon, 17 Apr 2017 05:25:18 +0000 (14:25 +0900)]
Add image status check code to avoid unnecessary testing process

If any image fails then skip test trigger

Change-Id: I93c6077a40f45219ca74d7c5600959854501a490
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMerge "Do not update source of _link packages even if an SR is accepted." into devel
Junghyun Kim [Thu, 13 Apr 2017 12:03:19 +0000 (05:03 -0700)]
Merge "Do not update source of _link packages even if an SR is accepted." into devel

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 agoDebian: Add missing files 41/124341/1
hyokeun [Tue, 11 Apr 2017 06:55:24 +0000 (15:55 +0900)]
Debian: Add missing files

Change-Id: If71363585e3201ef8f592ddbb743a251ea0ad23f

7 years agoUpdate test information on target branch 28/124228/1
hyokeun [Tue, 11 Apr 2017 01:38:10 +0000 (10:38 +0900)]
Update test information on target branch

Receiver can determine which branch the prerelease comes from.
For example, in case of Tizen:4.0 it will be "tizen".

Change-Id: Id480f1fbbe06eebc5d4d63dcfa48311a5a0b02c0

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 agoDo not update source of _link packages even if an SR is accepted. 65/122865/2
Junghyun Kim [Tue, 4 Apr 2017 00:04:03 +0000 (09:04 +0900)]
Do not update source of _link packages even if an SR is accepted.

Not updating _aggregate packages is applied in the previous commit.
A request from Tizen release team is received that _link packages
should not be updated as well.

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