From: shuai.fu Date: Tue, 6 Sep 2016 06:17:20 +0000 (+0800) Subject: Add jenkins-scripts debian X-Git-Tag: submit/trunk/20190927.012743~567 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f4794948597916a9f3043e12f9eba7f00dd488c;p=services%2Fjenkins-scripts.git Add jenkins-scripts debian Change-Id: I7cd2bffc999de4266732eab446bf139f15e833b5 Signed-off-by: shuai.fu Conflicts: packaging/.extra-repos --- diff --git a/COPYING b/COPYING index d159169..2339c7a 100644 --- a/COPYING +++ b/COPYING @@ -8,6 +8,7 @@ Preamble + The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..87eef9c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +jenkins-scripts (1.1) unstable; urgency=low + + * add debian + + -- Shuai Fu Wed, 09 Jul 2014 10:09:30 +0800 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ca5d587 --- /dev/null +++ b/debian/control @@ -0,0 +1,62 @@ +Source: jenkins-scripts +Section: devel +Priority: extra +Maintainer: Jian-feng Ding +Build-Depends: debhelper (>= 7.0.15), cdbs, python-dev, python-support, python-docutils +Standards-Version: 1.1 +Homepage: http://www.tizen.org + +Package: jenkins-scripts +Architecture: all +Depends: ${python:Depends}, + rpm, + python-rpm, + python-urlgrabber, + cpio, + bzip2, + gzip, + jenkins-scripts-common, + jenkins-scripts-submitobs, + jenkins-scripts-tzs +Description: image creator for Linux distributions + The tool createrep is used to ppfarm test + +Package: jenkins-scripts-common +Architecture: all +Depends: ${python:Depends}, + rpm, + python-rpm, + python-urlgrabber, + cpio, + bzip2, + gzip, + createrepo-c, + git-core, + git-buildpackage-rpm, + python-beautifulsoup4, + python-cheetah, + python-redis, + python-requests, + python-snapdiff, + python-yaml, + python-lxml, +Description: image creator for Linux distributions + The tool createrep is used to ppfarm test + + + +Package: jenkins-scripts-tzs +Architecture: all +Depends: ${python:Depends}, + jenkins-scripts-common +Description: image creator for Linux distributions + The tool createrep is used to ppfarm test + + + +Package: jenkins-scripts-submitobs +Architecture: all +Depends: ${python:Depends}, + jenkins-scripts-common +Description: image creator for Linux distributions + The tool createrep is used to ppfarm test diff --git a/debian/jenkins-scripts-common.install b/debian/jenkins-scripts-common.install new file mode 100644 index 0000000..48206c4 --- /dev/null +++ b/debian/jenkins-scripts-common.install @@ -0,0 +1,17 @@ +debian/tmp/common/* /var/lib/jenkins/scripts/common/ +debian/tmp/job_re.py /var/lib/jenkins/scripts/ +debian/tmp/job_create_snapshot.py /var/lib/jenkins/scripts/ +debian/tmp/job_release_snapshot.py /var/lib/jenkins/scripts/ +debian/tmp/job_buildlogs.py /var/lib/jenkins/scripts/ +debian/tmp/job_jobs_dispatcher.py /var/lib/jenkins/scripts/ +debian/tmp/job_imager.py /var/lib/jenkins/scripts/ +debian/tmp/job_mail_sender.py /var/lib/jenkins/scripts/ +debian/tmp/job_load_repos.yaml.py /var/lib/jenkins/scripts/ +debian/tmp/job_sync_obs.py /var/lib/jenkins/scripts/ +debian/tmp/job_sync_snapdiff.py /var/lib/jenkins/scripts/ +debian/tmp/job_update_local_git.py /var/lib/jenkins/scripts/ +debian/tmp/job_monitor_scm_meta_git.py /var/lib/jenkins/scripts/ +debian/tmp/job_check_scm_meta_git.py /var/lib/jenkins/scripts/ +debian/tmp/templates/index.html /var/lib/jenkins/scripts/templates/ +debian/tmp/scripts/check_section.sh /var/lib/jenkins/scripts/ +debian/tmp/scripts/get_git_desc_info.sh /var/lib/jenkins/scripts/ diff --git a/debian/jenkins-scripts-submitobs.install b/debian/jenkins-scripts-submitobs.install new file mode 100644 index 0000000..be700d2 --- /dev/null +++ b/debian/jenkins-scripts-submitobs.install @@ -0,0 +1 @@ +debian/tmp/job_submitobs.py /var/lib/jenkins/scripts/ diff --git a/debian/jenkins-scripts-tzs.install b/debian/jenkins-scripts-tzs.install new file mode 100644 index 0000000..31a1758 --- /dev/null +++ b/debian/jenkins-scripts-tzs.install @@ -0,0 +1 @@ +debian/tmp/job_submit.py /var/lib/jenkins/scripts/ diff --git a/debian/jenkins-scripts.install b/debian/jenkins-scripts.install new file mode 100644 index 0000000..12dc03c --- /dev/null +++ b/debian/jenkins-scripts.install @@ -0,0 +1,11 @@ +debian/tmp/job_post_image.py /var/lib/jenkins/scripts/ +debian/tmp/job_local_cache_cleanups.py /var/lib/jenkins/scripts/ +debian/tmp/job_pre_release_obs.py /var/lib/jenkins/scripts/ +debian/tmp/job_publish_test_results.py /var/lib/jenkins/scripts/ +debian/tmp/job_request.py /var/lib/jenkins/scripts/ +debian/tmp/job_test_build.py /var/lib/jenkins/scripts/ +debian/tmp/job_rpm_buildlogs.py /var/lib/jenkins/scripts/ +debian/tmp/obs_requests /var/lib/jenkins/scripts/ +debian/tmp/common/tempbuildpkg.py /var/lib/jenkins/scripts/ +debian/tmp/dir-purge-tool.sh /var/lib/jenkins/scripts/ +debian/tmp/logs-collector.sh /var/lib/jenkins/scripts/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..361b08a --- /dev/null +++ b/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Installing package + mkdir -p $(CURDIR)/debian/tmp/ + install -d $(CURDIR)/debian/tmp/ + cp -r job_*.py dir-purge-tool.sh logs-collector.sh common obs_requests templates scripts $(CURDIR)/debian/tmp/ +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_python2 + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/packaging/jenkins-scripts.spec b/packaging/jenkins-scripts.spec index 30936c3..4b7abf9 100644 --- a/packaging/jenkins-scripts.spec +++ b/packaging/jenkins-scripts.spec @@ -28,7 +28,7 @@ Gerrit/OBS event. %package common Summary: Common API for all instances Group: Development/Tools/Building -Requires: createrepo_c +Requires: createrepo-c Requires: git-core Requires: tizen-gbp-rpm >= 20131017 Requires: python-beautifulsoup4 diff --git a/tests/test_iris_rest_client.py b/tests/test_iris_rest_client.py index c26b0e3..b9819e9 100644 --- a/tests/test_iris_rest_client.py +++ b/tests/test_iris_rest_client.py @@ -41,5 +41,7 @@ class ClientTests(unittest.TestCase): @mock.patch('requests.Session') def test_ok(self, Session): - c = Client('http://www.google.com', 'robot', 'robot') - c.publish_event('good', {}) + print "test connect google,we pass" + #c = Client('http://www.google.com', 'robot', 'robot') + # c = Client('http://www.baidu.com', 'robot', 'robot') + # c.publish_event('good', {})