
Now that we have tox-based javascript tooling, we can do tox-based dist creation - which means that we can re-use the tooling for anything that's grunt based. Change-Id: I93e87b9c15cabeb9a173edb89927cf301ac24c08
75 lines
1.9 KiB
YAML
75 lines
1.9 KiB
YAML
- job-template:
|
|
name: 'gate-{name}-js-unittests'
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 40
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
|
- inject:
|
|
properties-file: maven.properties
|
|
- js-build:
|
|
command: 'test'
|
|
envlist: 'grunt'
|
|
github-org: '{github-org}'
|
|
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
|
|
- target: 'docs-draft/$LOG_PATH'
|
|
source: 'dist/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: true
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: '{name}-js-release-{branch-designator}'
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/maven-properties.sh
|
|
- inject:
|
|
properties-file: maven.properties
|
|
- js-build:
|
|
command: 'build'
|
|
envlist: 'grunt'
|
|
github-org: '{github-org}'
|
|
project: '{name}'
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
|
|
tar -czf {name}-$PROJECT_VER.tar.gz dist/
|
|
cp {name}-$PROJECT_VER.tar.gz dist/{name}-latest.tar.gz
|
|
mv {name}-$PROJECT_VER.tar.gz dist/
|
|
publishers:
|
|
- console-log
|
|
- coverage-log
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$LOG_PATH'
|
|
source: 'reports/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: true
|
|
- tarball:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
node: '{node}'
|