ADD LICENSE and use MAPPING_PRJ caching dir 25/118325/2
authorJunghyun Kim <jh0822.kim@samsung.com>
Fri, 10 Mar 2017 04:37:07 +0000 (13:37 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Fri, 10 Mar 2017 04:59:43 +0000 (13:59 +0900)
MAPPING_PRJ caching directory is used directly instead of cloning.

Change-Id: I2890abc8bf2e2451ff98fb3adcff31cffcc38635
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
common/git_obs_mapping.py
job_update_git_branch_project_mapping_for_dashboard.py
job_update_git_obs_mapping_for_dashboard.py

index 572e777..c80869b 100644 (file)
@@ -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
index 94d0a68..cd67fea 100644 (file)
@@ -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)
index 4471b29..f80c932 100755 (executable)
@@ -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