services/jenkins-scripts.git
7 years agoFix: Ignore patchinfo, Trigger for build check 42/131842/1
hyokeun [Wed, 31 May 2017 04:09:13 +0000 (13:09 +0900)]
Fix: Ignore patchinfo, Trigger for build check

1. Discard patchinfo package which should not be present when creating reference project.
2. Importing rpms on backend server runs as obsservicerun.
   That user have no write permission in ${JENKINS_WORKSPACE} path.

Change-Id: I2250fea8cfb247133fc80b70f06269308b86eb18

7 years agoReference build check 48/131548/1
hyokeun [Tue, 30 May 2017 04:09:54 +0000 (13:09 +0900)]
Reference build check

Change-Id: I9b8935bd7b687617dec46d3b103926257103eab0

7 years agoDo not run ref routine if no ref found in obs description 63/131463/1
hyokeun [Mon, 29 May 2017 09:19:33 +0000 (18:19 +0900)]
Do not run ref routine if no ref found in obs description

Change-Id: Ia9bb40f2250005a14cc633f8608aed2685f9a401

7 years agoReduce a count of the palleral execution 46/131446/1
Yonghee Han [Mon, 29 May 2017 08:45:10 +0000 (17:45 +0900)]
Reduce a count of the palleral execution

Change-Id: I86a1f557aeffc0e4b2e86134e781bbcb7c3662d5

7 years agofix the error of dir_purge_tool.sh 28/131428/1
Yonghee Han [Mon, 29 May 2017 06:17:25 +0000 (15:17 +0900)]
fix the error of dir_purge_tool.sh

Change-Id: I13c3e31fd291bc36f5bff3cbb4a5a491e4a859be

7 years agoMerge "fix the trbs test information error" into devel
SungHun Hwang [Mon, 29 May 2017 03:27:06 +0000 (03:27 +0000)]
Merge "fix the trbs test information error" into devel

7 years agofix the trbs test information error 87/131387/1
SungHun Hwang [Mon, 29 May 2017 01:09:57 +0000 (10:09 +0900)]
fix the trbs test information error

PROBLEM:
  The test information of TRBS cannot display on dashboard in public

SOLUTION:
  fix the test job code

Change-Id: Ia905f4da8243d29fc91f42e5dcc2411076a7d9ec
Signed-off-by: SungHun Hwang <sh0924.hwang@samsung.com>
7 years agoMissing part for reference build 65/131265/1
hyokeun [Fri, 26 May 2017 05:21:15 +0000 (14:21 +0900)]
Missing part for reference build

Change-Id: I5b56726883cef842c18d8f119b8504fe28de42a1

7 years agoDo not remove the Base snapshots on policy 23/131223/1
Yonghee Han [Fri, 26 May 2017 02:30:57 +0000 (11:30 +0900)]
Do not remove the Base snapshots on policy
find : -not -regex .*-base.*

Change-Id: I553e630832ddf4f1c21e4d9c2d8692b0bfbcf52f

7 years agoExecute groovy init script one time 01/131001/1
hyokeun [Thu, 25 May 2017 04:30:05 +0000 (13:30 +0900)]
Execute groovy init script one time

Change-Id: I70c20d39ff99b3db78544d559ec44894bff6ae79

7 years agostatic dep_graph generation instead of dynamic dep_graph 12/130712/3
Junghyun Kim [Tue, 23 May 2017 11:13:47 +0000 (20:13 +0900)]
static dep_graph generation instead of dynamic dep_graph

Stanislav requires not to use php scripts on download.tizen.org
because download server will be replicated and he assumes that
there is no server-side scripting.

Hence, server-side script code is moved to dashboard.

Change-Id: Ia41def88a3b48dedb590f880c797b2363e293224
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agolatest link location fixed. 50/130550/1 release-20170522
Junghyun Kim [Tue, 23 May 2017 01:53:30 +0000 (10:53 +0900)]
latest link location fixed.

