services/jenkins-scripts.git
8 years ago1) Retry create_project(...) three times if it faild. 61/70861/1
Yonghee Han [Mon, 23 May 2016 05:44:23 +0000 (14:44 +0900)]
1) Retry create_project(...) three times if it faild.
2) Merge person list then send meta update request only once. (instead of sending multiple requests)
Tested : Retry routine check OK.
Tested : Update meta for person check OK.

Change-Id: I7646b57dee077d3a2b2def4c0ef36e81c8eef04b

8 years ago description : disable a build flag before upload service and enable a build flag... 16/70216/1
Yonghee Han [Wed, 18 May 2016 22:15:33 +0000 (07:15 +0900)]
description : disable a build flag before upload service and enable a build flag after link project
    file : job_submit.py

Change-Id: Ic7052d4c01048c8693c28da5c19055b875fab5da

8 years ago Feature: Add rpmbuild stage options for prerelease job 61/66261/1
Yonghee Han [Mon, 18 Apr 2016 06:06:21 +0000 (15:06 +0900)]
 Feature: Add rpmbuild stage options for prerelease job
Description : have to add PRERELEASE_RPMBUILD_STAGE in jobs/configuration
              PRERELEASE_RPMBUILD_STAGE = bb or PRERELEASE_RPMBUILD_STAGE = ba
            If you do not want to create the src.rpm file on OBS project, use a PRERELEASE_RPMBUILD_STAGE = bb

Change-Id: Ieb356b32dca5aa58526f1551a5184bf2efaa88ee

8 years agoMerge "Revert "description : disable a build flag before upload service and enable...
Yonghee Han [Fri, 15 Apr 2016 05:11:49 +0000 (22:11 -0700)]
Merge "Revert "description : disable a build flag before upload service and enable a build flag after link project file : job_submit.py"" into devel

8 years agoRevert "description : disable a build flag before upload service and enable a build... 69/66069/1
Yonghee Han [Fri, 15 Apr 2016 05:05:39 +0000 (22:05 -0700)]
Revert "description : disable a build flag before upload service and enable a build flag after link project file : job_submit.py"

This reverts commit ec5ab866cd0621aed570ed9ef23cefbd21ddfb83.

Change-Id: I88fac5fc0ae3565746e08198f759498f88f63217

8 years ago modify to check sync_status value when Sync function doing 35/66035/1
Yonghee Han [Fri, 15 Apr 2016 01:37:16 +0000 (10:37 +0900)]
 modify to check sync_status value when Sync function doing

Change-Id: I6377d04cbeb651200064284c092926ad03ec4397

8 years agodescription : disable a build flag before upload service and enable a build flag... 99/65999/1
Yonghee Han [Thu, 14 Apr 2016 10:44:21 +0000 (19:44 +0900)]
description : disable a build flag before upload service and enable a build flag after link project
file : job_submit.py

Change-Id: Icdbf9edac7da0cb31c6a4b7f7729cf1fb3dbff7a

8 years agoretry sync function because of rsync error
Yonghee Han [Tue, 12 Apr 2016 07:29:45 +0000 (16:29 +0900)]
retry sync function because of rsync error

Change-Id: I353a755c25105dbf3e3b0246748ad29233ff178e

8 years agoDo not use 'Generates .files' 69/63769/1
Yonghee Han [Sat, 26 Mar 2016 05:33:04 +0000 (14:33 +0900)]
Do not use 'Generates .files'
error : <urlopen error [Errno 101] Network is unreachable>

Change-Id: I28d1a0a6c955e54bab23cfdd01c1f80588fa558b

8 years agoFeature : Generates .files which contains package name and its file list 01/63601/4
Yonghee Han [Thu, 24 Mar 2016 23:49:30 +0000 (08:49 +0900)]
Feature : Generates .files which contains package name and its file list
make the images_files file.ex)tizen-3.0-tv_20160324.9_tv-emulator.files

Change-Id: I6477485b5ff7aeafb649e06c80ef8d483f4d81c9

8 years ago1) add & update below funtion for the buildservice.py 73/63473/3
Yonghee Han [Thu, 24 Mar 2016 07:18:51 +0000 (16:18 +0900)]
1) add & update below funtion for the buildservice.py
----------------------------------------------------
update_buildstatus
update_info
link_projectDev
get_user_meta
create_copy_pac
get_dependson
show_upstream_rev
disable_build_flag
default_build_flag
2) Make file at packages depends & revision of OBS for the job_buildlog.py

Change-Id: I0d71f26ab270cd9ac54cdd48e2613963102856db

8 years agoDelete Tizen older directories based on policy: modify to search all directory 03/62303/2
Yonghee Han [Tue, 15 Mar 2016 09:04:08 +0000 (18:04 +0900)]
Delete Tizen older directories based on policy: modify to search all directory

