From: Junghyun Kim Date: Fri, 10 Mar 2017 04:37:07 +0000 (+0900) Subject: ADD LICENSE and use MAPPING_PRJ caching dir X-Git-Tag: submit/trunk/20190927.012743~510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b119148c32d2bed8ef59b36aa6f8871930346b85;p=services%2Fjenkins-scripts.git 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 --- diff --git a/common/git_obs_mapping.py b/common/git_obs_mapping.py index 572e777..c80869b 100644 --- a/common/git_obs_mapping.py +++ b/common/git_obs_mapping.py @@ -1,3 +1,20 @@ +#!/usr/bin/python +# +# Copyright (C) 2010, 2011, 2012, 2013, 2014 Intel, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + import xml.etree.ElementTree as ET import sys import os diff --git a/job_update_git_branch_project_mapping_for_dashboard.py b/job_update_git_branch_project_mapping_for_dashboard.py index 94d0a68..cd67fea 100644 --- a/job_update_git_branch_project_mapping_for_dashboard.py +++ b/job_update_git_branch_project_mapping_for_dashboard.py @@ -1,4 +1,20 @@ #!/usr/bin/python +# +# Copyright (C) 2010, 2011, 2012, 2013, 2014 Intel, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + import sys import os import re @@ -63,12 +79,11 @@ def generate_mapping(prjdir, target_dir): # main WORKSPACE = os.getenv('WORKSPACE', '.') MAPPING_PRJ = os.getenv("MAPPING_PRJ", "scm/git-obs-mapping") +GIT_CACHE = os.getenv("GIT_CACHE_DIR") print "proj = ", MAPPING_PRJ -prjdir = os.path.join(WORKSPACE, MAPPING_PRJ) - -clone_gitproject(MAPPING_PRJ, prjdir) +prjdir = os.path.join(GIT_CACHE, MAPPING_PRJ) target_dir = ".dashboard/branch_project_mapping" generate_mapping(prjdir, target_dir) diff --git a/job_update_git_obs_mapping_for_dashboard.py b/job_update_git_obs_mapping_for_dashboard.py index 4471b29..f80c932 100755 --- a/job_update_git_obs_mapping_for_dashboard.py +++ b/job_update_git_obs_mapping_for_dashboard.py @@ -1,4 +1,19 @@ #!/usr/bin/python +# +# Copyright (C) 2010, 2011, 2012, 2013, 2014 Intel, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. import xml.etree.ElementTree as ET import sys