Change-Id: I4e51252e311a9bd94cf096462f2169a7702b07c0
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoRelease 1.4.5
hyokeun [Mon, 22 May 2017 02:11:48 +0000 (11:11 +0900)]
Release 1.4.5

Change-Id: I47f5fab7a0a935065f1a5659592d42c48e062139

7 years agoSet default char-set encoding to utf-8 for submit job 97/130297/1
hyokeun [Mon, 22 May 2017 00:40:56 +0000 (09:40 +0900)]
Set default char-set encoding to utf-8 for submit job

Change-Id: I5abb5eaf91f4c4995538cf74225b349473f2d3c2

7 years agoMerge "Adding reference build option on prerelease" into devel
Hyokeun Jeon [Mon, 22 May 2017 00:38:06 +0000 (00:38 +0000)]
Merge "Adding reference build option on prerelease" into devel

7 years agoMerge "New Feature : Enabled TRBS feature on Prerelease NEW JOB : ref-create-proje...
Yonghee Han [Mon, 22 May 2017 00:30:35 +0000 (00:30 +0000)]
Merge "New Feature : Enabled TRBS feature on Prerelease    NEW JOB : ref-create-project-obs, ref-import-rpm-obs, ref-purge-project-obs    This job create a reference project in obs and import a rpm files in backend and purge a old project Add files : packaging spec and debian install" into devel

7 years agoAdding reference build option on prerelease 73/129173/8
Hyokeun Jeon [Mon, 15 May 2017 08:39:26 +0000 (08:39 +0000)]
Adding reference build option on prerelease

Set REF_ACTIVE_PRJS environment variable to enable it.

Change-Id: I0a0121a04045e638642bf99cf1e473ea9235accc

7 years agoNew Feature : Enabled TRBS feature on Prerelease 20/130020/2
Yonghee Han [Fri, 19 May 2017 01:21:47 +0000 (10:21 +0900)]
New Feature : Enabled TRBS feature on Prerelease
   NEW JOB : ref-create-project-obs, ref-import-rpm-obs, ref-purge-project-obs
   This job create a reference project in obs and import a rpm files in backend and purge a old project
Add files : packaging spec and debian install

Change-Id: I2f34108073e5d49c6ba049d978a2a79c8d4a345c

7 years agoSetup jenkins admin email address through groovy.init script 90/130090/2
hyokeun [Fri, 19 May 2017 05:56:49 +0000 (14:56 +0900)]
Setup jenkins admin email address through groovy.init script

Change-Id: I20e02eb88c63a2afa8c4dd46d64c9d97d5fbdd89

7 years agoMerge "use url directly in case of selected_snapshot is set." into devel
Junghyun Kim [Wed, 17 May 2017 03:57:25 +0000 (03:57 +0000)]
Merge "use url directly in case of selected_snapshot is set." into devel

7 years agouse url directly in case of selected_snapshot is set. 23/129423/1
Junghyun Kim [Tue, 16 May 2017 10:14:32 +0000 (19:14 +0900)]
use url directly in case of selected_snapshot is set.

Change-Id: Ie3b06bf060f2f3bb83ca27d7cb5ef5805de8dc1e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agoAlways update git-ref-map
tizenrobot [Tue, 16 May 2017 06:20:54 +0000 (06:20 +0000)]
Always update git-ref-map

Change-Id: I01501535f04e88f4ff15f1e98ee5f3fb41d9e0b2

7 years agoMerge "Templates for groovy init scripts" into devel
hyokeun [Tue, 16 May 2017 00:55:07 +0000 (00:55 +0000)]
Merge "Templates for groovy init scripts" into devel

7 years agoRemove redundant function call 72/129172/1
Hyokeun Jeon [Mon, 15 May 2017 06:55:30 +0000 (06:55 +0000)]
Remove redundant function call

Change-Id: Id7201fb4c2ff09842ed66c86ff048f07b589ec13

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>