Change-Id: Ia848a4ed16f0c3ed92079bed992e87017ecd8ad4

8 years agomove project_src_rpm_cleanup in job_pre_release_obs.py 76/62276/2
Yonghee Han [Tue, 15 Mar 2016 07:18:46 +0000 (16:18 +0900)]
move project_src_rpm_cleanup in job_pre_release_obs.py

Change-Id: I2b9d7610b2e248ab53599ec2b9e791616c69695f

8 years agocleanup src.rpm files on Live repo. we don't used src.rpm files on prerelease project. 76/62076/1
Yonghee Han [Mon, 14 Mar 2016 06:56:05 +0000 (15:56 +0900)]
cleanup src.rpm files on Live repo. we don't used src.rpm files on prerelease project.

Change-Id: Idf8f79631fc79473f625cff3cc833084b315b42b

8 years agoRelease 1.1 06/61206/2
Yonghee Han [Fri, 4 Mar 2016 23:30:29 +0000 (08:30 +0900)]
Release 1.1

Updated version, changelog and RELEASE_NOTES.

Change-Id: I3966f00d850ce941a48ab1862f6bf457d4731efb

8 years agoprovide a multi branch name for the git-obs-map xml file. ex) <branch name="tizen... 54/61154/2
Yonghee Han [Fri, 4 Mar 2016 08:29:16 +0000 (17:29 +0900)]
provide a multi branch name for the git-obs-map xml file. ex) <branch name="tizen,tizen_mobile" ...

Change-Id: I8f5e4573fb5224a5f0c434feb2f7582c85b09e03

8 years agoMerge "submitobs: Do not submit to projects using abs workflow" into devel
Yonghee Han [Fri, 26 Feb 2016 09:55:52 +0000 (01:55 -0800)]
Merge "submitobs: Do not submit to projects using abs workflow" into devel

8 years agoMerge "Update git_obs_map function" into devel
Yonghee Han [Fri, 26 Feb 2016 09:54:16 +0000 (01:54 -0800)]
Merge "Update git_obs_map function" into devel

8 years agosubmitobs: Do not submit to projects using abs workflow 50/60450/1
Yonghee Han [Fri, 26 Feb 2016 08:29:05 +0000 (17:29 +0900)]
submitobs: Do not submit to projects using abs workflow

        Submitobs job should skip submission If staging project is set to
        abs in git-obs mapping

Change-Id: If1d8322d86d4fa2931db52bae28e85e06b36b878

8 years agoUpdate git_obs_map function 39/60439/1
Donghoon Shin [Fri, 26 Feb 2016 07:45:39 +0000 (16:45 +0900)]
Update git_obs_map function

Change-Id: Id772dbc2629ec5479e92f952387c4740c2ffcd41

8 years agoprerelease: get package name from xml files. 34/60434/1
Yonghee Han [Fri, 26 Feb 2016 07:14:01 +0000 (16:14 +0900)]
prerelease: get package name from xml files.

Change-Id: I1c88b02ca5b4fd6a3e02f9f7551403b77233fad6

9 years agoRelease 1.0
ZhuoX Li [Tue, 10 Mar 2015 08:00:46 +0000 (16:00 +0800)]
Release 1.0

Updated version, changelog and RELEASE_NOTES.

Change-Id: Icee3ff2a79d146a1dd115d580b2b4807783a0337

9 years agoPylinted jenkins-scripts
Xu Chang [Tue, 3 Feb 2015 10:05:42 +0000 (18:05 +0800)]
Pylinted jenkins-scripts

Fixes: #1855
Change-Id: I94114571322aed43bdfa083c1bc13a290e55974d

9 years agoAdded logs-collector script
Olev Kartau [Sat, 21 Feb 2015 14:31:15 +0000 (16:31 +0200)]
Added logs-collector script

This script copies,compresses Jenkins jobs logs aside to
JENKINS_HOME/logs-collected/ in order to save them
from Jenkins logs rotation which does not scale well

Change-Id: I0b46105db0ecb03e306512efde0b4f9da307683d

9 years agoRemove Jenkins and OBS repos
Ed Bartosh [Mon, 16 Feb 2015 20:49:55 +0000 (22:49 +0200)]
Remove Jenkins and OBS repos

Nothing in Services depends on Jenkins and OBS anymore, so it's safe to
remove their repos from .extra-repos.

Change-Id: I876fdcef4bac3b846db66f734743f293ff611a29
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoMove dir-purge-tool script to base project from common
Olev Kartau [Mon, 16 Feb 2015 09:25:39 +0000 (11:25 +0200)]
Move dir-purge-tool script to base project from common

