system-config/modules/openstack_project/files/jenkins_job_builder/config/javascript.yaml
Monty Taylor 764ee8c74f Delete select-mirror and all the args
It turns out that we pass a lot of args around simply for the
purpose of doing mirror selection. This goes away if everything
gets a mirror.

This change should only be merged after the parent change has
propagated to all puppeted slaves and updated nodepool images.

Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
Change-Id: I4a721f6559d7160c8213268a8c1e35c667a67a4f
2014-08-06 02:04:43 +00:00

213 lines
5.3 KiB
YAML

# The old javascript unit test build, kept while storyboard and vinz
# are migrated forward.
- job-template:
name: 'gate-{name}-js-unittests'
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'test'
envlist: 'grunt'
- assert-no-extra-files
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
# We're uploading the compiled app as a pre-release sanity check,
# much like we do with docs builds.
- target: 'docs-draft/$LOG_PATH'
source: 'dist/**'
keep-hierarchy: true
copy-after-failure: false
node: '{node}'
# Runs Grunt Unit Tests. To use this build, your Gruntfile must declare
# a target named test:unit
- job-template:
name: 'gate-{name}-js-test-unit'
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'test:unit'
envlist: 'grunt'
project: '{name}'
- assert-no-extra-files
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
node: '{node}'
# Runs grunt integration tests. To use this build, your Gruntfile must declare
# a target named test:integration
- job-template:
name: 'gate-{name}-js-test-integration'
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'test:integration'
envlist: 'grunt'
project: '{name}'
- assert-no-extra-files
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
node: '{node}'
# Runs grunt functional tests. To use this build, your Gruntfile must declare
# a target named test:functional
- job-template:
name: 'gate-{name}-js-test-functional'
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'test:functional'
envlist: 'grunt'
project: '{name}'
- assert-no-extra-files
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
node: '{node}'
# Builds a draft application and uploads it to docs-draft. To use this build,
# your Gruntfile must declare a target named "build"
- job-template:
name: 'gate-{name}-js-draft'
wrappers:
- build-timeout:
timeout: 40
- timestamps
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'build'
envlist: 'grunt'
project: '{name}'
- assert-no-extra-files
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
# We're uploading the compiled app as a pre-release sanity check,
# much like we do with docs builds.
- target: 'docs-draft/$LOG_PATH'
source: 'dist/**'
keep-hierarchy: true
copy-after-failure: false
node: '{node}'
# Builds a release tarball
- job-template:
name: '{name}-js-release-{branch-designator}'
builders:
- npm-install
- revoke-sudo
- gerrit-git-prep
- js-build:
command: 'build'
envlist: 'grunt'
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
# Clean/create a tarball directory
rm -rf tarballs
mkdir -p tarballs
# Create an archive tarball.
tar -czf {name}-$PROJECT_VER.tar.gz dist/
cp {name}-$PROJECT_VER.tar.gz tarballs/{name}-latest.tar.gz
mv {name}-$PROJECT_VER.tar.gz tarballs/
publishers:
- console-log
- coverage-log
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'reports/**'
keep-hierarchy: true
copy-after-failure: true
- target: 'tarballs/{name}/'
source: 'tarballs/*.tar.gz'
keep-hierarchy: false
copy-after-failure: false
node: '{node}'