system-config/modules/openstack_project/files/jenkins_job_builder/config/macros.yaml
annegentle 53e9722b0b Adds a markdown to docbook script.
Patch set 3 makes the jobname the filename and adds a second job for
building the programming api mdown book.

Patch set 4 corrects the job name to match the file name.

Patch set 5 renames the .sh.save file and adds it to the job builders.

Patch set 6 addresses final comments - appending to the gerrit-doc.properties
file and removes tabs.

Patch set 7 addresses comments. Would like to continue work on markdown to
docbook and delay work on the properties script if possible.

Patch set 8 removes docbook-properties as a prebuilder and removes DOC_OPERATING_SYSTEM
as a variable. Rebase against master also.

Updates macros.yaml and manuals.yaml to pass in filename for markdown files.

Adds properties injection to the markdown to docbook jobs.

Removes extraenous tab from modules/openstack_project/files/zuul/layout.yaml

Additional fixes to pass in filename correctly and remove DOC_OPERATING_SYSTEM, fix
filname typo.

Removes file extension from markdown files, removes echo to gerrit-doc-properties
from markdown-docbook script.

Removes docbook-properties builder references as needed.

Change-Id: I46c07cd11e96e8fc463a377519926a43981e4b3d
Reviewed-on: https://review.openstack.org/12214
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-09-13 16:18:03 +00:00

179 lines
4.0 KiB
YAML

- builder:
name: gerrit-git-prep
builders:
- shell: "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh review.openstack.org"
- builder:
name: coverage
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-cover.sh"
- builder:
name: docs
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-docs.sh"
- builder:
name: maven-test
builders:
- shell: "mvn test"
- builder:
name: maven-package
builders:
- shell: "mvn package"
- builder:
name: markdown-docbook
builders:
- shell: "/usr/local/jenkins/slave_scripts/markdown-docbook.sh {filename}"
- builder:
name: gerrit-package
builders:
- shell: "/usr/local/jenkins/slave_scripts/package-gerrit.sh"
- builder:
name: gerrit-preclean
builders:
- shell: |
#!/bin/bash -xe
rm -fr ~/.m2
rm -fr ~/.java
./tools/version.sh --release
- builder:
name: gerrit-postrun
builders:
- shell: "./tools/version.sh --reset"
- builder:
name: pep8
builders:
- shell: "set -o pipefail ; tox -v -epep8 | tee pep8.txt ; set +o pipefail"
- builder:
name: pylint
builders:
- shell: "set -o pipefail ; tox -v -epylint | tee pylint.txt ; set +o pipefail"
- builder:
name: pyflakes
builders:
- shell: "tox -v -epyflakes"
- builder:
name: puppet-syntax
builders:
- shell: |
find . -iname *.pp | xargs puppet parser validate --modulepath=`pwd`/modules
for f in `find . -iname *.erb` ; do
erb -x -T '-' $f | ruby -c
done
- builder:
name: selenium
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-selenium.sh"
- builder:
name: python26
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 26"
- something:
arg: value
- builder:
name: python27
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27"
- builder:
name: python26-essex
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 26-essex"
- builder:
name: python27-essex
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh 27-essex"
- builder:
name: tarball
builders:
- shell: "/usr/local/jenkins/slave_scripts/create-tarball.sh {project}"
# ======================================================================
- publisher:
name: tarball
publishers:
- archive:
artifacts: 'dist/*.tar.gz'
- scp:
site: '{site}'
files:
- target: 'tarballs/{project}/'
source: 'dist/*.tar.gz'
- publisher:
name: war
publishers:
- archive:
artifacts: '{warfile}'
- scp:
site: '{site}'
files:
- target: '{target}'
source: '{warfile}'
- publisher:
name: pep8
publishers:
- violations:
pep8:
min: 0
max: 1
unstable: 1
pattern: '**/pep8.txt'
- publisher:
name: pylint
publishers:
- violations:
pylint:
min: 0
max: 1
unstable: 1
pattern: '**/pylint.txt'
- publisher:
name: console-log
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
copy-console: true
copy-after-failure: true
- publisher:
name: console-log-post
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$ZUUL_SHORT_NEWREV/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
copy-console: true
copy-after-failure: true
- publisher:
name: console-log-periodic
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/periodic/$JOB_NAME/$BUILD_NUMBER'
copy-console: true
copy-after-failure: true