Change-Id: Icae81662e19be9677f39f2c5f232c04053b1a74e

9 years agoAdded directory purge tool
Olev Kartau [Thu, 12 Feb 2015 14:43:08 +0000 (16:43 +0200)]
Added directory purge tool

This shell script scans Tizen release directories, removes
entries old enough based on policy given by env.variables

Change-Id: I6ee22c578748d2f9ec1d93c5cdb4e119f978d812

9 years agoRevert "Fix the aggregate packages are always broken state."
ZhuoX Li [Thu, 12 Feb 2015 07:37:16 +0000 (15:37 +0800)]
Revert "Fix the aggregate packages are always broken state."

This reverts commit 0cc064af0bb38cb791c41cd621af0711788f0f8c.

Change-Id: I9e3139d7c6b4defcb2d3925626f8343be36f694d

9 years agoAdd OpenSUSE 13.1 repositories
Ed Bartosh [Tue, 10 Feb 2015 13:35:25 +0000 (15:35 +0200)]
Add OpenSUSE 13.1 repositories

Added OpenSUSE 13.1 repos to packaging/.extra-repos to support building
and testing for this distro with Jenkins.

Change-Id: Id5793ef7ff6f79224a8b464a95d1a87d1d0ec2ce
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoDon't need import get_python_lib
Xu Chang [Tue, 20 Jan 2015 08:06:32 +0000 (16:06 +0800)]
Don't need import get_python_lib

Change-Id: I51b345d5c2d5452323d865054ae4b673becce797

9 years agojob_re: Fix typo
Ed Bartosh [Sun, 1 Feb 2015 14:07:16 +0000 (16:07 +0200)]
job_re: Fix typo

Fixed typo in the otuput: rebuit->rebuilt

Change-Id: Id9b5c1694bb5983448f82265aa12d1a163e8d5cc
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoRelease 0.15.13
ZhuoX Li [Tue, 3 Feb 2015 08:53:59 +0000 (16:53 +0800)]
Release 0.15.13

Updated version and changelog.

Change-Id: Ie3223001ac8a444979143c992969f93888e1aace

9 years agoRectify mistake that was allowing for GPLv3.
ZhuoX Li [Mon, 2 Feb 2015 10:30:27 +0000 (18:30 +0800)]
Rectify mistake that was allowing for GPLv3.

The code was always intended to be released under GPLv2 license, not GPLv3.
Removed the obscure part about GPL license version,
and make explicit statement to release under GPLv2.

Change-Id: I16c90f45d111675799fb38da76b6079664ff2062

9 years agoFix packages build/link issue in pre-project
ZhuoX Li [Tue, 20 Jan 2015 09:42:56 +0000 (17:42 +0800)]
Fix packages build/link issue in pre-project

For example
After crosswalk was split to two packages,
we always need to create the link manually
when there is a crosswalk submission.

Fixes: #2336

Change-Id: I2819f090d48fafdc2a649a8b38fcc692220a3786

9 years agoImprove logging about image testablity.
Igor Stoppa [Tue, 20 Jan 2015 10:10:03 +0000 (12:10 +0200)]
Improve logging about image testablity.

Log also when the image is supported.
In both cases (supported/unsupported), log also the name of the image.

Change-Id: I3fde2a5525078810f4c65a5f916e3145b1d127d7

9 years agoMake error message more explicative.
Igor Stoppa [Tue, 20 Jan 2015 10:06:30 +0000 (12:06 +0200)]
Make error message more explicative.

The paramters referred to in the error messsage are coming from
the environment, but it's not very evident.
Now it should be.

Change-Id: I1d61eed4d033e92ef44714ee970e212298fa492f

9 years agoFix check for name of folder with results.
Igor Stoppa [Fri, 16 Jan 2015 16:41:23 +0000 (18:41 +0200)]
Fix check for name of folder with results.

Drops the old "tztestrobot" in favor of the new "aft".

Change-Id: I52c133485f2b639e81b549040f917cee0eb423e1

9 years agoFix checks and return values for image test.
Igor Stoppa [Thu, 15 Jan 2015 13:16:40 +0000 (15:16 +0200)]
Fix checks and return values for image test.

In case of image either missing or not supported,
the test is wrong and the image name is not propagated.

Change-Id: Iff91d15c0e0c3ba5fe8b51c4a1299c6642a231a5

9 years agoExplicitly return 0
Igor Stoppa [Thu, 15 Jan 2015 13:24:49 +0000 (15:24 +0200)]
Explicitly return 0

Fixes one spurious semicolon and explicitly returns 0 on all the
exit paths.

Change-Id: I7b78d3cf5d65da8d9dacbc04a8aa35a66a5bdc84

