Fix GBS.rst format error

Change-Id: Ie0efc864b26f84d3a8242c65cfec402a593c7baf
Enable gbs man page

In current version, `man gbs` is disabled by annotating code that creates
manual page in spec file because the creation of manual page will fail
without question due to syntax error in GBS.rst.

In this change, the syntax error in GBS.rst is fixed, and the annotation
is cancelled accordingly.

Change-Id: Id69b8f704a1aa041a83f908ed65798157ca9c5fe
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
export: determine remote repo name from git config

Instead of trying to guess it from the remote tracking branch name which
can be ambigous.

Change-Id: I029c3fadb6f9ea63fa1c280e7183deba56c0e7ff
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Merge "export: determine remote repo name from git config" into devel
Support --package-list and --package-from-file

The value of --package-* options can be the top dir of packages

Fixes: #1580

Change-Id: Ib14cc9cd3eb5b461a4f452bca46f2acd060e7353
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
packaging: back to building with gbp

Also, fix the dependency to pristine-tar and make the Release tag in
spec file more consistent.

Change-Id: I28bca6d9ea2544c02d7b19521a14794cb9f735dd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
conf: method for getting combined cmdline/conffile options

Add a new method for getting options which the user can give through
command line options and/or in config file(s). Command line option will
take precedence over what is configured in config file(s).

Removes a lot of duplicate code.

Change-Id: I06f5b1b6c231829ca490553025c2e4e81aa0abe2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
export: get rid of one invalid duplicate gbp option

which is correctly re-defined later in the list.

Change-Id: I2c9b239148396aa8dcac53f4423f1685c1ad63f7
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
correct parsing upstream branch for tarball generation

use split('/', 1) instead of split('/') to parse out correct
upstream branch

Fixes: #1641

Change-Id: I603083766c18bd260c288daa39358f0c6d0d0d61
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
Update README.rst

Full document is docs/GBS.rst, so the README file only contains the
the basic info of gbs

Change-Id: I22dba1d0b37935b3571a0605fcf93fd9fd71b6a8
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
Enhance exception caused by proxy

Add http_code 503 as proxy issue, and print system proxy environment
if encounter error.

Fixes: #1383
Change-Id: Ide3daefa57dc16241891fd4cd205e5444ff9a30b
Use python2.6 compatible method of parsing xml

Change-Id: I9785815f63beba5ef7210939222b1f7b78ed84c4
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Add jenkins jobs and jenkins scripts for GBS local full build

Two sub-packages introduced:
 - gbs-jenkins-jobs: jenkins job configuation files
 - gbs-jenkins-scripts: scripts used by jenkins jobs

gbs-jenkins-jobs should be installed on jenkins master, and
jenkisn script should be installed on jenkins slave nodes.

Fixes: #1565

Change-Id: I879d238a82739c7cea62a371edf9e8ee7f4fdbb9
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
Fix gbs build fails if packaging/ is a symlink

gbs run `git ls-tree --name-only HEAD packaging` to search specs.
If packaging directory is a symlink, spec files cannot be found.

Fixes: #1630

Change-Id: I0b6262a0197de2c922a19e85687035111c92de0b
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Merge "Use python2.6 compatible method of parsing xml" into devel
Merge "Fix gbs build fails if packaging/ is a symlink" into devel
Skip image creation if No KS files generated or found

Change-Id: Ice3d6bd4b988c8153cd5f797ef7760ab99da90f2
Removed tracked upstream/pristine-tar branches in time

If no local upstream/pristine-tar branches, but exist in remote
branches, gbs should track it for export packages usage in gbp.
The tracked local branches is temp branch should be removed after
finishing export packages.

Change-Id: Iff5ba8a86b0b21b72f279eaadf6441a7178ce882
Uncomment the line about repo sync

Change-Id: I86dc1fc0d88c392f0d32156cf9db4508331355c9
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Filter image-configurations debug packages

Just search image-configuration.rpm, exclude debug packages

Change-Id: I5b494b217339183225c0c02689684057df66fc70
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>