system-config/modules/jenkins/files/slave_scripts
zaro0508 782501b228 make maven versioning and deployment workflow similiar to python
This commit fixes bug 1182154

The maven workflow for versioning and deployment is at odds with how
we like to do it.  For versioning, our convention is to get info
from SCM to set the project build versions.  For deployments
to remote repositories we prefer to use curl instead of mvn deploy
due to maven security vulnerabilities.  Our python builds
have already been setup to set package versions from SCM and
deploy to pypi using curl so this commit is to make
maven versioning and deployments similiar our python
versioning and deployment workflow.

This commit does the following:

Setup a project version string as an environement variable
so we can pass it to maven builds. The version string is
retrieved from information in git.  This makes the build versioning
workflow similar to how we build python packages.

  This setup expects a variable called '$project-version' in
  the root 'version' element (i.e. <version>${project-version}</version>)
  of the maven project's pom.xml file.

  For general (throw away CI) builds we do the following:
    1. generate a package 'myplugin.hpi' with version '1.3.0.4.a0bc21f'
       in the MANIFEST.MF file.  The '4' is the number of commits since
       last tag.
    2. publish 'myplugin-1.3.0.4.a0bc21f.hpi' to tarballs.o.o

  For release builds we do the following:
    1. generate a package 'myplugin.hpi' with version '1.3.1'
     in the MANIFEST.MF file.
    2. publish 'myplugin-1.3.1.hpi' to tarballs.o.o
    3. publish 'myplugin-1.3.1.hpi' to repo.jenkins-ci.org

Passes the jenkins credentials from hiera to the pypi slave so
we can use it to deploy released plugins to repo.jenkins-ci.org

Creates a generic jenkinsci-upload job that will deploy
released jenkins plugin artifacts to a remote repository with
user credentials from hiera. It will use the same curl deployment
method as the pypi-upload job.

Change-Id: If1306523a28da94ee970d96b7a788ca116348de7
Reviewed-on: https://review.openstack.org/31875
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-06-17 23:52:36 +00:00
..
baremetal-archive-logs.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
baremetal-deploy.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
baremetal-os-install.sh Kill trailing whitespace. 2012-10-05 23:27:31 +00:00
bump-milestone.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
create-ppa-package.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
docbook-properties.sh Splits the basic-install guide into two builds for Fedora/Ubuntu. 2013-04-29 20:16:15 +00:00
gerrit-git-prep.sh Clone from gerrit, fetch zuul refs from zuul. 2012-12-20 20:52:16 +00:00
jenkins-oom-grep.sh Check for out-of-memory condition during tox runs. 2012-09-21 20:48:04 +00:00
jenkins-sudo-grep.sh CentOS/RH support for jenkins-sudo-grep.sh script. 2013-05-10 21:48:10 +00:00
lvm-kexec-reset.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
markdown-docbook.sh Changes top-level element to chapter instead of book for markdown 2012-11-26 19:17:54 +00:00
maven-properties.sh make maven versioning and deployment workflow similiar to python 2013-06-17 23:52:36 +00:00
maven-upload.sh make maven versioning and deployment workflow similiar to python 2013-06-17 23:52:36 +00:00
package-gerrit.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
ping.py Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
project-requirements-change.py Clone requirements into a tempdir. 2013-04-11 21:16:28 +00:00
propose_translation_update_manuals.sh Add script to upload/download translation resources of manuals. 2013-05-03 18:40:27 +00:00
propose_translation_update.sh Disable fuzzy matching in transifex automation scripts 2013-06-10 21:17:51 +00:00
pypi-extract-metadata.py Push PKG-INFO metadata to pypi. 2012-11-20 22:51:20 +00:00
pypi-upload.sh Push PKG-INFO metadata to pypi. 2012-11-20 22:51:20 +00:00
run-cover.sh Don't suppress errors in run-cover. 2013-05-26 03:03:18 +00:00
run-docs.sh Fix run-docs as a gate job. 2013-06-06 00:14:47 +00:00
run-pep8.sh Select a pypi mirror before running tox. 2013-03-18 20:29:07 +00:00
run-pyflakes.sh Select a pypi mirror before running tox. 2013-03-18 20:29:07 +00:00
run-pylint.sh Select a pypi mirror before running tox. 2013-03-18 20:29:07 +00:00
run-selenium.sh Select a pypi mirror before running tox. 2013-03-18 20:29:07 +00:00
run-tarball.sh Select a pypi mirror before running tox. 2013-03-18 20:29:07 +00:00
run-tox.sh set -e when checking testr test counts. 2013-05-31 11:57:13 +00:00
run-xmllint.sh xmllint prints to stdout, fix script to handle that 2012-11-19 21:44:34 +00:00
select-mirror.sh Use new openstack-specific mirror. 2013-03-26 18:19:24 +00:00
subunit2html.py Make subunit2html.py python2.6 compatible. 2013-04-12 14:49:25 +00:00
tardiff.py Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
update-pip-cache.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
upstream_translation_update_manuals.sh Add script to upload/download translation resources of manuals. 2013-05-03 18:40:27 +00:00
upstream_translation_update.sh Disable fuzzy matching in transifex automation scripts 2013-06-10 21:17:51 +00:00
wait_for_nova.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
wait_for_puppet.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00