9 years agoHack: add one empty test case to the empty results.
Igor Stoppa [Wed, 14 Jan 2015 10:40:46 +0000 (12:40 +0200)]
Hack: add one empty test case to the empty results.

Jenkins will not consider the empty results.xml if it is
completely devoid of test results, so an empty test case is added.

Change-Id: I58cddf30ae5207be24fb751c9b373ae5846d4ffb

9 years agoProvide empty test details when testing is not run.
Igor Stoppa [Fri, 16 Jan 2015 17:39:59 +0000 (19:39 +0200)]
Provide empty test details when testing is not run.

The field for test details must be filled with an empty string,
when there are no details available, because the test was not
executed.

Change-Id: I2a0dc4d715942e622af88688cf642bfdc4a9989f

9 years agoFix the bug about accepting muliple packages.
ZhuoX Li [Sun, 4 Jan 2015 07:30:11 +0000 (15:30 +0800)]
Fix the bug about accepting muliple packages.

When accept/reject group submission, jenkins will accepts/rejects
muliple packages. There are the different sourcepackages and targetpackages.
we shouldn't use the same sourcepackage and targetpackage to work,
when accept/reject. So add them into the matched project.

Change-Id: Ie2e17897a3548f750e12dd79fb8f75e11138c3bd

9 years agoCopy maintainer to their prerelease projects
Xu Chang [Tue, 13 Jan 2015 09:31:14 +0000 (17:31 +0800)]
Copy maintainer to their prerelease projects

Fixes: #2297

Change-Id: Ibd006df0061a95f376d1130be4c18cf29bcceccb
Signed-off-by: Xu Chang <changx.xu@intel.com>
9 years agoFix comments formatting.
Igor Stoppa [Tue, 13 Jan 2015 15:34:15 +0000 (17:34 +0200)]
Fix comments formatting.

Change-Id: I91d94d3a27fc0d316fd199dca902947cb973ccb1

9 years agoImprove Error handling.
Igor Stoppa [Tue, 13 Jan 2015 13:54:39 +0000 (15:54 +0200)]
Improve Error handling.

In case some of the expected parameters is missing,
survive and report it.

Change-Id: I608947b2a387735911544cf6aa49d96ea74434f9

9 years agojob_re: make output parseable
Ed Bartosh [Sun, 11 Jan 2015 00:34:15 +0000 (02:34 +0200)]
job_re: make output parseable

Output of job_re is parsed by post-build groovy script.

This change adds "Submission xxxx has been yyyy" to the output to make
the output always parseable.

Change-Id: I70ce4de990ffd076df068420f748e8da651bc516
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoImplement locking and unlocking submissions
Ed Bartosh [Sun, 11 Jan 2015 00:30:29 +0000 (02:30 +0200)]
Implement locking and unlocking submissions

Implemented by disabling/enabling build globaly
for prerelease project.

Fixes: #2298

Change-Id: Ib7f072cd919b6495bb4a364fd9048031a7c8dddf
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agobuildservice: Implement set_global_flag
Ed Bartosh [Sun, 11 Jan 2015 00:27:51 +0000 (02:27 +0200)]
buildservice: Implement set_global_flag

Implemented enabling and disabling of global OBS flags
publish,build,useforbuild,debuginfo.

This functionality will be used in job_re for locking and
unlocking prerelease projects.

Change-Id: I272d77612515e944b7c5ef73af2c4998bdb3346c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agojob_re: implement rebuilding of submission
Ed Bartosh [Sat, 10 Jan 2015 21:06:56 +0000 (23:06 +0200)]
job_re: implement rebuilding of submission

Implemented by triggering gbs service for specified package or
all packages found in submission.
This causes re-exporting of sources, which is detected by
OBS. OBS then rebuilds updated package(s).

Fixes: #2060

Change-Id: I05bbcadd0deee4f3a47d613b2bcb04b9e1dbd0b0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agojob_re: implement removing submission
Ed Bartosh [Sat, 10 Jan 2015 20:39:50 +0000 (22:39 +0200)]
job_re: implement removing submission

Implemented by removing prerelease project.

Fixes: #2307

Change-Id: I051f099f2f3cb859805e7b330934794cdc603f30
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoAdd placehoders for new actions
Ed Bartosh [Sat, 10 Jan 2015 19:58:55 +0000 (21:58 +0200)]
Add placehoders for new actions

Printed 'Not implemented' messages for 'rebuild' and 'remove' actions.
Raised exception for unsupported actions.

Change-Id: I1c5955030aa0fa9f8943dab33a41e9b6c3ee6fca

9 years agoRename job_accept_or_reject.py -> job_re.py
Ed Bartosh [Sat, 10 Jan 2015 19:52:22 +0000 (21:52 +0200)]
Rename job_accept_or_reject.py -> job_re.py

This script will be doing more than just accepting and rejecting
submissions. It will at least support rebuilding and removing
submissions. So it's better to give it more appropriate name.

Change-Id: I788c9acbcf3ae81fd2a7fd23c6acc00bd51a3ca8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agobuildservice: Add put_source_path API
Ed Bartosh [Fri, 9 Jan 2015 23:21:56 +0000 (01:21 +0200)]
buildservice: Add put_source_path API

Added new API put_source_path to put content using source OBS API.
This API will be used in job_sync_obs.

Change-Id: Ia4c7246b0f1e93c729bf9ced2c81aedbd4d5aa1e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agobuildservice: Add get_source_path API
Ed Bartosh [Fri, 9 Jan 2015 23:12:59 +0000 (01:12 +0200)]
buildservice: Add get_source_path API

Added new API get_source_path to get content from source OBS API.
This API will be used in job_sync_obs.

Modified get_src_file_content to use get_source_path
to avoid code duplication.

Change-Id: Ie2276c772544392e8b10d60813f54ffe287963b0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoAdd job_sync_obs script
Ed Bartosh [Mon, 5 Jan 2015 22:35:37 +0000 (00:35 +0200)]
Add job_sync_obs script

Script syncs content of scm/meta/obs to OBS.
It's called from sync-obs job.

Script has a dry-run mode, which is turned on by configuration option
SYNC_OBS_DRYRUN=1 in jobs/configuration. In this mode it only prints
the difference, but does not sync it to OBS. This mode should be
turned on for first deployment.

Fixes: #1887

Change-Id: I1d6d0c3daa64b97f2bde9f9401b78a0aac65b777
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoUse id of SR to get more info from OBS by osc api.
ZhuoX Li [Wed, 12 Nov 2014 02:49:19 +0000 (10:49 +0800)]
Use id of SR to get more info from OBS by osc api.

The upgraded OBS for 2.5 version will provide a few info,
it is less than previous version.But we need more info to
work in request job. We can request the osc api to
get more data by 'id'.

Fixes: #2075

Change-Id: I41b62a5a437a5fe375a1c19d9cfdb96c7fca1e78

9 years agoFix the bug about checking submit tag name.
ZhuoX Li [Tue, 9 Dec 2014 08:28:17 +0000 (16:28 +0800)]
Fix the bug about checking submit tag name.

If tag is 'submit/tizen/mobile/20141119.110835', we get the 'tizen' branch
by parsing the tag name. In fact, we should get 'tizen/mobile' branch.

Fixes: #2245

Change-Id: I89ba0ccef0ff823234c1604df7a828ac355453e9

9 years agoAdd a new doc about release note in JJ.
ZhuoX Li [Tue, 9 Dec 2014 06:47:57 +0000 (14:47 +0800)]
Add a new doc about release note in JJ.

Fixes: #2259

Change-Id: I89797cf30a0da99bc0ee49546899a7a2830109e2

9 years agoFix the aggregate packages are always broken state.
ZhuoX Li [Fri, 21 Nov 2014 10:50:48 +0000 (18:50 +0800)]
Fix the aggregate packages are always broken state.

In a prerelease project (not related to aggregate packages),
the aggregate packages linked from the main project are always
in broken state.Keep the meta of aggregate packages are the same
as the main project to solve it.

Change-Id: Iad5e7365150701fa832ed0b3f2de2d47c8acd927
Fixes: #2188

9 years agoCatch GitRepositoryError exception.
Xu Chang [Mon, 8 Dec 2014 08:35:29 +0000 (16:35 +0800)]
Catch GitRepositoryError exception.

When running git checkout is failed, it maybe raise a GitRepositoryError
in job_load_repos.yaml.py.It should be catched.

Fixes: #2144

Change-Id: I0e64a69c5dfe1ebc0e46d1007b7a6575a53959c5

9 years agoGet csrftoken from login page
Huanhuan Li [Wed, 26 Nov 2014 02:08:13 +0000 (10:08 +0800)]
Get csrftoken from login page

Since sign in form has been deleted from home page, and there is no
csrftoken on home page. So get it from login page.

Change-Id: Icedc51d8578f5a209089b43bfb9440640c95e42c

9 years agoAdd new function to replace the xml2obj
ZhuoX Li [Mon, 1 Dec 2014 09:01:20 +0000 (17:01 +0800)]
Add new function to replace the xml2obj

Change-Id: Id2d208fd2cfa9ab64e19827775bfdb852c650504

9 years agoAdd 2014 into the license title.
ZhuoX Li [Mon, 17 Nov 2014 06:38:15 +0000 (14:38 +0800)]
Add 2014 into the license title.

Change-Id: I9982b9f786e8f1b6b69411b7cd9160b0fe4d0b61

9 years agoAdd header of inbundle function xml2obj
Lin Yang [Wed, 19 Nov 2014 04:01:26 +0000 (12:01 +0800)]
Add header of inbundle function xml2obj

Change-Id: I0190f83f571fc03e17800f371140871a139e4f6e
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
9 years agoUpdate the license to GPLv2
ZhuoX Li [Mon, 17 Nov 2014 03:09:17 +0000 (11:09 +0800)]
Update the license to GPLv2

Change-Id: I905bb9e9baee9638a1daccd525d91c28144f3355
Fixes: #2231

9 years agoFix duplicate prefix on package version.
ZhuoX Li [Wed, 12 Nov 2014 10:08:44 +0000 (18:08 +0800)]
Fix duplicate prefix on package version.

Duplicate prefix on package version on prerelease project.
Eg: The error prefix:
    Modello-Homescreen-0.0.2-20141111.000000.20141111.20141111.000000.1.1.noarch.rpm
    We should create the prefix, like this:
    Modello-Homescreen-0.0.2-20141111.000000.1.1.noarch.rpm

Fixes: #2218

Change-Id: Ie9d552628eefd799a4983c40b137585fba66cb40

9 years agoAdd download url, obs url to meta
ZhuoX Li [Wed, 5 Nov 2014 05:58:41 +0000 (13:58 +0800)]
Add download url, obs url to meta

Change-Id: If52205e06fd783debe3f780650d2ca3ddc26ffb3
Fixes: #1732

9 years agoMake Pylint happier.
Igor Stoppa [Tue, 4 Nov 2014 09:28:32 +0000 (11:28 +0200)]
Make Pylint happier.

This patch removes a handful of pylint warning:
* indentations
* unused imports and variables

It also replace the error code with its symbolic counterpart,
to make the code more readable.

Change-Id: Ib4910068be77ca694632f7559bc105a012b7e68e

9 years agoMove image filtering to tester job.
Igor Stoppa [Tue, 4 Nov 2014 14:50:47 +0000 (16:50 +0200)]
Move image filtering to tester job.

To simplify the interaction between jobs, the tester job_will
be executed with all the images produced.

The tester job will perform the filtering, deciding which images to
download and test.

Empty data will be providedi for images that are not supported.

Change-Id: I554e51e9125dadc522e45351e14b70df4f757775

9 years agoTransition to logging facility.
Igor Stoppa [Tue, 4 Nov 2014 13:31:11 +0000 (15:31 +0200)]
Transition to logging facility.

Use logging library.

Change-Id: I4331d7b1ac08f6d8c16e95899b1b4e1d4179e5c0

9 years agoRemove HACK for BOSS. BOSS is dead \o/
Igor Stoppa [Tue, 4 Nov 2014 08:51:11 +0000 (10:51 +0200)]
Remove HACK for BOSS. BOSS is dead \o/

The code is not needed anymore.

Change-Id: I1465395b88d2df98d6ab2d65afb50eb3c7157b41

9 years agoDelete the ks file message when trigger job-sync-snapdiff
Liu jue [Mon, 9 Jun 2014 03:04:54 +0000 (11:04 +0800)]
Delete the ks file message when trigger job-sync-snapdiff

Because if not do like this , when jenkins use the data as a shell
command's parameter , it will cause an error because of the too long
data .

Change-Id: Ie73c3dff6d33900910fee3d2839c88659d73f186

9 years agoGenerate MAC address by random.
ZhuoX Li [Thu, 23 Oct 2014 11:16:00 +0000 (19:16 +0800)]
Generate MAC address by random.

Using the simple random number instead of the global variables
to generate a MAC address.

Change-Id: If3700e1374e1be4410f7504659348dddd1a24637
Fixes: 2132

9 years agoChange release name in prjconf from OBS.
ZhuoX Li [Wed, 22 Oct 2014 10:07:20 +0000 (18:07 +0800)]
Change release name in prjconf from OBS.

Set release tag in prjconf so that the rpm version
in target project will be greater than those in the base project.
To solve the issue 'package version in prerelease project must be
higher than in target project'

Change-Id: Icdc2cc40befcd370b61bc6df3c33ace9aebfdb1c
Fixes: #1846

9 years agoAdd MAC addrees into mic-appliance.
ZhuoX Li [Fri, 17 Oct 2014 01:49:31 +0000 (09:49 +0800)]
Add MAC addrees into mic-appliance.

When create imager, Mic-appliance is started without specified MAC address.
As the result, all mic-appliance instances that run in same network,
get also same default MAC address.
This potentially leads to collisions and conflicts in addressing
mic-appliance VM sessions.
So need to add unique MAC addresses, when run mic-appliance.

Fixes: #2132

Change-Id: I870798cabb8f6043a4a0182619b8e49c04fdba59

9 years agoIgnore verifying the SSL certificate
gaoxuesx [Fri, 17 Oct 2014 05:34:51 +0000 (13:34 +0800)]
Ignore verifying the SSL certificate

Change-Id: If3211a1b60c2bbef86513b0c6eed142838619aea
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
9 years agoProvide a open OBS url to IRIS.
ZhuoX Li [Wed, 15 Oct 2014 01:41:50 +0000 (09:41 +0800)]
Provide a open OBS url to IRIS.

In 'package built' event, jenkins jobs publish a private url
to IRIS, others can't get access to it.
So change it to an open url.

Fixes: #2164

Change-Id: Ia87d9af4d13e611083b0fa23c5162c87a497d78b

9 years agoModify the testcase for the new gbp version(0.6.15)
ZhuoX Li [Fri, 17 Oct 2014 08:45:46 +0000 (16:45 +0800)]
Modify the testcase for the new gbp version(0.6.15)

Change-Id: If6884072f0ab974f486d9e8a1bf779c1a93ad47a

9 years agoChange the filter to trigger post-image-creation
ZhuoX Li [Fri, 10 Oct 2014 07:05:48 +0000 (15:05 +0800)]
Change the filter to trigger post-image-creation

All project will trigger the post-image-creation in job_image.py
to provide more image info for IRIS.

Change-Id: Ib20875a4f433790df923941f87e2e2c29c73c17a

9 years agoPublish 'image_created' event to IRIS.
ZhuoX Li [Tue, 30 Sep 2014 06:06:47 +0000 (14:06 +0800)]
Publish 'image_created' event to IRIS.

Add 'image_created' event after running image job.

Change-Id: I0d347b045c67b19d660a97fb908346b721873cc7

9 years agoPublish 'image_building' event to IRIS.
ZhuoX Li [Tue, 30 Sep 2014 05:58:58 +0000 (13:58 +0800)]
Publish 'image_building' event to IRIS.

Add 'image_building' event before trigger image job.

Change-Id: Ie68daaf8a93388646f82a0fc1f69c0e71eec8b89

9 years agoPublish 'repa action' event to IRIS
ZhuoX Li [Tue, 30 Sep 2014 04:55:44 +0000 (12:55 +0800)]
Publish 'repa action' event to IRIS

Publish 'repa action' event when a pre-project is accepted/rejected
by repa.

Change-Id: Ia5d7968793aba0a124ea78f82e4e10b70e4213e6

9 years agoPublish 'rpm build' event to IRIS
ZhuoX Li [Mon, 29 Sep 2014 12:43:34 +0000 (20:43 +0800)]
Publish 'rpm build' event to IRIS

Add a job to get the result of being built rpm.

Change-Id: Ie3b823e48c0e942cd3c2da501ea6862614df4f1e

9 years agoPublish 'pre_created' event to IRIS
ZhuoX Li [Mon, 29 Sep 2014 06:30:09 +0000 (14:30 +0800)]
Publish 'pre_created' event to IRIS

Publish 'pre_created' event when a pre_project is
created for a submission tag

Change-Id: Ib824f46e7d1163b18d780e395328ff2e1ee56eab

9 years agoImport get_python_lib to pornt the python module.
ZhuoX Li [Fri, 10 Oct 2014 05:29:35 +0000 (13:29 +0800)]
Import get_python_lib to pornt the python module.

Change-Id: I1e200794582248a07cb18fcd19123a0d5ae3885a

9 years agoCatch exceptions for IrisRestClient.
Huang Hao [Mon, 29 Sep 2014 06:29:26 +0000 (14:29 +0800)]
Catch exceptions for IrisRestClient.

Print exception when execption raised in IrisRestClient code. But
don't break original workflow.

Also change event type into a part of url, so it's more easier
to see that in access log.

Change-Id: Idca9874e4904366b3333d57b6be531548e0e8401

9 years agoRemove some useless code
gaoxuesx [Thu, 18 Sep 2014 05:44:37 +0000 (13:44 +0800)]
Remove some useless code

Change-Id: Ic7a22b7be9761074c7d4a3e666674a47337ceb8c
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
9 years agoPublish "submitted" event to IRIS.
ZhuoX Li [Wed, 3 Sep 2014 08:44:40 +0000 (16:44 +0800)]
Publish "submitted" event to IRIS.

Add a new function publish_event() in IrisRestClient class.

Use this function to publish "submitted" event when a submission
tag is just received.

Change-Id: I2a23b6b221e79dcb6b99bc78fd0126516407fae4

9 years agoStop writing to /etc/repos/repos.yaml
Ed Bartosh [Thu, 18 Sep 2014 08:13:24 +0000 (11:13 +0300)]
Stop writing to /etc/repos/repos.yaml

As BOSS is no more we don't need to write this file. It was used only by
BOSS participants.

Change-Id: I757f206f2421d671810697cf695f7f9b8c1615d3
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoLogin immediately when client is created.
Huang Hao [Fri, 19 Sep 2014 06:38:08 +0000 (14:38 +0800)]
Login immediately when client is created.

Usually we have to login otherwise request always fails.

Change-Id: Ibe67204987f09cd1cf32cf274ce88515e1e39d33

9 years agoTo use "--delay-updates" for rsync for atomic sync
JF Ding [Fri, 15 Aug 2014 11:18:07 +0000 (19:18 +0800)]
To use "--delay-updates" for rsync for atomic sync

Sometime, the users noticed the images in download server have wrong
md5sum and cannot boot. It's possible it's a partial downloaded file,
caused by atomic rsyncing problem. This rsync command line option
will help it.

Change-Id: I9ef2344cd01594fb33080feaaa193714cb4a5570
Signed-off-by: JF Ding <jian-feng.ding@intel.com>
9 years agojob_accept_or_reject: Fixed bug in state name
Ed Bartosh [Tue, 23 Sep 2014 08:07:45 +0000 (11:07 +0300)]
job_accept_or_reject: Fixed bug in state name

Valid state name for SR is 'declined'. The code was using 'rejected',
which caused 'Bad request' OBS response.

Change-Id: I464befb33f21d9a13929d99632535833971f39c0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoFix a bug about requesting git-obs-mapping.xml
ZhuoX Li [Fri, 19 Sep 2014 07:09:05 +0000 (15:09 +0800)]
Fix a bug about requesting git-obs-mapping.xml

Change-Id: I07891b714a8a0407f63472fc11e79479bc775124

9 years agoFix potential issue on git-obs-mapping query
Lin Yang [Fri, 12 Sep 2014 07:33:17 +0000 (15:33 +0800)]
Fix potential issue on git-obs-mapping query

When search on default section, project name will be joined with prefix '/'
automatically. So it should do the same action to path name to support missed
prefix '/' issue.

Change-Id: I21a48c1b845d23b80a72a207dcdeb942067a9892
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
9 years agoSupport no particular project setting
Lin Yang [Fri, 12 Sep 2014 06:48:06 +0000 (14:48 +0800)]
Support no particular project setting

In special case, git-obs-mapping.xml doesn't contain the setting section for
particular projects. The script will crash when query mapping on such file.
It should check whether this section exists at first.

Fixes: #2111

Change-Id: Ib9a80ca135e311b8f8b103298ec300a3a7ba9e42
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
9 years agoAdd trailing slash to POST URL
gaoxuesx [Tue, 16 Sep 2014 06:51:12 +0000 (14:51 +0800)]
Add trailing slash to POST URL

We called this URL via POST, but the URL doesn't end in a slash,
Django can't redirect to the slash URL while maintaining POST data.

Change-Id: Id1de27deabd096679233057091fc4891e2d431c0
Signed-off-by: gaoxuesx <xuesongx.gao@intel.com>
9 years agorename requests to obs_request
Liu jue [Tue, 16 Sep 2014 07:13:33 +0000 (15:13 +0800)]
rename requests to obs_request

Change-Id: Iab87c78fd5097e2ca22432afc93fabaf61964640

9 years agoOnly allow 'prerelease' type into pre-workflow.
ZhuoX Li [Wed, 13 Aug 2014 10:52:53 +0000 (18:52 +0800)]
Only allow 'prerelease' type into pre-workflow.

If obs_stg_prj from git-obs-mapping.xml is not 'prerelease',
it should not be executed prerelease workflow in job_submit.py.

Fixes: #2073

Change-Id: Ide4f0aebf035bbaf77e672e88bb29dd0eada91aa

9 years agoImplemented new job job_accept_or_reject
Ed Bartosh [Sat, 13 Sep 2014 11:15:45 +0000 (14:15 +0300)]
Implemented new job job_accept_or_reject

This job will be run by RE. It doesn't require RE to be maintainer of
the target project as it uses maintainer account for its operations.

Fixes: #1886

Change-Id: I77d38377c1b9a9d4646aeae94ba77d4c22f61b19
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoImplemented create_sr and set_sr_state
Ed Bartosh [Sat, 13 Sep 2014 11:10:02 +0000 (14:10 +0300)]
Implemented create_sr and set_sr_state

Extended buildservice API to create SR and change SR status. Both
methods will be used in the new job for accepting or rejecting SRs.

Change-Id: Ic38473ab99f2185fe32bda29eaaa18a654cd167c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>